Blog · Twilio

How I built an AI voice receptionist with Twilio ConversationRelay

A law firm was losing callers after hours. Here’s how I used Twilio ConversationRelay to build an AI receptionist that answers like a person and hands every caller to the team as a lead.

By Olubunmi Elizabeth · November 25, 2026

The ConversationRelay setup from the project (client details blurred)
The ConversationRelay setup from the project (client details blurred)

The problem: calls nobody could answer

The client is a group of 12 personal injury law firms. Their intake team answered calls during the day, but after hours and at busy moments callers reached an answering service or voicemail. For an injury firm, a caller who hangs up often calls the next firm on Google.

They wanted an AI receptionist that answers on the firm’s own Twilio numbers, sounds like a caring person, collects the details an attorney needs, and puts the caller straight into their intake software.

What Twilio ConversationRelay does

ConversationRelay is Twilio’s building block for voice AI. Twilio answers the call, turns the caller’s speech into text, and turns your replies back into a natural voice. Your own app sits in the middle and decides what to say. That means:

  • No separate speech-to-text or text-to-speech accounts to manage: you choose the providers (for example Deepgram for listening and ElevenLabs for the voice) in one setting.
  • The caller can interrupt the AI mid-sentence, like a real conversation.
  • You keep full control of the AI’s instructions, the questions it asks and where the data goes.

How I built it

  1. Routing: when nobody on the team answers, a Twilio Function hands the call to ConversationRelay instead of voicemail, using a short greeting with the receptionist’s name.
  2. The live connection: ConversationRelay opens a WebSocket to a small app on Cloudflare Workers, which keeps the conversation and asks the AI for each reply.
  3. The intake script: the AI asks what happened, when, the injuries, whether they’ve seen a doctor, and their name and number. It reacts like a person (“That sounds really painful”) instead of reading a form.
  4. Spanish: when a caller speaks Spanish, the app switches both listening and speaking to Spanish for the rest of the call.
  5. Accuracy: I gave speech recognition hints for legal and medical words (rear-ended, physical therapy, workers’ compensation, local hospital names) so it hears them correctly.
  6. The lead: when the caller hangs up, everything collected is sent once to the firm’s CRM as a new lead, and the call is recorded like any other.
  7. Safety net: if the AI connection ever fails, the caller goes to voicemail, so no call is lost.

Making it sound human

The first version answered correctly but sounded robotic: it thanked the caller after every answer and repeated their name. The fixes were small but made a big difference: vary short acknowledgements, use the caller’s name only now and then, explain the process once at the start, add a brief “mm-hm” only when a reply is slow, and close by telling them exactly what happens next.

What it costs to run

You pay Twilio per minute for the call and ConversationRelay (which includes the speech providers), plus the AI model’s usage. There are no extra monthly subscriptions for the speech side.

Is ConversationRelay right for you?

It’s a strong fit if you already use Twilio numbers and want an AI receptionist you fully control, connected to your own CRM. If you want something running in a day with no code, a hosted platform like Vapi or Retell can be quicker, and I set those up too.

Want this set up for your business?

I build Twilio phone systems, AI receptionists, A2P 10DLC texting and WhatsApp for businesses. Tell me what you need and I’ll send a clear plan and a fixed quote.

More from the blog

Ready to stop missing calls and texts?

Book a free 15-minute call. You’ll get a clear plan and a fixed quote.