Phone Agent Testing With TestMu AI
The TestMu AI Agent Testing Platform tests phone agents over real telephone calls, not simulations. A simulated caller follows a scenario, the platform records the full conversation, and every call is scored on 42 call quality metrics. You can test agents that answer calls (inbound) and agents that place them (outbound), with live test calls or with recordings of your production calls.
What Are Phone Agents
A phone agent is an AI voice agent that talks to people over the telephone network, such as a support line, an IVR menu, a sales dialer, or an appointment reminder. Testing one differs from testing a voice agent or a chat agent in three ways.
- Telephony infrastructure. Chat and voice agents are reached through an endpoint profile. A phone agent is reached over a real phone line, so results include what the phone network adds, such as the time a call takes to connect and the audio quality of the call.
- Real-time speech. The simulated caller speaks and listens in real time, with the voice, accent, and background noise you choose. Pauses, interruptions, and silences are measured the way a caller experiences them.
- IVR handling. Keypad tones (DTMF) are detected and shown in the transcript, so you can test menu navigation.
If your phone line is a scripted IVR menu that only accepts set keypad or spoken options, test it as an IVR agent instead.
Inbound vs. Outbound
| Inbound | Outbound | |
|---|---|---|
| Who starts the call | The platform calls your agent's phone number, and your agent answers. | Your agent calls a number the platform provides, and the platform answers. |
| Main use cases | IVR menus, inbound support, appointment scheduling, and billing. | Sales dialers, lead qualification, collections, and appointment reminders. |
| Key testing concern | Understanding what the caller needs and resolving it on the first call. | Opening the call well and keeping the recipient engaged, since your agent speaks first. |
- Inbound phone agents if your agent answers calls.
- Outbound phone agents if your agent places calls.
Phone Agent Testing Features
These features apply to phone caller agents, and the walkthroughs below don't cover them step by step.
- Pre Analysis and Post Analysis. Phone testing runs in two modes, which you switch with the analysis dropdown. Pre Analysis places live test calls, and Post Analysis scores recordings of your production calls. See Analyze Production Calls.
- Caller voices. Choose from 200+ voices across providers, with different accents and speech speeds, and preview a voice before you pick it.
- Background noise. Add one of 15 presets, such as café, street, call center, or poor cellular connection, to test your agent in realistic conditions.
- Call timing. Turn Wait Time (0.5 to 5 seconds) is how long the caller waits after your agent stops speaking before it replies. Raise it if your agent pauses between sentences, so the caller doesn't cut in. End call if silent for (30 to 180 seconds) ends a call that goes quiet, and a maximum call duration (60 to 1800 seconds) stops runaway calls. You can also choose whether the caller or your agent speaks first. A call also ends when your agent says one of the end-call phrases set for the project.
- Scenario types. When you generate scenarios, choose Happy Path for normal flows, Negative for errors and invalid inputs, Edge Case for boundary values and unusual conditions, or Red Team for security attacks and adversarial inputs. Scenario languages include Japanese and Portuguese.
- Red teaming. Red team scenarios send a caller who plays a fraudster and attacks the rules in your agent's own prompt, across six OWASP LLM risks. Each call is rated Held, Partial, Breached, or Inconclusive, and red team results are kept out of your pass rate and the Go-Live assessment. See Red Teaming for Phone Caller Agents.
- Pronunciation assessment. Set an accent on the agent and switch the check on per scenario to see mispronounced words on the finished call.
- Personas. A persona sets the type of caller the simulated caller plays. Choose an available persona or create your own.
- Validation criteria. Each scenario lists the outcomes a call must reach, such as "agent confirms the new appointment date". Every call is checked against them on the Validation Results tab. Each criterion is marked Pass or Fail: a criterion that cannot be confirmed as met is marked Fail and counts toward the compliance score.
- Test profiles. A test profile holds the data a call runs with, such as a customer ID or a caller name, so you can run data-driven calls. Validation cards show the value each call used, captured when the call is dialed, so editing a profile later doesn't change earlier results.
- Test data sets. For inbound agents, upload a spreadsheet (CSV or Excel) in which each row is one caller, with details such as an account number, a PIN, or menu choices, and assign it to a scenario in a suite. The suite places one call for each row. On the Test Profile tab, test data sets have their own section below the test profiles.
- Agent profiles. For inbound tests, an agent profile is a reusable caller persona with a name, phone number, voice, and background noise, kept in a library for your whole organization. Each profile can be switched between active and inactive.
- Live call monitoring. Follow each call's status and duration while it runs, and end a call in progress.
- Recordings and transcripts. Every call produces a recording and a speaker-identified transcript. Keypad tones (DTMF) appear in the transcript, so you can test IVR menu navigation. Click anywhere on the waveform to jump to that moment, drag to scrub, or use keyboard shortcuts to move through the recording.
- Voice platform integrations. If your agent runs on Amazon Connect, Cartesia, ElevenLabs, Retell, Vapi, or Salesforce Agentforce, connect it on the Integrations tab to import its prompt and tools, and see whether your agent called each expected tool on every test call. See the setup for Amazon Connect, Cartesia, ElevenLabs, Retell, Vapi, or Agentforce.
- Insights. For inbound agents, the Insights page groups calls into runs, past calls included, so older projects appear too. The project overview lists each suite's pass rate against its target and its last 10 runs, and each suite has Run and Compare pickers, a pass-rate-per-run chart, a run drawer listing every call, six KPI tiles, and scenario cards grouped as Broke, Still failing, Fixed, and Healthy.
- Business reports. Select Export report on the suite results page or on a share page to export a PDF or HTML report. Choose the latest result for each scenario or a date range, or, on the suite results page, pick results from the list (one per scenario). Then choose the scenarios and whether to include transcripts in full, as excerpts around failures, or not at all. The report shows a readiness verdict, KPI tiles that each say why they are On track, At risk, or Off track, top issues, changes since the last run, a scorecard, and scenario details. Personal data is masked by default and always masked in reports from share links, recordings are never included, and reports use no credits.
Inbound Phone Agents
An inbound phone agent answers calls. To test one, the platform places a real call to your agent's phone number, and a simulated caller follows each scenario. Typical use cases are IVR menus, inbound support, appointment scheduling, and billing.
You can register phone numbers from 20+ countries. Registered numbers are masked on screen, and you can edit or delete them on the Phone Numbers tab. Inbound agents can also be reached over a SIP trunk instead of a phone number.
Test an Inbound Phone Agent (Pre Analysis)
Follow these seven steps in the dashboard to run live test calls against your inbound agent.
Step 1: Create the agent. On the Agent Testing page, click Create New Agent. Enter an Agent Name, set Agent Type to Phone Caller Agent, and set Phone Call Type to Inbound (Bot receives calls). Then click Create New Agent. Phone Caller Agent stays grayed out, with the reason shown, until phone caller agents are enabled for your organization.
Step 2: Define the agent prompt. On the Prompt tab, describe your agent's role and ideal behavior in Agent-Under-Evaluation Prompt, then click Save Prompt. The prompt defines the behavior your agent is tested against, so include the policies, facts, and steps your agent must follow.
- Optionally, under Upload Files, add supporting documents (PDF, MS Word, MS Excel, TXT, MD), audio (MP3, WAV, M4A), or images (PNG, JPG, WEBP), up to 5 MB each.
- Optionally, under Import from Jira, enter a Jira issue key or URL and click Import. You can import up to five tickets, each shown as its own tab. Click Connect Jira first if Jira isn't connected.
Step 3: Generate scenarios. On the Scenarios tab, click Generate Scenarios. Set the number of scenarios, up to 20. Select the scenario types to generate, or leave them all unchecked for normal scenarios, and select the languages. Then click Generate Scenarios.
Step 4: Add your agent's phone number. On the Phone Numbers tab, register the number your agent answers on, with its country code. If you test one number most of the time, set it as the default. The platform dials this number in every test call.
Step 5: Create a suite. On the Suites tab, click Create New Suite.
- Enter a Suite Name.
- Optionally, select an Agent Profile. A profile set on a scenario overrides it.
- Choose the Region the test calls come from. The default is US.
- Select the scenarios to run. For each one, choose the phone number to call, one or more voices, a background noise, a persona, and a test profile, and set the Iterations.
- Adjust Turn Wait Time and End call if silent for if needed.
- Check the number of calls and the available parallel calls in the footer, then click Create New Suite.
Step 6: Run the suite. Click Run next to your suite. Every call in the suite is a real phone call to your agent, so the Confirm Run dialog lists each call before anything is dialed. Check the number of calls and each call's voice and background noise, then click the trigger button, such as Trigger 2 calls.
Step 7: Review the call results. Open a call from the list to see whether it passed and why.
- Start with failed calls. A completed call opens on the Analytics tab, which shows the call summary followed by the metric and quality check tiles. Tiles with no value, such as Average Pitch or Words per Minute, are hidden instead of showing 0. Click a tile to see the reason and evidence behind its result. Times in the reason, such as "At 01:38", jump to that moment in the recording.
- On the Recording tab, play the call or read the transcript around that moment to hear how your agent handled it.
- On the Validation Results tab, check which of the scenario's validation criteria the call met or missed.
- If a call failed but its metrics look fine, check the MOS badge. A call's pass or fail can be based on the metrics, on the mean opinion score of the call audio, or on both.
Performance Testing for Inbound Phone Agents
Performance testing holds a target number of concurrent calls to your inbound agent for a set period, using the scenarios in a suite. It shows whether the load was sustained, whether calls connected and ended normally, and how response latency changed as load rose, so you can find the concurrency level at which your agent starts to degrade. It does not score conversation content, so run the suite as a standard test to check what your agent says. Performance testing applies only to agents that answer calls.
To configure a test and read its results, see Inbound Phone Agent Performance Testing.
Outbound Phone Agents
An outbound phone agent places calls. To test one, the platform reserves a recipient number from an outbound number pool, your agent calls it, and the platform answers and scores the conversation. Typical use cases are sales dialers, lead qualification, collections, and appointment reminders.
- Outbound number pool. You can see the pool's status and available numbers, and manage the reservations each suite holds.
- Passive mode. Listen to a live outbound call and score it without taking part in the conversation, for QA monitoring.
- No performance testing. Performance testing places calls to your agent, so it applies only to inbound agents.
Test an Outbound Phone Agent (Pre Analysis)
Follow these six steps in the dashboard to run live test calls with your outbound agent.
Step 1: Create the agent. On the Agent Testing page, click Create New Agent. Enter an Agent Name, set Agent Type to Phone Caller Agent, and set Phone Call Type to Outbound (Bot makes calls). Then click Create New Agent. Phone Caller Agent stays grayed out, with the reason shown, until phone caller agents are enabled for your organization.
Step 2: Define the agent prompt. On the Prompt tab, describe your agent's role and ideal behavior in Agent-Under-Evaluation Prompt, then click Save Prompt. The prompt defines the behavior your agent is tested against, so include the policies, facts, and steps your agent must follow.
- Optionally, under Upload Files, add supporting documents (PDF, MS Word, MS Excel, TXT, MD), audio (MP3, WAV, M4A), or images (PNG, JPG, WEBP), up to 5 MB each.
- Optionally, under Import from Jira, enter a Jira issue key or URL and click Import. You can import up to five tickets, each shown as its own tab. Click Connect Jira first if Jira isn't connected.
Step 3: Generate scenarios. On the Scenarios tab, click Generate Scenarios. Set the number of scenarios, up to 7 at a time. Select the scenario types to generate, or leave them all unchecked for normal scenarios, and select the languages. Then click Generate Scenarios.
Step 4: Create a suite. On the Suites tab, click Create New Suite.
- Enter a Suite Name.
- Optionally, choose a Profile.
- Select the scenarios to run, and choose a voice and a background noise for each one.
- Adjust Turn Wait Time and End call if silent for if needed.
- Click Create New Suite.
Step 5: Run the suite. On the Suites tab, click Run next to your suite. The platform reserves recipient numbers from the outbound number pool, your agent calls them, and the platform answers as the simulated recipient. Because the platform answers, your agent speaks first.
The suite holds its reserved numbers until you release them, so click Clear Reservations in the suite dialog when the run is done.
Step 6: Review the call results. Open a call from the list to see whether it passed and why.
- Start with failed calls. The Call Summary at the top of the Analytics tab explains the verdict. Click a metric tile to see the reason behind its result. Times in the reason, such as "At 01:38", jump to that moment on the Recording tab.
- On the Validation Results tab, check which of the scenario's validation criteria the call met or missed.
- Read User sentiment together with the scenario. The simulated recipient plays a scripted character, so a recipient written to be skeptical may stay negative even when your agent does well.
- Because your agent speaks first, Opening length always applies, and Time to First Word is timed from the moment the call connects.
Analyze Production Calls (Post Analysis)
Post Analysis scores recordings of real production calls with the same metrics as live test calls, without placing new calls. Use it to check how your agent performs with real customers. It works for inbound and outbound agents.
Follow these four steps on the agent whose calls you want to analyze.
Step 1: Switch to Post Analysis. Open the agent and select Post Analysis from the analysis dropdown at the top right. The agent then shows two tabs: Voice Analysis, which lists your uploaded recordings, and Metric Config.
Step 2: Choose the metrics. On the Metric Config tab, select the metric categories or individual metrics to run. Do this before you upload, because a custom metric grades only recordings analyzed after you create it.
Step 3: Upload recordings. On the Voice Analysis tab, click Upload Recordings and add production calls as MP3 or WAV files. Upload several at once to analyze them in parallel.
- Add each call's transcript if you have it, to compare it with the speech-to-text output.
- Pick an accent at upload to check your agent's pronunciation. The findings appear on the recording's details page.
Step 4: Review a recording. Open a recording from the list. Play the call, follow the speaker-identified transcript with any keypad inputs (0 to 9, star, pound), and download the audio and transcript if you need them elsewhere. To find calls again later, bookmark and tag them, then search or filter the list by name, status, date, or tag.
Phone Agent Metrics
Every call, whether a live test call or a production recording, is scored on 42 metrics grouped under six questions: is it fast, does it sound good, does it hold a good conversation, does it get the facts right, does it get the job done, and is it safe. Only your agent is judged. The simulated caller may be rude or confused on purpose, and that never counts against your agent.
Every call is graded on these quality checks: Turn count, Turn brevity, AI identification, Response loop, Response consistency, No invented details, Faithfulness, Task completed, Expected result reached, Behavior adherence, Automated resolution, First call resolution, Accuracy, Efficiency, Empathy, Max latency, Dead air, Agent silence rate, Interruption yield, Opening length, Toxicity, Fairness, No over-refusal, and PII protection. Each call also gets an overall verdict of Pass, Fail, or Review incomplete. Review incomplete means the call could not be fully evaluated.
Max latency, Dead air, and Agent silence rate pass or fail against the bar set for them, and a check with no bar set uses its default bar. Turn count and Turn brevity are shown for information only until you set a bar for them. New inbound caller configurations start with every quality check on, at its default bar, and Insights follow the same rules.
To grade your own business rules, such as asking for a PIN before changing an address, add custom metrics: plain-language checks graded on every call of the scenarios you attach them to. Each custom metric is a pass or fail check or a 0 to 100 score, can be suggested from your agent's prompt, and can use test profile data. Its results name the test profile the call ran with and show evidence with timestamps that jump to the recording. In Metric Config, choose which metrics run, change their targets and ratings, and decide which ones count toward a call's pass or fail.
For what each metric measures, its default targets, and how to set up custom metrics, see Phone Caller Agent Metrics.
Go-Live Assessment and Scheduled Runs
Go-live assessment. Get a Green, Yellow, or Red verdict on whether your agent is ready for production, with the failure patterns behind it and prioritized action items. Go-Live, Insights, and the suite results page apply the same rules, so a call shows the same result on each. On Go-Live, hover over a Not tested check to see the reason. Calls from performance tests don't count toward Go-Live or project results. See Go-Live Assessment.
Scheduled runs. Open the dropdown next to a suite's Run button and select Schedule Run to run it every hour, daily, on weekdays, weekly, monthly, or on your own cron expression, in your local time zone. To change a schedule without deleting it, select Schedule Run on that suite again: the dialog opens on the current cadence, and saving updates the schedule in place. The Edit icon under Scheduled does the same. See Scheduled Runs.
Post-Call Web Tests
A phone scenario can run Test Manager web tests after a call is graded, so you can compare what the call said with what your website shows.
- Set up. In the scenario editor, pick a Test Manager project, the test cases the scenario can choose from, and a start delay. The scenario panel lists the parameters each selected test reads, and warns when a test reads none.
- Run. After the call is graded, the test cases that match the call run on HyperExecute, using values taken from the call transcript.
- Review. The Web Test tab shows each result with the values used and links to Test Manager and HyperExecute. For each test case, it shows what the call said, what the website showed, and each check with a ✓ or ✗. A test is reported as matching the call only when the run confirms that it used the call's values.
- Verdict. Web test results do not change the call verdict.
Live Call Events API
API users can follow a test call while it runs through its call events stream, GET /api/calls/{call_id}/events/stream.
- Handoff events. For scenarios with Transfer to human agent turned on, the stream reports the moment your agent announces a transfer, the moment a person picks up, and the moment the call ends. Your script can then accept the transfer in your contact center console instead of waiting a fixed time.
- Live transcript. Each line the caller or your agent speaks arrives as a transcript event while the call runs. This works for every call except mock calls and performance runs.
- End reasons. The end reason on the stream uses the platform's own values, such as
agent_ended_callandsilence_timeout.
Related TestMu AI Guides
- See how to load test an inbound phone agent with concurrent calls.
- See how to run phone agent tests from the terminal with the CLI.
- See how to test a scripted IVR menu, including Twilio IVRs.
- See how to connect Amazon Connect, Cartesia, ElevenLabs, Retell, Vapi, or Salesforce Agentforce agents for tool call validation.
- See how the platform runs an evaluation end to end.