> ## Documentation Index
> Fetch the complete documentation index at: https://docs.retellai.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Manual testing

> Test a Retell AI agent by hand in the test panel: talk to it in a browser audio test or chat in a text test, then regenerate, edit, or debug replies.

The test panel lets you talk to your agent or chat with it by hand, right in the agent editor. An **audio test** is a web call in your browser, so you hear the real voice, latency, and interruptions. A **text test** is a chat where you can edit, regenerate, or debug any reply. Neither needs a phone number, and you can test a draft without publishing it.

For example, after adding a "reschedule appointment" path, start a text test, ask to reschedule, and check that the agent calls `check_availability` with the right date. Then run an audio test to hear how it reads the times back.

Manual tests aren't graded. To check a scenario pass or fail and rerun it after every change, save it as a [simulation test](https://docs.retellai.com/test/simulation-testing.md).

## Open the test panel

In the agent editor, click `Test` in the top bar. The panel opens on `Manual Test`, next to `Simulation Test`, which runs saved test cases (see [Run tests from the test panel](https://docs.retellai.com/test/run-tests.md#run-a-test-from-the-test-panel)). Choose a mode at the top of the panel:

* `Audio` runs a web call. It isn't available for chat agents.
* `Text` runs a chat. It isn't available for [custom LLM](https://docs.retellai.com/integrate-llm/overview.md) agents or agents on a speech-to-speech model.

The `Test` button shows on the `Agent` tab of the editor, and only if your role can test agents. On a Conversation Flow agent, it also shows on subflow tabs that the main flow can reach. To test one subflow on its own, see [Test a subflow](#test-a-subflow).

![Agent editor for a Conversation Flow agent with the test panel open on the right. The panel has Manual Test and Simulation Test tabs, the Audio and Text mode switch (ringed in blue, with Text selected), and a Variables & mocks button. The panel shows the text start screen: Start a text test, a Run test button, and Starting node set to Greeting. The global settings panel and the flow canvas are visible to the left.](https://mintcdn.com/retellai/8ZCrhFAw4xq7qprW/images/test/test-panel-overview.png?fit=max\&auto=format\&n=8ZCrhFAw4xq7qprW\&q=85\&s=2c16604d33bac6885373d3e90506f0f0)

The test panel opens on Manual Test. Switch between Audio and Text at the top.

## Run an audio test

**1. Choose Audio**

Select `Audio`. The start screen reads "Start a voice call."

**2. Pick a starting node (optional)**

On a Conversation Flow agent, open `Starting node` and pick where the call begins, so you can hear one branch without talking your way to it. Flows in flex mode always start from the start node. Multi-prompt agents start in the agent's starting state.

**3. Start the call**

Click `Run test`, allow microphone access, and talk to your agent. Click `End the call` to hang up.

**4. Run it again**

After the call ends, click `Run again` to repeat it, or `New test` to go back to the start screen.

While the call runs, the panel shows a live transcript with each tool call, tool result, node transition, and keypad press. On a Conversation Flow agent, the canvas highlights the current node as the conversation moves, and the panel shows the current node above the transcript. If the agent [transfers to another agent](https://docs.retellai.com/build/single-multi-prompt/transfer-agent.md), the canvas follows the new agent.

![Animation of an audio test on a Conversation Flow agent. The panel starts on Start a voice call with Run test and Starting node Greeting. The agent greets the caller for Bayview Family Medicine, and the caller asks to book an annual checkup. The transcript marks a move to Verify Patient Identity, and the canvas highlights that node. The caller gives her name and date of birth, and the canvas and transcript move to Schedule Appointment. The caller asks for next Tuesday morning with Dr. Patel, and the agent summarizes the request. After the caller confirms, the transcript shows a move to Extract Call Data and a Tool called line for Extract Call Data. End the call is clicked, the transcript ends with Call ended, and Run again and New test appear.](https://mintcdn.com/retellai/8ZCrhFAw4xq7qprW/images/test/test-panel-audio-test.gif?s=01986cc4f77877d601bfc1f8e9f7354b)

During an audio test, the canvas highlights the current node and the transcript fills in live.

### What an audio test can't do

A browser call has no phone line, so some telephony features fail:

* **Transfers to a phone number fail**, whether cold, warm, or agentic. The panel shows "Call transfers are not supported during an Audio test." when your agent has a transfer. Transfers to another agent work.
* **Sending an SMS fails**, since there's no phone number on the call.

Use a [phone call test](https://docs.retellai.com/test/test-phone.md) for those. You can still test [voicemail and IVR detection](https://docs.retellai.com/build/handle-voicemail.md) by playing a recorded greeting or menu into your microphone.

An audio test is a real call for billing and limits: it bills per minute, uses one of your [concurrent call](https://docs.retellai.com/deploy/concurrency.md) slots, and won't start if your account has a payment problem.

## Run a text test

**1. Choose Text**

Select `Text`. The start screen reads "Start a text test."

**2. Pick a starting node (optional)**

On a Conversation Flow agent, open `Starting node` and pick where the chat begins.

**3. Chat as the caller**

Click `Run test`, then type what the caller would say. Press Enter to send, or Shift+Enter for a new line.

Each agent reply shows the tool calls, tool results, and node or state transitions behind it, and **Message details** lists any [knowledge base](https://docs.retellai.com/build/knowledge-base.md) chunks it retrieved. On a multi-prompt or Conversation Flow agent, the `Current state` or `Current node` selector above the transcript sets where the next turn runs, so you can jump the conversation to another branch mid-chat.

Below the transcript, `Rerun` replays all of your messages from the start against the agent's current configuration, which is the quickest way to check a prompt edit against the same conversation. `New test` clears the chat.

![Animation of a text test in the test panel. It starts on the Start a text test screen with Run test and Starting node Greeting. The agent greets the caller for Bayview Family Medicine. The caller asks to book an annual checkup, and an expanded node transition shows previous node Greeting and new node Verify Patient Identity before the agent asks for name and date of birth. The caller gives them, Current node changes to Schedule Appointment, and the agent asks for a preferred date and doctor. The Current node selector is opened, listing every node, and General Questions is chosen. The caller asks which insurance plans the clinic accepts, and the agent answers Aetna, Blue Shield, and Medicare.](https://mintcdn.com/retellai/8ZCrhFAw4xq7qprW/images/test/test-panel-text-test.gif?s=1672a78c40d08393631375a28b53afef)

A text test moves through the flow as you chat. Change Current node to jump to another branch.

### Fix a wrong reply

Hover any message to act on it:

* **Edit** (on your messages) rewrites what the caller said. Sending the edit drops everything after it and gets a new reply.
* **Regenerate** (on agent replies) offers `1 response`, which replaces the reply and drops everything after it, or `10 responses`, which shows 10 variations side by side with a count of how often each came up. Use 10 to see how consistent a turn is before and after a fix. It doesn't change the transcript.
* **Debug** (on agent replies) asks "What went wrong?" Describe the problem and click `Confirm`, and a new [Conductor](https://docs.retellai.com/conductor/overview.md) chat opens with the conversation, the reply, and your note already filled in. Send it to get a suggested fix.
* **Delete message** removes one row, including tool calls and transitions, without touching the rest.

For fixes that work well on a Conversation Flow agent, such as fine-tuning examples, splitting a node, or adjusting temperature, see the [Conversation Flow debug guide](https://docs.retellai.com/build/conversation-flow/debug-guide.md).

![Animation of fixing a reply in a text test. The caller asks whether the clinic takes Kaiser insurance, and the agent says Kaiser isn't on the accepted list. Regenerate is opened and 10 responses is chosen. The Response variations popover lists each distinct reply with how often it came up, such as 5/10 times and 1/10 times. Then Debug is opened, the note Kaiser is in-network, the agent should say we accept it, not take a message is typed under What went wrong, and Confirm is clicked. Conductor opens beside the editor with the note already filled in its message box.](https://mintcdn.com/retellai/8ZCrhFAw4xq7qprW/images/test/test-panel-fix-reply.gif?s=596c54f2d0c307bc2c4133ea94c89f6b)

Regenerate 10 responses to see how consistent a reply is, or use Debug to hand the problem to Conductor.

## Set variables and mocks

Click `Variables & mocks` at the top of the panel to set test inputs, then click `Save`. The same values apply to audio and text tests.

**Dynamic Variables** lists every [dynamic variable](https://docs.retellai.com/build/dynamic-variables.md) your agent references, so placeholders like `{{customer_name}}` resolve the way they would on a real call. Fill in a value for each one you need, or add one with `Add`. To reuse the values saved on an [environment tag](https://docs.retellai.com/agent/version.md#environment-tags), pick it from `Load Saved Values`, then adjust them for this test. Your edits here don't change the tag.

**Custom Function Mocks** lists your agent's functions. Each one runs `Live` by default, calling the real endpoint. Switch it to `Mock` and enter a `Mock output`, and the agent gets that result instead. Transfer and SMS mocks also take a `Result` of `Succeeds` or `Fails`. To mock a function by name, use `Add tool` and choose `Custom function name`. Custom functions, [code tools](https://docs.retellai.com/build/single-multi-prompt/code-tool.md), [integration tools](https://docs.retellai.com/integrations/overview.md#use-integration-tools-in-an-agent), the Cal.com tools, transfers, and SMS can be mocked. MCP tools can't.

> [!WARNING]
>
> A function set to Live calls its real endpoint during a test, so a test can create a real booking, charge, or record. Mock every function that reaches production before you test.

These values are saved in your browser for this agent, not on the agent, so they don't follow it to a teammate or another computer. Mocks you save while a subflow tab is open apply only to that subflow's tests. When you create a test case from the panel's `Simulation Test` tab, it starts with these values.

![Variables & mocks popover open on the Custom Function Mocks tab, with the rest of the editor dimmed. Transfer to Nurse Line is set to Mock with Result on Succeeds and the mock output Successfully transferred the call. Check Availability (check\_availability) is set to Mock with a JSON mock output listing two open slots. Book Appointment (book\_appointment) is left on Live. Add tool, Cancel, and Save buttons are below.](https://mintcdn.com/retellai/8ZCrhFAw4xq7qprW/images/test/test-panel-variables-mocks.png?fit=max\&auto=format\&n=8ZCrhFAw4xq7qprW\&q=85\&s=dc8bed29c3a0ba3e9b9186cb47204643)

Mock a function's output, or a transfer's result, for every manual test.

## Continue a real conversation

Load the transcript of a real call, chat, or simulation run into a text test to reproduce a problem and try fixes from that exact point. Click `View in Test Playground` in any of these:

* a call's or chat's details panel in [session history](https://docs.retellai.com/features/session-history.md)
* a call's details panel in [AI QA](https://docs.retellai.com/ai-qa/overview.md)
* a run's details in the [simulation run drawer](https://docs.retellai.com/test/run-tests.md#inspect-a-run)

The agent opens in a new tab at the version that handled the conversation, in Text mode, with the transcript loaded and the conversation's dynamic variables filled in. A simulation run also brings its function mocks. Continue typing, or edit, regenerate, or delete any turn. If the original conversation ended, you can't send new messages, but editing, regenerating, and `Rerun` still work.

The button isn't shown for transcription test runs, or for agents that can't use Text mode (custom LLM and speech-to-speech agents).

![Animation of continuing a conversation. In a simulation run's details, the pointer is on View in Test Playground. The agent opens in a new tab with the test panel in Text mode and the run's transcript loaded. A caller message is edited to say Friday doesn't work after all, do you have anything Monday morning, with Cancel and Send buttons. After sending, the later turns are replaced and the agent replies that it can note a sick visit request for Monday morning and asks for a doctor preference.](https://mintcdn.com/retellai/8ZCrhFAw4xq7qprW/images/test/view-in-test-playground.gif?s=82a2ee14cca83250b2cedb9dd68743b1)

View in Test Playground loads a conversation into a text test, where you can edit a caller turn and get a new reply.

## Test a subflow

On a Conversation Flow agent, open a [subflow](https://docs.retellai.com/build/conversation-flow/components.md) tab and select `Test Subflow` in the right sidebar to chat with that subflow on its own. It's text only, has its own `Starting node` picker over the subflow's nodes, and the chat ends when it reaches one of the subflow's end nodes.

## FAQ

> [accordion] Why is the Text or Audio mode missing?
>
> Text mode is hidden for custom LLM agents and agents on a speech-to-speech model, since there's no text turn to run. Audio mode is hidden for chat agents. If the whole panel is dimmed, your role doesn't have permission to test agents.

> [accordion] Can I save a manual chat to come back to?
>
> No. To keep a scenario, save it as a [simulation test case](https://docs.retellai.com/test/text-and-audio-tests.md), which you can rerun and grade.

> [accordion] Do my test variables and mocks follow the agent to teammates?
>
> No. They're saved in your browser for that agent. Environment tags are the exception: their values are saved on the agent, so anyone can load them with Load Saved Values.

> [accordion] How do I test a transfer to a phone number?
>
> Use a [phone call test](https://docs.retellai.com/test/test-phone.md). Audio tests run in the browser with no phone line, so transfers to a phone number and SMS fail. Transfers to another agent work in both audio and text tests.

> [accordion] What do manual tests cost?
>
> The same as production: audio tests bill per minute like a call, and text tests bill per message. See [testing pricing](https://docs.retellai.com/test/testing-pricing.md).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.