A UK engineering team that already runs its phone numbers on Twilio meets the same question sooner or later: should the voice agent be built on Twilio ConversationRelay, or should it run on a voice AI platform that sits on Twilio telephony? For a CIO or a head of engineering the question gets sharp after a promising prototype, when the demo works and somebody has to own the production version. The honest answer depends less on the model and more on how much of the call the team is prepared to own.
Twilio's own overview of the product is a fair place to start. In the words of the Twilio ConversationRelay documentation, read on 25 November 2026: "Let Twilio handle the heavy lifting of speech recognition, text-to-speech, and voice synthesis, so you can focus on building your application." That sentence is accurate, and it is also the scope boundary. Everything after the speech layer is your application, and this guide maps that application against Twilio's documented message contract.
This post stays at that protocol level. It does not rerun the generic three-path decision, which our build, orchestrate or buy guide owns, or the economics of orchestration tools such as Vapi and Retell AI, which sit in orchestration versus platform. Carrier choice belongs to telephony provider selection, and the Vonage version of the ownership question is in our Vonage AI Studio alternative guide.
This guide is shipped by the team behind Dilr Voice, a multi-agent voice AI platform whose telephony runs on Twilio or Vobiz. Or see DATS, our five-stage method for placing AI where it changes the operating numbers.
What is Twilio ConversationRelay, and what does it handle?
Twilio ConversationRelay is a TwiML noun, used inside the Connect verb, that routes a live phone call to a WebSocket server you run. Twilio converts the caller's speech to text and sends it to your server, then turns the text your server sends back into speech. Twilio's documentation says it handles speech-to-text and text-to-speech conversion, session management and low-latency communication with your application.
The ConversationRelay TwiML reference lists the speech providers a team can choose between: Google, Amazon and ElevenLabs for text-to-speech, and Google and Deepgram for speech-to-text. Choosing between them is a real engineering task. Twilio's ConversationRelay best practices page recommends testing both transcription providers, because each has strengths in clean and noisy audio, which is exactly the trade-off a UK contact centre with mobile callers on trains will need to measure rather than assume.
The same reference sets the timing controls. speechTimeout must be auto or an integer between 600 and 5000 milliseconds, and it decides how long ConversationRelay waits after the caller stops speaking before it reports the final prompt. Set it too short and one caller turn arrives as two fragments; set it too long and every reply starts late. These are the knobs that make a prototype feel natural or robotic, and on ConversationRelay your team owns their values.
One detail deserves a calendar reminder. The reference notes that the default for reportInputDuringAgentSpeech was any before May 2025 and is now none, which changes whether your server hears the caller while the agent is talking. A build written against older examples can behave differently on a newer default, so pin every attribute explicitly rather than relying on what the docs said when the prototype was written. That habit matters more on a primitive than on a managed voice AI platform, where the vendor owns the defaults.
What does your team still build after ConversationRelay?
After ConversationRelay, a team still builds the whole conversational application: the WebSocket server, the model calls and prompts, tool use against CRM and booking systems, the knowledge the agent answers from, silence handling, reconnection, handover to a person and the call record. Twilio's documentation describes your system as the part that focuses on processing conversational AI logic, and its message list shows how thin the contract is.
DILR counted the documented message set on 25 November 2026. The WebSocket messages guide lists 6 message types that Twilio sends to your server: setup, prompt, dtmf, interrupt, info and error. It lists 7 that your application can send back: text, play, sendDigits, language, config, hints and end. Nothing in either list is a CRM lookup, a booking, a consent check or an audit record. Those are yours.
| Concern on a live call | What ConversationRelay documents | What your application owns |
|---|---|---|
| Hearing the caller | Speech-to-text, prompt messages, the last flag on a finished turn | Choosing provider, model and speechTimeout, and testing them on your callers |
| Speaking to the caller | Text-to-speech from streamed text tokens | Prompting, token streaming, text normalisation for numbers and dates |
| Caller interrupts | An interrupt message with the utterance played so far | Deciding what the agent does next, and what it believes was heard |
| Caller goes quiet | No prompt message until the caller speaks | A silence timer in your own code |
| Server restarts | Optional reconnect with a buffer of recent events | Restoring session state from wherever you stored it |
| Handing to a person | An end message and handoff data to your action URL | The routing, the queue and the context the human receives |
| Recording and audit | Recording through Twilio's separate Recordings resource; optional transcript persistence through Conversation Intelligence (classic) | Consent wording, retention, transcripts and the audit trail |
The table is DILR's reading of Twilio's pages on 25 November 2026, not a Twilio statement. It shows why a ConversationRelay build is a software product rather than a configuration task. Naming an owner for each right-hand cell is operating model work, and our AI operating model consulting covers governance, RACI and lifecycle, audit-ready by design. A cell nobody owns is where a production incident starts.
Security is part of the build too. The ConversationRelay onboarding guide says your WebSocket server should validate the X-Twilio-Signature header on the initial handshake, using your Twilio auth token and the request URL, and accept only connections with valid signatures. It also says an account must accept Twilio's Predictive and Generative AI/ML Features Addendum in the Console before ConversationRelay can be used. Neither is hard, but both belong on a security review checklist alongside the voice AI compliance guide for the UK and EU.
What happens when your WebSocket server drops mid-call?
When a ConversationRelay WebSocket drops and the team has not set applicationReconnect="true", Twilio's documentation says ConversationRelay does not reconnect and the call disconnects with a failed status. With the attribute set, ConversationRelay keeps the caller on the line, buffers recent events, opens a new connection and replays them, but restoring the conversation state is still your application's job.
The figures are specific. The WebSocket messages guide says that with applicationReconnect set, ConversationRelay buffers up to 500 inbound events, or up to 10 seconds of call history, then sends a fresh setup message marked as a reconnect. Twilio's best practices page names the ordinary causes of a drop: autoscaling events, container redeployments and load balancer recycling. In other words, a routine deploy of your own service can end live calls unless applicationReconnect is set and the build plans for it.
That changes how an engineering team ships. In our view a ConversationRelay service needs applicationReconnect set, connection draining on deploys, session state held outside the process that holds the socket, and a test that kills a container mid-call and proves the caller hears nothing odd. The same guide notes that if the last 10 messages your server sends are unidentified, Twilio closes the connection with status 1007 and the reason "Too many consecutive malformed messages", so a serialisation bug becomes a dropped call rather than a log line.
This server-side failure is different from the caller-side case, where a caller walks into a lift and the line dies. That problem, and how a platform resumes a conversation with context, is covered in our mid-call session reconnect guide. On ConversationRelay you need both: resilience for your own socket and a plan for callers who ring back.
The chart is a reading aid, not a reliability statistic, and it follows the table as written: the same page also says an invalid interruptible or preemptible value returns 64101 without ending the session, while the table marks 64101 as ending it, so test that case rather than trust either line. It says nothing about how often each error occurs. What it does show is that most of the documented failure codes, including a WebSocket that cannot be reached, an RTP timeout and a speech-to-text provider connection error, end the session. Every one of them needs a decision in your code about what the caller hears next, and that mapping is worth doing before launch. Our AI placement diagnostic produces a ranked roadmap of where AI belongs and where it does not.
How does a ConversationRelay call reach a human?
A ConversationRelay call reaches a human when your application sends an end message. Twilio's documentation says this ends the session and returns control of the call to Twilio, passing an optional handoffData string to the action URL on your Connect verb. Your action URL then returns new TwiML that routes the call, so the queue, the transfer and the briefing the human receives are all code your team writes.
The documented example uses a reason code such as a live agent handoff, encoded as a JSON string. Twilio's guide adds a warning that matters for any UK firm taking card payments: do not put PCI data in handoffData, because that field is not treated as containing PCI data. The same caution applies to the welcome greeting, hints and custom parameters, which the TwiML reference also says are not treated as PCI data.
What the human hears first decides whether the handover worked. A transfer that drops the caller into a queue with no context forces them to repeat themselves, which undoes the time the agent saved. Our warm transfer and context handoff guide lists what a useful brief contains. On ConversationRelay you assemble that brief yourself from your session store and pass it through your own routing.
On a platform the pattern is packaged. Dilr Voice offers warm transfer to a human with full context as part of its inbound front desk and AI receptionist, and separately each of its specialised agents passes context to the next agent on handover within the call. That is the practical difference a voice AI agents platform makes here: the handover is a platform capability to configure and test, not a service to design.
Where do consent, recording and audit sit on a ConversationRelay build?
On a ConversationRelay build, consent, recording and audit sit with your application. Twilio's best practices page says calls can be recorded through the methods in its separate Recordings resource, and the documented WebSocket message set has no consent, opt-out or audit message type. The wording a caller hears, how an objection is honoured, how long transcripts are kept and who can read them are decisions your team implements, even where Twilio services store parts of the record.
That is not a criticism of Twilio. A speech relay is the wrong place to encode a UK firm's recording notice or its retention schedule, and ConversationRelay is honest about its boundary. The practical consequence, in our view, is a list of controls the build should carry, each checked with your own legal and compliance advisers: a recording notice in the greeting, a way to recognise "I do not want this recorded" or "take me off your list" in any phrasing, permitted calling hours for outbound, screening against the TPS and CTPS for marketing calls, and an audit record that ties each call to the prompt and model version that handled it.
Regulated workloads add provider constraints. The TwiML reference says ConversationRelay supports PCI compliant voice workflows when configured with PCI compliant text-to-speech and transcription providers, and that not all providers are guaranteed to be PCI compliant. It also says ConversationRelay is a HIPAA Eligible Service when configured properly, and that Turn Detection is neither PCI compliant nor a HIPAA Eligible Service. HIPAA is a US regime, but the lesson carries: a feature switch can move a workload out of a compliant configuration.
Dilr Voice ships per-country compliance rules by default, covering recording consent, DNC registry checks, opt-out recognition and permitted calling hours, with full audit trails on every call. Those are the same controls a ConversationRelay team would otherwise write and maintain. For a firm that wants delivery support after the decision, our AI execution office is embedded delivery, with production placements the client owns, whichever route the engineering team picks.
When is building on ConversationRelay the right choice?
Building on Twilio ConversationRelay is the right choice when a UK team has engineers who want to own the conversational application, already runs its numbers and routing on Twilio, needs custom logic that no platform exposes, and accepts responsibility for resilience, handover and the call record. For a product company embedding voice into its own software, that ownership is often the point rather than a cost.
There are good reasons to build. A software company selling a product with voice inside it may need the agent to call its own internal services in ways a platform cannot reach, and it may want its own observability stack end to end. Twilio offers a native observability route as well: its best practices page notes that ConversationRelay integrates with Conversation Intelligence (classic) for virtual agent observability and performance monitoring. A team with that profile, and with on-call engineers who already run real-time services, will find ConversationRelay a clean primitive.
The case weakens when the voice agent is an operational tool rather than a product. A contact centre, a claims team or a patient access office usually wants calls answered well, handed over cleanly and recorded properly, and has no wish to run a WebSocket fleet. In that situation the build becomes a permanent engineering commitment for an outcome a platform already delivers, and the hidden cost of voice AI ownership can arrive after launch, in maintenance rather than in build effort.
A useful test is to ask who gets paged when a call fails at 2am. If the answer is an engineer on your team who knows the WebSocket service, ConversationRelay fits your operating model. If the answer is nobody, or the contact centre manager, a platform is the safer route. Our DATS five-stage AI methodology puts Discover and Diagnose, then Prioritise and Place, ahead of any build, which is where that question belongs.
How does Dilr Voice differ from a ConversationRelay build?
Dilr Voice is a multi-agent voice AI platform whose telephony runs on Twilio or Vobiz, so a Twilio-first team can stay on the carrier it knows while the platform supplies the conversational application. It chains specialised agents into one call, each with its own prompt, model and tools, ships per-country compliance rules and full audit trails by default, and offers warm transfer to a human with full context on inbound calls.
The difference is where the work sits. On ConversationRelay, the six received and seven sent message types are the interface, and your team builds the agent logic, the knowledge retrieval, the handover and the record above them. On Dilr Voice, knowledge bases are uploaded documents that agents search during live calls and cite from the customer's own data, post-call automation writes CRM records and sends email, SMS and Slack notifications without code, and HubSpot, Salesforce and Google Calendar integrations are named live.
For outbound work the carrier relationship stays with you: Dilr Voice outbound campaigns require the customer's own Twilio or Vobiz account. That suits a team that already runs a Twilio account, and it means Twilio account configuration is part of the rollout plan. The number configuration checks in our ElevenLabs agents alternative guide, including Twilio's regional routing default, are worth running for any platform that sits on Twilio.
Teams that still want code-level control are not locked out. Dilr Voice provides a platform API for agents, campaigns, leads, knowledge bases and call data, so an engineering team can automate around the platform without owning the speech loop. DILR measures response time on its own platform at under 500 milliseconds, which is an on-platform figure rather than a guarantee for every network. A free trial with no credit card required is available through the Dilr Voice app.
The same placement logic underpins our AI execution office, embedded delivery with production placements the client owns, so a voice agent has a named owner whether it is built or bought.
What is the best way to run a Twilio voice agent in the UK in 2026?
The best way to run a Twilio voice agent in the UK in 2026 depends on who owns the call. Build on Twilio ConversationRelay when engineers own the product and want the speech layer as a primitive. Use a platform on Twilio telephony, such as Dilr Voice, when operations owns the outcome and wants handover, consent and audit packaged. Orchestration tools sit between the two.
We would weigh four criteria. First, ownership: who writes and maintains the silence timer, the reconnect logic and the handover code. Second, failure handling: whether each session-ending error has a designed caller experience. Third, regulated controls: whether recording notice, opt-out recognition, calling hours and audit are implemented and tested before the first live call. Fourth, carrier continuity: whether UK numbers stay in your Twilio account if you change the layer above them.
Against those criteria a ConversationRelay build wins outright in one scenario: a software company embedding voice into its own product, with real-time engineers on call, where control of every message is worth more than speed to launch. In our view, orchestration tools such as Vapi and Retell AI suit a technical team that wants a different starting point from raw WebSockets but still intends to own the workflow. A platform such as Dilr Voice fits teams where the contact centre or operations function owns the result. Compare the options in our best AI voice agent 2026 guide.
Whichever route you take, the decision should be written down with owners against each concern in the table above. That document is the difference between a prototype and a service, and it is the governance, RACI and lifecycle work our AI operating model engagement covers.
Frequently asked questions
Does ConversationRelay tell me where UK call audio is processed?
Twilio's ConversationRelay pages read for this guide on 25 November 2026 do not state where call audio or transcripts are processed for a UK number. A UK buyer should ask Twilio directly which region handles ConversationRelay sessions, which speech providers process the audio, and how long call data and logs are retained, and should record the answer in the data protection impact assessment before go-live.
Twilio's regional routing behaviour for numbers is a separate question that applies to any platform on Twilio, and our ElevenLabs agents alternative guide walks through it. If residency is a hard requirement, put the question to every vendor in writing, including us; you can contact the Dilr team about the regional data residency options Dilr Voice offers for enterprise.
Can a ConversationRelay agent take card payments?
A ConversationRelay agent can sit inside a PCI compliant voice workflow when it is configured with PCI compliant text-to-speech and transcription providers, according to Twilio's TwiML reference, which also warns that not all providers are guaranteed compliant. Turn Detection is documented as not PCI compliant, and card data must never travel in handoffData, greetings, hints or custom parameters.
One design option worth assessing is to keep card capture out of the conversational agent entirely and route the caller to a dedicated secure payment step. That design choice belongs in the architecture review; our enterprise AI solutions page lists the workloads we build for, including unanswered inbound calls.
Want to see this in production? Try Dilr Voice live, read the enterprise AI voice agents guide, browse more voice AI articles, or read about our approach to placing AI inside enterprise systems.
Decide who owns the call before you build it.
30-min scoping call · No deck · Confidential. We will tell you whether a ConversationRelay build or a platform fits your team, and what each leaves you to run.
Written by the Dilr.ai engineering team, practitioners who ship enterprise AI in production. Follow us on LinkedIn for shipping notes, or subscribe via the RSS feed.