Paul Bădărău

Twilio Flex for Charities: Lessons From a Coaching Contact Centre

Building a Twilio Flex contact centre for a UK children's charity: one configurable desk, conversations that survive, and Salesforce records that match.

A major UK children's charity runs a free parenting support service. Parents message a qualified coach by webchat or WhatsApp. I was one of the developers who built and maintained the Twilio Flex platform behind it, in a team that started with two developers and grew to four. In 2025/26, 3,984 parents had one-to-one coaching through it.

The conversations run over days. Parents step away and come back, and the record of what was said matters long after the chat ends. The desk has to behave differently from a sales call centre.

Twilio Flex lets the desk follow the service

Flex is a programmable contact-centre platform. The charity needed a desk that fitted how its coaches work: booked follow-up sessions, handovers between colleagues, links to local services, and case records in the charity's Salesforce. A generic ticket queue would not have done that.

You own more of the system as a result. Flex gives you the building blocks, including Studio for conversation flows, TaskRouter for routing, and Conversations for the messages. Everything that makes the desk fit the service is code your team writes and maintains.

Build one desk, switch features per service

We built the coaches' desk as a single Flex plugin, written in React, organised into modules: task management, transfers, scheduled sessions, follow-ups, out-of-hours requests, saved replies, supervisor drop-ins, surveys, reminders and more. Each service turns on only the modules it needs.

The charity later launched a second service on the same platform, a text and email helpline where coaches support young people aged 13 to 18. It used the same system with different features enabled.

If you are building on Flex for more than one programme, separate plugins per service drift apart, and every fix has to be made several times.

Route every message deliberately

Each incoming message goes through a Twilio Studio flow before any coach sees it. The flow records the request, reads what the parent entered before the chat began, checks whether the service is open, and passes the conversation to the right TaskRouter queue. Conversations that raise concern reach a safeguarding specialist.

Outside opening hours the message is not dropped. It is logged as an out-of-hours request, and a coach picks it up when the service opens. For a parent writing at eleven at night, "we are closed" and "a coach will reply tomorrow" are different promises.

Make conversations survive the platform

Twilio can delete a task at the platform level, for example when a timeout is reached. A parenting conversation that pauses for a day can then disappear from the coach's view. We handled that in the TaskRouter callbacks. When the platform deletes a task, the server reopens the conversation, creates a new task on the same workflow, and sends it back to the coach who was handling it, or to the original queue if that coach is unavailable. Recreated tasks can stay open for two weeks.

The same callbacks track the original task identity across those changes, pause scheduled follow-ups while a conversation is active, and snooze accepted tasks when a coach goes offline. The parent can continue without seeing the task changes.

Keep Salesforce and the chat in step

Every conversation has to land correctly in the charity's Salesforce case records. Staff rely on those records long after the chat has ended, and a lot of our maintenance work went into chat history, data integrity and the Salesforce sync.

A Node.js server sits between Flex, Twilio and Salesforce. Background workers on Redis handle the slow or repeated jobs: transcripts, follow-ups, reminders, message syncing, and regular health checks on live conversations. When either side changed, or a sync failed, the fix had to restore the record without duplicating it. A case record that disagrees with the chat is worse than a missing one.

Budget for ongoing Flex development

  • Budget for a development team as well as a licence. Flex is useful because you can shape it, and that shaping does not stop at launch.
  • Design for conversations that last days, not minutes.
  • Build one configurable desk if you run more than one service.
  • Decide early where the record of truth lives, and test the sync to it as seriously as the chat.
  • Plan for Twilio's own lifecycle rules, such as task timeouts, before they surprise a coach.

The platform is live and runs the service every day. I no longer maintain it.