Tool — Telephony

The phone line
underneath the agent.

A voice AI agent needs an actual phone number and call-routing infrastructure to be reachable by real customers. Twilio is the telephony layer we connect underneath voice orchestration platforms like Vapi — inbound numbers, outbound calling, call transfer to a human.

Serving UK and EU clients: GDPR, EU AI Act, and data residency are covered on our Trust & Safety page.

What it is

Phone numbers,
real infrastructure.

Twilio is a general-purpose cloud communications platform — programmable voice, SMS, WhatsApp, video — not a voice-AI product. It's infrastructure delivered as an API: phone numbers, SIP trunking, call routing, and programmable call control, either through TwiML markup for simple flows or Media Streams for raw, bidirectional audio over a websocket when a custom or AI-driven pipeline needs to consume it directly. Most of what Twilio does has nothing to do with intelligence of any kind — it's closer to a carrier network than a product with an opinion about what should be said on a call. Two integration modes matter in practice: Elastic SIP Trunking, for connecting an existing PBX or contact-center system to Twilio's network without replacing it, and Programmable Voice with Media Streams, for building or receiving calls natively through Twilio's own numbers — which mode fits depends entirely on what a client already has running.

It's fully hosted, usage-based (per-minute, per-message), API and SDK driven — there's no self-hosted option, unlike some of the other tools on this site. Twilio predates the current wave of voice AI by over a decade and serves plenty of use cases with nothing to do with AI at all: two-factor authentication codes, appointment reminders, a classic touch-tone IVR that routes a caller by pressing 1 for sales. That maturity is part of the appeal — it's carrier-grade infrastructure that's been battle-tested at a scale a newer telephony provider hasn't had time to match, with a documented track record on uptime and call quality that matters when a client is migrating something customer-facing off an existing system they already depend on.

On its own, Twilio has no conversational intelligence — no real language understanding behind its basic built-in transcription and text-to-speech, which exist mainly for simple automated announcements rather than natural conversation. A conversational agent still needs a real number customers can call or be called on, and real infrastructure for transferring a call to a human when the agent hands off, but the actual reasoning happens elsewhere. We integrate Twilio as the carrier layer under Vapi-orchestrated voice agents — different layers of the same stack, not interchangeable choices for the same job. Asking "Twilio or Vapi" is a bit like asking "the phone line or the person talking on it" — both are necessary, and they're not substitutes for each other.

This is the layer that matters most for telecom and call-center operators replacing or augmenting an existing IVR, since number-porting and routing behavior have to match what's already live, not a greenfield setup — a carrier migration that breaks call routing for even a few hours is a different order of problem than a buggy new feature.

Not every Twilio project involves voice AI at all, and it's worth being clear about that rather than implying everything we touch gets an AI layer bolted on. Two-factor verification codes, appointment reminders, order-status SMS updates, a plain non-AI IVR for a simple menu — these are legitimate Twilio-only projects on their own, with no orchestration platform or language model anywhere in the stack, and we scope them that way when that's genuinely what the job needs rather than upselling a voice AI layer nobody asked for.

How we actually build with it

Reliable calls,
clean handoffs.

The telephony layer has to be as reliable as the AI layer on top of it, and it comes with its own compliance and configuration overhead that's easy to underestimate when a project is scoped around the voice AI piece alone and treats the carrier layer as an afterthought.

01Number provisioning and routing

Inbound and outbound numbers configured for the specific workflow — local versus toll-free, porting an existing number without downtime, or standing up a new one for an outbound campaign. Porting in particular has to be planned around the losing carrier's own release timeline, not just Twilio's side of the process.

02Carrier compliance registration

A2P 10DLC brand and campaign registration for SMS, and STIR/SHAKEN caller ID attestation for voice — both add real lead time in the US, and getting them wrong gets a number flagged as spam-likely, which quietly tanks answer and delivery rates without an obvious error message pointing at why.

03Media Streams for custom pipelines

When TwiML's call flow isn't enough, Media Streams exposes raw, bidirectional audio over a websocket — the feed a custom or Vapi-orchestrated voice AI pipeline actually consumes to get audio in and out of a live call in real time, rather than working through Twilio's higher-level, markup-driven call control.

04Human handoff and call logging

Live transfer to a person when the agent's scope runs out, without the caller repeating themselves, with call metadata and outcomes tracked as part of the deployment — the same record a call-center supervisor would want to audit after the fact, not a gap in the data nobody noticed.

Where this fits

The carrier layer
under the agent.

The telephony layer underneath our voice AI work, not a replacement for it — the two are built and scoped together, but they're not the same deliverable.

Common questions

Before you
book a call.

The questions we get asked most about Twilio and voice AI telephony — answered straight, no sales pitch.

Does a voice AI agent need Twilio specifically?

It needs some telephony provider to be reachable by real phone calls — Twilio is the one we default to for its reliability and the breadth of its routing and number options, though an orchestration platform like Vapi can usually be wired to a different carrier if a client already has one under contract.

Can a call be transferred to a human mid-conversation?

Yes — that handoff is built in as a standard part of the deployment, with the human receiving call context rather than a cold transfer, using Twilio's call-control APIs to execute the transfer itself once the conversational layer decides a handoff is warranted.

Does this work for both inbound and outbound calls?

Yes — Twilio handles both, and which direction (or both) a project needs depends on the use case: a support line is almost always inbound-only, while an outbound reminder or collections campaign has its own separate compliance requirements around consent and calling hours.

Can Twilio's built-in transcription and voice replace a dedicated voice AI stack?

Not for anything conversational. Twilio ships basic transcription and text-to-speech as commodity add-ons, but they're not tuned for real-time conversational AI the way a dedicated orchestration layer like Vapi, paired with Deepgram or Whisper, is — they're built for simple automated announcements, not for holding up under interruptions, accents, or a caller going off-script. We use Twilio's own voice features for things like a basic outbound notification and pair it with a real voice AI stack for anything that needs to actually hold a conversation.

What compliance overhead does Twilio add to a project timeline?

In the US, outbound-heavy deployments need A2P 10DLC brand and campaign registration for SMS, and STIR/SHAKEN caller ID attestation for voice, to avoid being flagged as spam-likely — both can take days to clear carrier review, not minutes. Number porting from an existing provider also has its own timeline, set by the losing carrier rather than Twilio. We scope this lead time into the project plan upfront rather than discovering it mid-build, since it's the kind of delay that blows a launch date if it's a surprise.

Get started

Tell us what
you're trying to build.

Book a 30-minute call — or try our live voice demo to hear a real deployment first.