E2E Testing for Chat, Voice, Phone and Video AI Agents
Run Thousands of Test Scenarios against Your Agent and Catch Hallucinations, Bias, and Toxicity Before Users Do.
What Is IVR? Interactive Voice Response Explained
What is IVR? Interactive voice response explained: how an IVR system takes keypresses and speech, inbound vs outbound IVR, examples, benefits and design tips.
OVERVIEW
A caller on a bank's IVR line presses 7 at a menu that only offers 1, 2 and 3, or sets the phone down to find a card and says nothing. What the system does next, whether it repeats the menu, explains the options or hands the call to a person, decides if that call ends with an answer or in a queue.
Small menus hold more of those decisions than they show. A fictional six-menu bank line modelled for this guide has 14 distinct forward caller paths, and only 5 of them end in self-service; the other 9 reach a person.
IVR, short for interactive voice response, is the phone system that makes all of those decisions with nobody on the line. It answers, plays prompts, reads keypresses or speech, then serves the caller or routes the call.
Overview
IVR (interactive voice response) is an automated phone system that answers calls, plays recorded or synthesized prompts and acts on the keys a caller presses or the words a caller says. It either completes the task with data from a back-end system, such as reading an account balance, or routes the call to the right queue of people.
How does IVR work?
- IVR prompts: IVR prompts are the recorded or synthesized speech a caller hears, including the greeting, the menu options and any answer read back. An IVR flow can play a shorter prompt on each new attempt, a technique called tapered prompting.
- IVR caller input: An IVR reads keypad presses, which travel as DTMF tones, and spoken answers, which a speech recognizer turns into text. A touch-tone IVR listens only for keypad tones and does not recognize speech. A speech-enabled IVR asks a closed question and recognizes the spoken answer.
- IVR call flow: The IVR call flow is a tree of menus and states, and each valid key or phrase moves the caller to the next state. An unknown key or silence triggers a reprompt. After a set number of tries, the flow falls back, often to a transfer.
- IVR self-service: An IVR self-service step reads data from systems such as a CRM, billing or a core banking platform, so the call can end with a balance read back, a card activated or an order status given. None of those routine tasks needs a person.
- IVR routing: IVR routing sends any call the menu cannot finish to a queue of people, ideally with the reason for the call and the account number already collected, so the agent who answers does not ask for them again.
What Is IVR (Interactive Voice Response)?
Interactive voice response, or IVR, is technology that lets callers use a phone system through keypad presses or spoken answers instead of a live person. The IVR plays prompts, collects the caller's input, looks up data when it needs to, and either completes the task in self-service or routes the call to the right team.
The VoiceXML 2.0 specification, a W3C Recommendation since 16 March 2004, lists the parts of an IVR dialog: synthesized speech, digitized audio, recognition of spoken and DTMF key input, recording and telephony. Its stated goal was to bring the advantages of web-based development to interactive voice response applications.
- The acronym - IVR stands for interactive voice response: interactive because the caller answers back, voice response because the system replies with recorded or synthesized speech.
- Application and platform - the IVR application is the call flow itself (prompts, menus, rules and data lookups). It runs on a phone platform or contact center service, such as Amazon Connect or Twilio, which answers the line and plays the audio.
- An old idea - IBM's 1964 System/360 System Summary describes the 7770 Audio Response Unit. There, an inquiry "consists of a series of digits from a terminal (usually a telephone)" and the reply is built from words pre-recorded on a magnetic drum. Digits in and recorded speech out is still the basic exchange of a keypad IVR.
IVR vs Auto Attendant: What Each One Handles
An auto attendant answers a company's main number and connects the caller to an extension or department, and its job ends once the call is routed. An IVR can route the same way, but it can also identify the caller, read data from back-end systems and finish a task with no person involved.
| Aspect | Auto attendant | IVR |
|---|---|---|
| Main job | Connect the caller to a person, extension or department. | Finish routine tasks in self-service and route the rest. |
| Caller input | A department key or an extension number, sometimes a spoken name. | Menu keys, account numbers, PINs, dates and spoken answers. |
| Data lookups | None beyond a directory of extensions. | Reads and writes CRM, billing, order or banking records. |
| How the call ends | Usually with a person or a voicemail box; some also play recorded information such as office hours. | With the task done, or with a transfer that carries the data collected. |
How Does an IVR System Work?
One inbound call usually moves through the same steps, whichever platform hosts the IVR.
- The call arrives. The phone network or a SIP trunk delivers the call to the platform that hosts the IVR, which answers and starts the call flow.
- A prompt plays. The IVR greets the caller and reads the options, for instance one key for sales and another for support, the menu used as an example in the Amazon Connect Get customer input documentation.
- The caller answers. A keypress travels as a DTMF tone, or the caller speaks. Twilio's Gather verb collects "speech, digits pressed on the keypad, or both", and listens for digits only unless it is told otherwise.
- The flow decides. The application matches the input against the options of the current menu and moves to the next state, or raises a no-input or no-match event.
- Back-end systems answer. For self-service, the IVR checks who is calling, often with an account number and PIN, then reads from or writes to a CRM, billing system or core banking platform.
- The call ends or moves. The IVR reads back the answer or completes the task, or it transfers the call to a queue and passes along what it already collected.
- The platform logs it. The keys pressed, the menus visited and the outcome are recorded for reporting.
The keypad is standardized as well. ITU-T Recommendation E.161 has been in force since February 2001, with an amendment in June 2014. It fixes the arrangement of digits, letters and symbols on telephones, so star and pound sit in the same places on any compliant keypad.
Under those steps, a working IVR has a handful of distinct parts, each with one job:
- Phone connection - the carrier line or SIP trunk and the platform that answers it.
- Prompts - recorded audio files or text-to-speech that read the greeting, options and answers.
- Input handling - tone detection for keys and, on speech menus, a recognizer that turns words into text.
- Call flow - the menus, timeouts, retry counts and fallbacks that decide what happens after each input.
- Integrations - connections to the CRM, billing, order and authentication systems that hold the caller's data.
- Routing - the queues and transfer targets the flow can hand a call to, with the data it collected.
What Happens When a Caller Presses the Wrong Key or Says Nothing?
The VoiceXML 2.0 specification names both off-script events a menu has to handle. Noinput is when "the user has not responded within the timeout interval", and nomatch is when "the user input something, but it was not recognized." By default it replays the prompt after a noinput with no extra audio, while a nomatch gets an audio response before the reprompt.
The specification lets each application set the timeout and leaves its default value "platform-dependent". It also gives a name, tapered prompting, to prompts that get shorter on each new attempt.
| Platform or standard | Silence and bad input | Default wait | What happens next |
|---|---|---|---|
| VoiceXML 2.0 | Separate noinput and nomatch events. | Platform-dependent. | Default handlers reprompt; nomatch plays an audio response first. |
| Twilio Gather | A timeout with no caller input. | 5 seconds. | Call control falls to the next verb in the TwiML document unless actionOnEmptyResult is true. |
| Amazon Connect Get customer input | A Timeout branch for no input, a Default branch for input that matches no condition, and an Error branch. | 5 seconds for DTMF, settable from 1 to 180 seconds. | The flow follows whichever block the designer connected to that branch. |
None of these defaults sets how many tries a caller gets; the flow designer decides that. The worked example below reprompts up to three times, a number chosen for the script rather than taken from a standard, and then hands the caller to a person.
Types of IVR Systems
IVR types are usually told apart by how the caller answers: with the keypad, with short spoken answers to a directed question, or in open conversation. Production lines often mix them, for example a speech prompt that still accepts keys for a PIN.
| Type | How the caller answers | Works well for | Watch for |
|---|---|---|---|
| Touch-tone (DTMF) | Presses keys 0 to 9, star and pound. | Short menus, account numbers and PINs, callers in loud places. | Long option lists and deep menus the caller has to remember. |
| Speech-enabled (directed dialog) | Says one of the answers the prompt names. | Menus with many named options and callers who cannot use the keypad easily. | Misheard answers with accents or noise, and silence timing. |
| Conversational | Describes the need in a full sentence, and an AI voice agent replies. | Requests that do not fit a fixed menu. | Replies are generated, so each answer needs checking, not only the route. |
Touch-Tone (DTMF) IVR
A touch-tone IVR listens only for keypad tones. The Amazon Connect documentation for its Get customer input block says the block accepts single digits 0 to 9 plus # and *, and multi-digit entries go to a separate Store customer input block.
Keypad input is exact: a 4 stays a 4 whatever the caller's accent or the noise around them. That makes the keypad a sound choice for PINs and account numbers, even inside a flow that otherwise takes speech.
Speech-Enabled (Directed Dialog) IVR
A speech-enabled IVR asks a closed question, such as "Say balance, payments or cards", and recognizes the answer. In Amazon Connect the same Get customer input block can pass the caller to an Amazon Lex V2 bot, and customers can interrupt the prompts by speaking.
Timing matters as much as words, and the same Get customer input documentation lists the defaults. Connect waits 3 seconds before assuming the caller is not going to speak (its Start Silence Threshold). It treats 0.6 seconds of quiet after speech as the end of the answer (its End Silence Threshold).
The engine that turns the caller's words into text is automatic speech recognition, and judging when a caller has stopped talking is the job of voice activity detection.
AI Voice Agents That Replace the Menu
A conversational IVR swaps the menu for an open question, such as "How can I help?", and an AI voice agent that understands the request. The agent asks follow-up questions and then completes the task or routes the call.
The differences in build, cost and caller experience are laid out in IVA vs IVR. Because each reply is generated rather than recorded, these agents need the checks in the voice agent evaluation guide.
Inbound IVR vs Outbound IVR
Direction changes who starts the call, what the IVR says first and which rules apply to it.
| Aspect | Inbound IVR | Outbound IVR |
|---|---|---|
| Who dials | The customer calls the business. | The business's system calls the customer. |
| Typical uses | Account and order questions, bill payment, routing to departments. | Appointment and payment reminders, delivery or outage alerts, surveys. |
| What the caller hears first | A greeting and the main menu. | Who is calling, then the message and the keys or words to respond with. |
| US rules to check | Depend on what the menu collects and records. | Identification at the start, consent, and an automated opt-out for telemarketing and many other messages, under 47 CFR 64.1200. |
Inbound IVR: Menus That Answer Customer Calls
An inbound IVR is the menu a customer reaches by calling a business: the main number, a support line or a dedicated self-service number. The caller chooses the task, so the IVR's work is to recognize it quickly and either finish it or reach the right team.
The Maple Ridge model and the design advice later on this page describe inbound flows.
Outbound IVR and the US Rules for Automated Calls
An outbound IVR dials customers and plays a message that asks for a response, such as pressing 1 to confirm an appointment or 2 to move it. In the US, 47 CFR 64.1200 requires every artificial or prerecorded voice message to state clearly, at the beginning, who is responsible for the call.
The same section of 47 CFR 64.1200 also requires some messages to offer an automated opt-out, by voice or key press, within two seconds of that identification. That covers telemarketing messages, and several kinds of exempt message such as non-commercial or health care calls, delivered to a residential line or a mobile number.
Artificial or prerecorded voice calls generally need the called party's prior express consent unless they serve an emergency purpose or an exemption applies. Telemarketing messages to a residential line need prior express written consent.
The FCC confirmed in February 2024 that AI-generated voices count as an "artificial or prerecorded voice" under the TCPA, a ruling covered in the guide to AI phone agents. This section summarizes the rules and is not legal advice: confirm which rules apply to your calls with counsel, and see inbound vs outbound phone agent testing for how call direction changes a test plan.
IVR Examples by Industry
Most IVRs mix self-service for routine requests with transfers for anything that needs judgment. The split differs by industry:
| Industry | What callers do in the IVR | Where the call usually ends |
|---|---|---|
| Banking | Check a balance, hear recent payments, activate a card, report a lost card. | Self-service for balances and activation; lost cards go to a fraud team, as in the Maple Ridge menu. |
| Government and tax | Hear the status of a refund, claim or application after entering identifying details; get office hours. | Self-service when the system finds the record; case questions with staff. |
| Healthcare | Confirm or move an appointment with one key, often on an outbound reminder call; request a prescription refill. | Self-service for confirmations; clinical questions with staff. |
| Utilities | Report an outage, hear restoration updates, submit a meter reading. | Mostly self-service, with a fast route to staff for safety issues. |
| Retail and ecommerce | Track an order, start a return. | Self-service for status; damaged items and disputes with agents. |
| Any industry | Customer surveys and guided troubleshooting, two uses Amazon Connect's documentation lists for its input block. | Self-service, with a transfer when troubleshooting does not solve the issue. |
Paying a bill by keypad is a self-service task with its own requirements, covered in the guide to IVR payment. Banks offer some of the same tasks in chat, such as checking a balance or locking a lost debit card, through a banking chatbot in their app or website.
Benefits of IVR for Callers and Contact Centers
An IVR pays off when it finishes routine calls on its own and hands the rest to the right people with the context they need. Choosing which call reasons to automate first is covered in the guide to contact center automation.
- Self-service at volume - GAO's March 2026 report on the 2025 tax filing season says the IRS's automated systems answered 4.5 million calls that season, though IRS officials say the count is not comparable with 2024's. The automated systems changed between the two seasons and count calls differently.
- Routing with context - the IVR asks for the reason for the call and an account number before the transfer, so the call reaches the right team and the agent does not ask again.
- Answers outside staffed hours - balance, status and outage lines keep answering at night and on holidays, when nobody is on shift.
- Same wording on every call - prompts play identically each time, and a policy change means editing one prompt instead of briefing every agent.
- A record of each path - the platform logs which keys each caller pressed and where the call ended, which shows where callers leave a menu. How self-service is counted in reports is covered under call center metrics.
Drawbacks of IVR and Common Failures
IVR failures show up as callers who give up, loop between menus or land in the wrong queue. The causes are usually in the design, which means they can be found before launch.
- Callers give up in the tree - the same GAO report notes that not every call that may need a representative is routed directly to one. Callers could be routed to an automated line or, "after navigating IRS's phone tree, decide to end calls without receiving information they need."
- Deep menus - in a 2008 Human Factors study by Commarford and colleagues, users of a broad, shallow IVR "performed better and were more satisfied" than users of a deep one. The gap was larger for people with low working memory capacity. The study used a speech-enabled IVR and e-mail tasks, and it argues that Miller's 1956 paper does not support the popular five-option limit.
- Misrecognition - speech menus can mishear callers with strong accents or noisy surroundings, and each mishearing costs the caller a reprompt or sends them down the wrong branch.
- Hidden exits - a route to a person that no prompt mentions, as in the Maple Ridge sub-menus.
- Loops - a back key with no other exit lets a caller circle between two menus.
- Wrong or missing data - when the back-end lookup fails or returns stale records, the IVR can finish the call and still leave the caller without what they needed.
IVR Menu Design Basics
Good IVR design keeps each path short, tells callers where they are and always leaves a way out. These habits address the failures above directly:
- Put frequent tasks first - order options by how often callers need them, read from the call logs rather than from the org chart.
- Prefer broad over deep - the 2008 study found longer, shallower menus easier on working memory than extra levels, so test a long menu with callers before splitting it to meet a five-option rule.
- Announce the way out - say in every menu how to reach a person, and use the same key for it everywhere.
- Shorten the reprompt - apply tapered prompting: the second attempt drops the greeting and repeats only the options.
- Set timeouts per step - a menu choice, a 10-digit account number and a spoken answer need different waits, and platforms such as Connect configure keypad timeouts and speech silence thresholds separately.
- Let callers type ahead - accept keys while a prompt is still playing, which Connect supports as interruptible prompts, and check that digits pressed early survive the handoff between flows.
- Confirm before acting - read back an amount, a date or an account number and ask the caller to confirm before the IVR changes anything.
- Pass context on transfer - send the collected data with the call so the agent can start from it.
How Are IVR Systems Tested?
IVR testing checks that a menu behaves as designed before callers meet it. Each path should reach the right end state, invalid keys and silence should get the planned reprompt and fallback, transfers should land in the right queue and back-end answers should be correct. The Maple Ridge path list is a starting plan of that kind, with 14 forward paths plus an invalid-key call and a silence call for each of the 6 menus.
Scripted test calls are the subject of IVR automation testing, and load on the phone lines is covered in IVR performance testing. IVR testing tools compares the products teams use, and TestMu AI's product page for IVR testing software sums up the platform side.
IVR Menu Tests You Can Run on TestMu AI Agent Testing
With TestMu AI Agent Testing, autonomous AI testing agents validate AI agents that reach customers by chat, voice, phone, video or images. An IVR gets an agent type of its own, and the simulated caller works through the menu as a customer would.
Each IVR scenario has a Digits to enter line, which is exactly what the simulated caller presses, and the call's recording and speaker-identified transcript show the keypad tones it sent. Labeling who spoke when in a recording, without knowing the speakers in advance, is the task called speaker diarization.
For an IVR built on Amazon Connect, the IVR System Map can be pulled straight from a published contact flow in the linked Connect instance, with no Amazon Q in Connect agent required. Amazon Connect testing covers the integration, and the IVR agent docs cover the setup.
Each IVR call gets an overall score, a mean opinion score (MOS) out of 5 for the call audio and a result for each of the scenario's validation criteria. Hallucination, grounding and safety metrics are built for conversational agents and do not apply to a scripted menu, so they stay off when you choose which call metrics run. If the line is a conversational AI agent that talks freely with callers, the docs point to the phone caller agent type instead, which is graded on 40+ phone call metrics.
Until they are enabled for the organization, IVR, phone caller and WhatsApp agents show a locked card with a Request access button. IVR agents are part of the Enterprise plan. Chat and voice agents are what the free trial covers: 7 days and 10,000 credits, enough for roughly 180 test conversations; Agent Testing pricing lists the plans.
Where Should You Start With Your IVR?
Start by drawing your IVR as states and keys, then list each forward path from the greeting to an end state, as the Maple Ridge model does. For each menu, write down what happens on silence and on an invalid key, how many tries a caller gets, and whether the prompts say how to reach a person.
One interactive voice response flow can also mix keypad and speech input. Amazon Connect's Get customer input block takes keypad digits or hands the caller to an Amazon Lex bot. Keypad menus and speech bots can therefore share one call flow, and both halves need checking before a release.
Was this helpful?
Authors

Chaitanya Sharma
Author · 05 hubs
Chaitanya Sharma is an AI Product Manager at TestMu AI, where he builds agentic AI capabilities focused on computer vision and multi-modality, moving testing beyond static script execution toward autonomous, agent-driven workflows. Before TestMu AI he shipped 135+ features at Sprinklr for a no-code community and website builder used by Fortune 500 enterprises including Dell, Samsung, and Polestar. At Policybazaar he led the zero-to-one launch of a digital lending and insurance marketplace embedded in Bahrain's dominant payments app, building a risk-intelligence engine that compressed loan-approval times by 80%. He explored machine learning and NLP through research at the University of Cambridge, and holds a B.Tech from Delhi Technological University.

Sai Krishna
Reviewer
Sai Krishna is Director of Engineering at TestMu AI, where he leads agentic AI for quality engineering, building AI agents that autonomously drive mobile and conversational test automation. His current focus is Agent Testing and Model Context Protocol (MCP) support for mobile. He is a core contributor and member of the Appium open-source project and the creator of AppiumTestDistribution and appium-device-farm. With over 14 years of experience including more than 9 years at Thoughtworks as a Principal Consultant, he holds a BSc in Electronics and speaks regularly at TestMu and Appium Conf on Appium, mobile automation, and agentic AI in testing.
IVR FAQs
TestMu AI forEnterprise
Get access to solutions built on Enterprise
grade security, privacy, & compliance
- Advanced access controls
- Advanced data retention rules
- Advanced Local Testing
- Premium Support options
- Early access to beta features
- Private Slack Channel
- Unlimited Manual Accessibility DevTools Tests

