What is an AI IVR, and how is it different from a menu IVR?
In a call center, an IVR (interactive voice response) system answers the call and routes it from the caller's input, usually keypad digits or a few spoken commands inside a fixed menu tree. An AI IVR keeps that job but changes the input: the caller talks normally, and a voice agent decides whether to answer, collect details, look something up or transfer the call.
An AI voice agent used as an IVR is also called a conversational IVR or an AI phone menu. On APIFleet the "menu" is an assistant: instructions, tools, knowledge documents and transfer numbers define what it does, and there is no menu designer or visual flow builder.
| Concern | Menu IVR | AI voice agent on APIFleet |
|---|---|---|
| Caller input | Keypad digits or a few spoken commands from a fixed list | Open speech, plus keypad presses delivered as text on Telnyx and Twilio phone calls |
| How the flow is defined | A menu tree that you draw and write prompts for | Instructions, tools, knowledge documents and transfer numbers; there is no menu tree |
| How you change it | Edit the tree and redo the affected prompts | Edit the instructions or a knowledge document, then test the change |
| Typical failure | Dead ends, wrong branches and options that do not match the caller's request | A wrong or invented answer, or a missed request, when the instructions and tools leave gaps |
| What you can audit afterwards | Whatever your IVR product reports | Call logs that may carry a transcript, analysis, costs and a recording link; a key press is not in the transcript except on GPT-Live |
| Cost model | Set by your IVR provider's contract | $0.03 per connected AI minute, plus AI provider and carrier usage |
What a key press becomes on an APIFleet phone call
A phone keypad uses DTMF (dual-tone multi-frequency) signaling, and RFC 4733 defines how those digits travel in RTP. On a Telnyx or Twilio phone call, the carrier reports each press to APIFleet as a separate dtmf message on the media stream. APIFleet turns it into the text [Caller pressed keypad: 1], with 0 to 9, * or # in place of the 1, and gives it to the model.
Web tests and simulations do not carry key presses, and the Voximplant integration has no keypad handler, so keypad input works on Telnyx and Twilio phone calls only. APIFleet also adds no keypad rule to the prompt, so your instructions must say what a bracketed press means.
The runtimes handle that text differently, as of 21 November 2026, and the table states what the code does for each one. The reverse direction, an agent pressing keys on someone else's menu with send_dtmf, is covered in the AI outbound calling guide.
| Runtime | What the code does with the press | Written to the transcript? |
|---|---|---|
| OpenAI Realtime | Adds the text to the conversation and requests a reply only if the model is not in the middle of generating one; a press that lands mid-reply gets no reply of its own | No |
| GPT-Live | Treats the press like typed caller text, records it as a caller turn and continues from it | Yes, as [Caller pressed keypad: N] |
| Gemini Live | Forwards the text to the model and requests no reply itself, so test how your model reacts to a lone press | No |
| Cascading (separate speech-to-text, model and voice) | Starts a turn if none is running; otherwise holds the press in a one-slot queue shared with spoken replies, where a later press or utterance replaces it | No |
Five rules for keypad choices in an AI IVR
Keep "press 1" where one key answers the question, and treat every key as a single choice. These rules follow from the table above and apply to every keypad branch you keep.
- Write the keypad rule yourself. Say in the instructions that a message like [Caller pressed keypad: 2] means the caller chose option 2, and offer the keys in the first_message, for example: "Thanks for calling Acme. Say what you need, or press 1 for orders or 2 for billing." Set greeting_mode to exact if the greeting must be spoken word for word.
- Keep the keypad to single-key choices. Take longer numbers by voice and have the agent read them back, as the digit-entry section below explains.
- Do not assume press-ahead works like an IVR. On OpenAI Realtime a press that lands while a reply is being generated gets no reply of its own, on cascading calls it waits for the running turn, and on Gemini Live APIFleet requests no reply at all, so keep prompts short and test pressing during the greeting.
- Have the agent say the chosen branch aloud, such as "Billing, got it", because only GPT-Live writes the press itself to the transcript.
- Add a fallback for any other key: read the options once and ask which one the caller wants.
How to map each menu branch to a tool, a document or a transfer
List every branch of the old menu and give each one an ending the agent can reach: a spoken answer from a knowledge document, a result from an HTTP tool, a transfer to a person, or a message for a human to act on. The table pairs a line for your instructions with the APIFleet building block that does the work. The API reference lists the assistant, tool, knowledge and number endpoints.
The transfer tool shows the model only a list of numbers, so name each number in the instructions. Add the numbers with PATCH /assistants/ASSISTANT_ID and a body such as {"transfer_phone_numbers": ["+13125550100", "+13125550199"]}, then write which one is billing and which is sales.
APIFleet has no call queue or skills routing, no hold music, no callback scheduler and no visual flow builder, as of 21 November 2026. Whatever a menu designer or a queue did for you has to be written into your instructions, your tools or your own systems.
| Menu branch | Line to add to your instructions | Building block |
|---|---|---|
| Key 1: order status | If the caller chose 1, ask for the order number and call lookup_order. | HTTP tool |
| Key 2: opening hours | If the caller chose 2, answer from Business Knowledge. | Knowledge document |
| Key 3: billing | If the caller chose 3, say "Billing, got it" and use transfer_call to the billing number. | transfer_call with transfer_phone_numbers |
| Key 0 or "a person" | If the caller chose 0 or asks for a person, say you are transferring the call, then use transfer_call. | transfer_call |
| Any other key | Read the options once and ask which one the caller wants. | Instructions only |
| Leave a message | If nobody can take the call, collect the caller's name, preferred number and a short reason. | Built-in runtime rule when no transfer is possible; send the note to your helpdesk with an HTTP tool |
| Hang up when done | Say goodbye and end the call once the caller has what they need. | end_call, on by default |
Why long digit strings, PINs and card numbers stay out of the agent
On a cascading call, a key press that arrives while a turn is running waits in a one-slot queue, and a later press replaces it. The table traces three quick presses, 4 then 1 then 5, when the first turn is still running as the next two arrive.
Telnyx's own streaming documentation adds a caution: DTMF events are asynchronous and may, in certain circumstances, arrive out of order, and it provides an occurred_at timestamp so an application can restore the order. APIFleet's keypad handler reads only the digit, not that timestamp, so it acts on digits in the order they arrive.
So take a choice as one key, and take any longer number by voice with a read-back. Card numbers, security codes and PINs should stay out of the voice agent entirely: call logs can carry a transcript and a recording link, and APIFleet has no keypad masking or card-data redaction, as of 21 November 2026. Send payment steps to a payment page or line you control, and treat this as a design rule rather than a compliance claim.
| Key | State when it arrives | What the model receives |
|---|---|---|
| 4 | No turn is running | A turn starts at once with [Caller pressed keypad: 4] |
| 1 | The turn from 4 is still running | Nothing yet; the press waits in the one-slot queue |
| 5 | The turn from 4 is still running | Nothing yet; it replaces the waiting 1 |
| Turn ends | The queue holds the 5 | [Caller pressed keypad: 5] starts the next turn, so the model never sees the 1 |
How to handle business hours, caller ID and after-hours calls
APIFleet has no business-hours calendar and no after-hours router. By default each call's prompt carries the current date and time and a business timezone, which is UTC unless the assistant sets one, so write your hours and timezone into the instructions or a knowledge document and let the agent compare them.
Write the after-hours branch as an instruction, such as taking a message instead of transferring outside your opening hours, because transfer_call has no schedule. If the answer matters to the business, put the hours check in an HTTP tool so your code, not the model, decides whether anyone is available.
On inbound Telnyx and Twilio calls the prompt also carries the caller's number when the carrier supplies a valid one, which works as a lookup key for your tools. Caller ID is not proof of who is calling, so do not reveal account details on that number alone.
How to transfer a caller to a person, and what happens if nobody answers
The transfer_call tool appears only when the assistant has transfer numbers and the call is a Telnyx or Twilio phone call. The agent announces the transfer, calls the tool with one number from your list, and APIFleet asks the carrier to move the call.
A success result means the carrier accepted the command, not that a person answered. If the carrier never takes the call and the media stream stays open, the assistant comes back after 32 seconds in the current code, apologizes with a fixed message and offers to keep helping or take a message. On Twilio the call is updated with new instructions, so do not assume the assistant returns on every carrier.
The built-in transfer passes no summary to the person who picks up, so have the agent write the caller's issue to your helpdesk with an HTTP tool before it transfers. The customer service guide covers the full handoff sequence.
How to test an AI IVR before you replace the phone menu
A green browser test says nothing about your keypad branches, because web tests and simulations do not carry key presses. Bind a spare Telnyx or Twilio test number to the assistant with PUT /numbers/{number}, configure the carrier's voice webhook, and call it from a handset.
An IVR replacement should move the live number only after the test number passes, and keep the old routing so you can switch back. The migration guide describes moving one route at a time with a written rollback, and the testing guide has a scenario matrix for interruptions, silence and handoffs.
- List every branch of the old menu, including its repeat, operator and no-input behavior.
- Call each branch three ways: say the request, press the key, and press the key while the agent is still talking.
- Repeat each branch with silence, background noise and a wrong key, and check that the agent recovers instead of guessing.
- Read the call log after every call, and check that the agent said the chosen branch aloud, because only GPT-Live records the press itself.
- Test every transfer twice: once when a person answers and once when the destination does not, which should bring the assistant back.
- Run the same branches as chat-mode simulations after each prompt change, and keep real calls for anything that depends on the keypad.
- Move one number or route first, watch transfers and task completion, and retire the old menu only when the results hold.
AI IVR cost per minute on APIFleet
APIFleet charges $0.03 per connected AI minute, billed per second, with no monthly subscription. Model, transcription, voice and carrier usage are billed on top, and with your own provider keys you pay the providers directly.
The formula for one call is connected minutes times ($0.03 plus provider usage per minute plus carrier charge per minute), so only the $0.03 is fixed. Put your own rates into the cost calculator, or call the public apifleet_estimate_call_cost tool on the MCP server with seconds, provider_usd_per_minute and carrier_usd_per_minute; it needs no key. The cost guide explains each component.
Prepaid top-ups start at $10, and new workspace access is currently limited, so check the pricing page for the current status before you plan a rollout.
| Cost part | How it is charged |
|---|---|
| APIFleet platform fee | $0.03 per connected AI minute, billed per second |
| AI providers: model, transcription and voice | Depend on your configuration; with your own provider keys you pay the providers directly |
| Telephone carrier | Depends on the route, destination and account; number rental and carrier rounding may add costs |
Continue with a practical next step
- APIFleet documentation: DTMF keypad, transfer_call and knowledge base
- APIFleet API reference: tools, knowledge documents and call logs
- APIFleet MCP server: connection and free cost tools
- APIFleet pricing: platform fee and prepaid top-ups
- Voice agent cost calculator
- What does a voice agent actually cost?
- Test the conversation, not just the happy path
- Move your voice agents one route at a time
- AI voice agent for customer service: the human handoff section
- AI outbound calling: the reverse direction, your agent pressing keys on someone else's menu
Frequently asked questions
What is the difference between an IVR and an AI voice agent?
A menu IVR walks the caller through a fixed tree of keypad or spoken options that you design and record. An AI voice agent talks in open speech and follows the instructions, tools and transfer numbers you configure, so a request that fits no menu can still be answered or routed. On APIFleet both inputs coexist: speech, plus keypad presses delivered as text on Telnyx and Twilio phone calls.
Can an AI voice agent still use "press 1" keypad menus?
Yes, on Telnyx and Twilio phone calls. Each key press reaches the model as the text [Caller pressed keypad: 1], APIFleet adds no keypad rule of its own, and your instructions must say what each key means. Web tests carry no key presses, only GPT-Live writes a press to the transcript, and on cascading calls a later press can replace an earlier one that is still waiting.
How do I replace an IVR with an AI voice agent?
List every menu branch and give each one an ending: a knowledge document for static answers, an HTTP tool for live data, transfer_call for people and an instruction for the rest. Add a keypad rule to the instructions, bind a test number, test each branch by voice and by key on real calls, then move one route at a time and keep the old routing for rollback.
Should an AI voice agent take card numbers or PINs?
No. Call logs can carry a transcript and a recording link, and APIFleet has no keypad masking or card-data redaction as of 21 November 2026, so send payment steps to a payment page or line you control. This is a design rule, not a compliance claim.
How much does an AI IVR cost per minute on APIFleet?
The platform fee is $0.03 per connected AI minute, billed per second. AI provider usage and the carrier's charges are billed on top, and with your own provider keys you pay the providers directly. Prepaid top-ups start at $10 with no monthly subscription, and new workspace access is currently limited.
Sources and evidence
- Twilio Media Streams: WebSocket messages, including the DTMF message · observed 2026-11-21
- Telnyx: Media streaming over WebSockets, including the DTMF message · observed 2026-11-21
- RFC 4733: RTP payload for DTMF digits, telephony tones and telephony signals · observed 2026-11-21