# Simulations (/docs/agent/test-and-publish/simulations)

> Run scripted test calls against your agent, with AI callers that play out each scenario, then read the scores and suggested prompt fixes.

![Create New Simulation: the Simulation Guide on the left, and Basic Information with Simulation Name, Select Assistant and Call Configuration on the right](/docs-images/guides/simulations/create-simulation.png)

A simulation calls your agent many times with an AI caller that follows a
script you write, such as "an angry customer who wants a refund". It's a
dress rehearsal: you see how the agent handles each scenario before real
callers do. Open **Simulations** in the dashboard sidebar. If you don't see
it, your role or plan doesn't include simulations.

## Create a simulation [#create-a-simulation]

### Name it and pick the agent [#name-it-and-pick-the-agent]

Select **New Simulation**. Enter a **Simulation Name** and choose the agent in
**Select Assistant**.

### Set the call limits [#set-the-call-limits]

| Setting | Range | What it does |
| --- | --- | --- |
| Number of call(s) per Scenario | 1 to 3 | More calls give a more reliable result. |
| Max Call Duration (minutes) | 1 to 10 | Each call hangs up after this time. Default 3. |
| Concurrent Calls | 1 to 3 | How many calls run at the same time. Default 3. |

### Add scenarios [#add-scenarios]

Enter a number and select **Generate Scenarios** to have AI write up to 5
scenarios from your agent's setup. Or select **Add Scenario** to write one yourself.
Each scenario needs a **Scenario Name**, a **Description** of the caller, and
an **Expected Result** that says what success looks like.

For each scenario you can also pick the caller's voices, the **Speech Speed**
(Low, Normal or High) and the **Background Noise** level.

### Review and start [#review-and-start]

Select **Continue to Review**, check the summary, then select **Start
Simulation**.

If another simulation is already running, yours shows **Pending** and starts
when that one finishes. You can stop a pending or running simulation. Calls
still in progress hang up.

## Read the results [#read-the-results]

Open a finished simulation from the list. It has four tabs:

| Tab | What it shows |
| --- | --- |
| **Summary** | An overview, what went wrong, and how many calls were positive, neutral or negative. |
| **Scenarios** | Each scenario with its description and expected result. |
| **Recordings** | Each call's audio, its **CQS Score** for call quality, and the issues found. **Logs** opens the full transcript. |
| **Suggestions** | Changes to your prompt that would fix the issues found. |

## Apply the suggested fixes [#apply-the-suggested-fixes]

On the **Suggestions** tab, select **Auto Apply Suggestions (Beta)**. A dialog
shows your current prompt next to the improved one. Edit the new text if you
want, then select **Apply Improvements** and confirm.

Applying replaces your agent's prompt sections. Save a version first, so you
can go back. See [Agent versioning and publishing](/docs/agent/test-and-publish/agent-versioning-and-publishing).

## Simulation limits [#simulation-limits]

Each simulation call counts against your plan's simulation call limit. The
count is calls per scenario times the number of scenarios. The dashboard warns
you when 5 or fewer calls are left, and asks you to upgrade at 0.

## Next steps [#next-steps]

- Test one call by hand with [Test your agent](/docs/agent/test-and-publish/test-your-agent).
- Fix what the simulation found in [Configure your agent](/docs/agent/prompt-and-flow/configure-your-agent).