AI Chatbot Wiki

Twilio Voice AI Review: Building Voice Agents on the Plumbing

Twilio is telephony plumbing you build voice AI on top of, not a finished agent. Here is what that costs, what it buys, and when I actually choose it.

Updated 2026-08-18

Copper pipes and valves arranged neatly against a wall, industrial and orderly

Twilio is not a voice AI platform. It is the plumbing you build a voice AI platform on, and understanding that distinction before you start saves you a lot of confused expectations. Twilio gives you phone numbers, SIP, programmable call control, media streams, and SMS. What it does not give you, in the way a hosted agent platform does, is a finished conversational agent you configure and point at a number. You bring the brain. I run an OpenAI Realtime plus Twilio voice agent in production for an energy company, and I have Twilio numbers and SMS running under a handful of other client systems, so this review is about what that build actually feels like.

What it actually is for voice AI

The core piece is media streams. Twilio answers the call and opens a websocket to your server carrying the raw audio in both directions. Your code receives the caller's audio and sends back audio to play. Everything between those two points is yours: speech recognition, the model, the response, the text-to-speech, the turn-taking logic, the interruption handling. In practice most people now pipe that websocket straight into a realtime speech-to-speech model, which collapses four components into one and is the reason this architecture became practical for small teams.

Around that sits everything Twilio has always been good at. Call control through their markup or their API: answer, forward, record, conference, gather digits, hang up. Programmable SMS on the same account with the same phone numbers. Webhooks for every call event. Serverless functions if you do not want to host anything yourself.

There is also a higher-level AI assistant offering that sits closer to a configure-and-go product. It exists and it is credible, but the reason people choose Twilio is almost never the managed layer. It is the plumbing and the ubiquity.

What I have shipped on it

An OpenAI Realtime plus Twilio voice agent for an energy company. Twilio handles the number and the media stream, the OpenAI Realtime API handles the conversation, and a small server in the middle bridges the two, manages the session, and calls out to the tools the agent needs. Total infrastructure cost for this build runs about $14 a month plus usage. That number surprises people who assume a custom voice agent means a real hosting bill. It is a small server and two metered APIs.

That build replaced an older Deepgram-based stack, where transcription, the model, and the speech synthesis were separate stages I stitched together. The migration was worth it for one reason above all others: latency. Every stage boundary in a pipeline is a place where you wait for the previous stage to finish. Collapsing transcription and generation and synthesis into one realtime model removed those boundaries. The agent stopped feeling like it was thinking and started feeling like it was listening.

SMS and missed-call flows. Twilio numbers under missed-call text-back systems for contractors: the call comes in, nobody answers, an SMS goes out within seconds asking what they need. That flow books jobs that would otherwise be lost to the next contractor on the list, and it is one of the highest return things I sell. I also built an SMS assistant inside a sports facility company's CRM with a hard consent gate: the bot physically cannot text anyone who has not opted in, enforced in code rather than in a prompt. Consent is not something you ask a model to remember. See TCPA compliance for AI SMS.

Number and forwarding plumbing generally. Getting an existing business phone system to hand calls to an AI number is its own discipline. One carrier phone system needed group forwarding rather than its auto-receptionist to route correctly, which is not documented anywhere useful and took real trial and error to find. That work is in phone forwarding for AI agents.

What it is great at

Reliability and reach. Twilio has been carrying phone traffic at scale for a very long time. Numbers in essentially every market, deliverable SMS, well-understood compliance paths for toll-free and A2P registration. When a client asks whether it will work in a given country, the answer is usually yes.

Documentation and ecosystem. Every problem you hit has been hit before and written up. Libraries in every language. For a build where you are already writing the hard part yourself, having the telephony layer be the well-documented part is worth a lot.

Total control. You own the pipeline, so you can do things a hosted platform will not let you. Swap the model without changing the phone setup. Log every frame of audio for debugging. Insert your own logic between hearing and responding. Run your own retrieval instead of theirs. If your requirements are unusual, this is the layer where unusual is possible.

Voice and SMS on one account. For flows that cross channels, like an agent that takes a call and then texts a confirmation link, having both on one number and one bill removes friction. Most of my highest-value client flows are voice plus SMS, not voice alone.

Cheap at small scale. That $14 a month plus usage is real. Across several small clients on a shared account, my total Twilio bill runs around $130 a month. Telephony is not where the money goes on these projects.

Where it bites you

You are on the hook for the hard part. Interruption handling, turn-taking, knowing when the caller has finished a thought versus paused to think, recovering when the websocket drops mid-call: none of this is provided. Hosted platforms solved these problems and you are re-solving them. Budget for that honestly. My energy company build was not a weekend.

Latency is your problem to manage. Media streams add some, your server adds some, your model adds some, and the caller hears the total. There is no dashboard that tells you where the time went. You have to instrument it yourself, and the first time you do, the answer is usually not where you guessed. Anything above roughly a second of dead time before the agent starts speaking reads as broken to a caller.

Two vendors means two log sources. When a call goes wrong, the telephony side and the AI side have separate logs with separate identifiers, and correlating them is manual work you will do at the worst possible time. This is the single strongest argument for a carrier-native agent platform like Telnyx AI Assistants, where it is all one call record.

Messaging compliance is real work. A2P 10DLC registration, toll-free verification, campaign approval: none of it is hard exactly, but it takes calendar time and it will delay a launch if you start it the week before go-live. Register early.

Pricing has many small line items. Numbers, inbound minutes, outbound minutes, media streams, messaging segments, carrier surcharges. Each one is cheap and there are a lot of them. Model the actual bill before you quote a client a fixed monthly, especially if outbound calling is involved.

The simulator problem, again. You cannot fully test a telephony integration without making real calls. System variables like caller ID do not exist in local testing, and I have shipped bugs that only surfaced on a real inbound call because of exactly that. Call your own cell before the client calls it. More in testing voice agents.

Pricing model as of mid-2026

Twilio is pure pay-as-you-go with per-unit pricing on everything. Phone numbers cost roughly a dollar a month for a local US number, with toll-free and international higher. Voice minutes are around a cent per minute for inbound US, with outbound and international varying by destination. SMS is priced per segment. Media streams carry their own small per-minute charge. There are volume commit discounts once you are big enough to negotiate, and enterprise agreements above that.

The important framing for anyone building a voice agent: your Twilio bill is the small part. The model API is the bigger meter. In my energy company build the base infrastructure is about $14 a month and everything above that is usage, dominated by realtime model minutes rather than telephony minutes. If you are trying to cut cost on a voice agent, tune the conversation length and the model, not the phone number. Broader budgeting is in how much an AI chatbot costs.

Who should pick Twilio for voice AI

Pick it if you are building rather than configuring, and you want the model, the retrieval, and the logic to live in your own repository. Pick it if you are already on Twilio for SMS or existing telephony, since adding voice AI to an account you already run is far less work than a new vendor. Pick it if your flows cross voice and SMS, which is where a lot of the real business value sits. Pick it if you need global reach or unusual routing requirements. Pick it if you want the freedom to swap the AI layer later without touching the phone layer, which is a genuinely valuable option to hold.

Do not pick it if you want a working agent this week. A hosted platform gets you there in an afternoon and Twilio does not, and pretending otherwise is how projects overrun. Do not pick it if nobody on the project writes and operates server code, because there is no version of this that is no-code. And do not pick it if your main need is fleet operations across many small clients, where a carrier-native assistant platform with per-tenant dynamic variables will cost you far less operational time.

FAQ

Is Twilio itself an AI voice agent platform?

Not in the way a hosted agent product is. There is a higher-level assistant offering, but the reason engineers choose Twilio is the programmable telephony layer underneath: numbers, call control, and media streams that you connect your own AI to. If you want to configure a prompt and a voice and have a working phone agent, you want a hosted platform. If you want to own the pipeline, you want this.

What does a Twilio plus realtime model voice agent actually cost to run?

For a small business agent, base infrastructure is around $14 a month, and everything else is usage. Telephony minutes are around a cent, and the realtime model minutes are the dominant cost. Across several small clients on one account my total Twilio bill runs about $130 a month, which is not the expensive part of any of those projects.

Why move off a separate transcription plus model plus TTS pipeline?

Latency, mostly. Every stage boundary in a pipeline is a wait, and the waits add up to a pause the caller can hear. Moving to a single realtime speech-to-speech model removed those boundaries and made the agent feel like it was listening rather than processing. It also removed two vendors from the failure surface.

Should I use Twilio or a carrier-native AI platform?

If you need custom logic and want the AI layer under your own control, Twilio. If you want one vendor owning the number, the call control, and the agent so that debugging a bad call means looking in one place, a carrier-native platform. I use both, for different clients, based on whether the project is a build or a deployment. The Telnyx vs Twilio comparison covers the tradeoff properly.

Can I do missed-call text-back on Twilio?

Yes, and it is one of the best value things you can build on it. A missed call fires a webhook, your handler sends an SMS within seconds, and a lead that would have called the next contractor instead texts you back. The only rule I hold absolutely: never message someone who has not consented, and enforce that in code rather than in a prompt.