What we do
Tools
Industries
Department
How we workLet's talk →
Home/Twilio/Twilio Voice IVR
Twilio Programmable Voice

Twilio Voice IVR: Build the Menu in TwiML, Then Route on Something Real

With Twilio Voice, every inbound call is a web request. Twilio asks your server what to do, your server answers in TwiML, and the call follows those instructions until the next request. A phone menu is a few of those round trips. Here's the path a call takes, the mistakes that drop callers, and what a month of calls costs.

One call through a two-option menu

  1. 1

    The number hands the call to your URL

    Phone Numbers Manage Active numbers

    Open the number and set A call comes in to a webhook on your server, or to a Studio flow. Twilio sends the caller's number, the number they dialed and a call ID with each request.

    Watch for: the fallback URL on the same screen. If your server errors or times out, Twilio uses it. Without one, the caller hears Twilio's "application error" message and the call ends.

  2. 2

    Answer with a greeting and a <Gather>

    Wrap a <Say> or <Play> inside <Gather numDigits="1" action="/menu"> so a caller can press a key mid-greeting. input can be dtmf, speech or both; keypresses are the default.

  3. 3

    Handle the choice at the action URL

    Twilio posts the keypress as Digits, or the spoken words as SpeechResult with a confidence score. Your code decides the route here, which is where any lookup belongs: who's on shift, which account this number belongs to.

  4. 4

    Send the call somewhere

    Respond with <Dial> to ring a person or a number, <Enqueue> to put the caller in a hold queue, or <Record> for a message. <Dial> can also drop the caller into a <Conference> room.

  5. 5

    Plan for silence

    If the caller presses nothing, <Gather> waits (five seconds by default), then Twilio moves on to the next instruction after it. If there's no next instruction, the call hangs up.

    Watch for: add a <Redirect> back to the menu once, then send the caller to a person or voicemail, so nobody is cut off for being slow.

Where Twilio IVR menus lose callers

A forwarded call answered by someone's voicemail

How you'll know: The log shows the call as answered and short, and the customer says they reached a personal voicemail.

Fix: Put a url on the <Number> inside <Dial> to play a whisper that asks the staff member to press 1 to accept. A voicemail can't press 1, so the call falls back to your next step.

Asking callers to say an account code

How you'll know: Lots of retries on the account step, and wrong accounts pulled up.

Fix: Twilio says its speech recognition isn't tuned for mixed letters and numbers. Take codes as keypresses, or skip the question by matching the caller's phone number to the account first.

A slow lookup behind the menu

How you'll know: Dead air after the caller presses a key, then the error message.

Fix: Keep the action URL fast. Cache the shift list or account index rather than querying a slow system on every call, and test the fallback URL on purpose.

A menu that ignores what you already know

How you'll know: Press 1 for sales rings the sales line while all four reps are on calls.

Fix: Route on live data: who's available, whether this caller has a job today, which account owner they belong to. That data sits in your scheduling or CRM system, not in TwiML.

What a month of IVR calls costs

Twilio Voice has no flat platform fee. Each minute is billed, inbound and outbound separately, and forwarding a call to a cell phone bills a second leg.

Example month · a local number, 2,000 inbound calls, US list rates now
Inbound minutes: 2,000 calls × 3 min (6,000 min at $0.0085) $51.00
Outbound leg when calls are forwarded: 1,200 calls × 2 min (2,400 min at $0.014) + $33.60
Speech recognition on 800 menu choices (Charged per use, not per minute) + $16.00
Recording the forwarded calls (2,400 min at $0.0025) + $6.00
Local phone number + $1.15
Example monthly total $107.75

Toll-free numbers cost more for inbound minutes than local ones, and storage and transcription of recordings add further per-minute charges. Rates change, so check Twilio's voice pricing page for your country before you budget.

TwiML in code, or a Studio flow?

A short menu that rarely changes is easy to draw in Twilio Studio, and a non-developer can edit the greeting later. Once routing depends on live data from two or three systems, plain TwiML from your own server is easier to test and to keep in version control.

Plenty of teams mix the two: Studio draws the menu and calls one endpoint for the decision. Either way, the decision itself is code that reads your schedule or CRM, and that's the piece worth getting right.

Call logic n-frames builds on Twilio Voice

01

A menu that checks your real schedule

Before the call rings anyone, it checks your dispatch or scheduling system for who's on shift and free, so a caller doesn't land on someone who's out or already on a job. Shops on ServiceTitan or Jobber keep that data there already.

02

A conference line tied to a real appointment

When an appointment is booked, a conference room is created for it and the dial-in details go out with the confirmation, instead of one standing number that anyone who finds it can join.

03

Callers recognised by their number

The caller's number is matched to the customer record before the greeting, so a returning customer hears their open job or booking and goes straight to the right person. The same lookup can text a confirmation through the Twilio Messaging API.

Questions people ask

What is TwiML?

TwiML is the XML Twilio reads to control a call or message in progress: speak this, gather a keypress, dial this number, start recording. Your server returns it in answer to Twilio's request, and the call follows it in order, so a simple IVR menu is a short TwiML document plus the code that handles the choice.

Can Twilio forward calls to a different number automatically?

Yes. <Dial> rings another number or several at once, and your code can choose which based on the time, the caller or their menu choice. A whisper on the forwarded leg lets your staff accept the call, so their personal voicemail doesn't pick it up.

Does Twilio support conference calls?

Yes. <Dial><Conference> puts callers into a named room, and settings control who is muted, when the conference starts and who can be removed. It's used for three-way customer calls, standing team lines and appointment-linked rooms.

How much does Twilio Voice cost?

It's billed per minute, with separate inbound and outbound rates that vary by country and number type, plus a monthly fee per phone number. Speech recognition, recording and transcription are charged on top. The example month above shows how those add up.

Can a Twilio IVR understand what callers say instead of keypresses?

Yes. Set input on <Gather> to speech, or dtmf speech for either. Twilio returns the words and a confidence score. It works well for short answers like "billing" or "reschedule", less well for codes mixing letters and numbers.

Who builds Twilio Voice IVR systems for service businesses?

n-frames builds the call logic: menus that check your schedule or CRM before routing, caller lookup by phone number, appointment-linked conference rooms, and the fallbacks for when a system behind the call is slow.

Let's talk

Tell us the one thing your team does manually that eats up time. We read every message and reply within a day.