# Test your agent with simulated customers

> Save the conversations that matter most and check them automatically after every change.

Source: https://help.askmavis.co/help/test-your-agent  
Collection: Your AI agent  
Last updated: 2026-12-05

Tests play out customer conversations with your agent for you. A simulated customer chats with the agent, then an AI judge checks the outcome against your success criteria. Run them after every change to catch problems before customers do.

![The Tests tab of an AI agent, with the Add test button and how many free test credits are left this month.](https://askmavis.co/help-media/test-your-agent/overview.webp)

## Add a test

1. Open your agent and go to **Tests**.
2. Click **Add test** and fill in:
   - **Name:** for example "Refund for an opened bag".
   - **Scenario:** who the customer is and what they want. The simulated customer plays this part. Optional.
   - **First message:** what the customer says first, for example "Can I return coffee I've opened?"
   - **Success criteria:** what a good outcome looks like. The judge checks the meaning, not exact words.
   - **Max turns:** agent replies before the chat stops, from 1 to 20. The default is 4.
   - **Conversations per run:** play the test several times to see how steady the agent is, from 1 to 20.
   - **Expected Actions:** what the agent should do, for example **Offers to connect a person**, **Suggests a help article**, shows a reply button, runs an action, or starts or finishes a procedure.
   - **Strict:** also fail when the agent takes an action you didn't pick.
3. Click **Save test**.

## Run tests

Click **Run** on one test or **Run all tests**. Runs play in the background. Each conversation ends with **passed**, **failed** or **no verdict**, and the **Pass rate** counts passed out of conversations with a verdict.

Open **Run history** to see earlier runs, and **Export CSV** to share results. If you change the agent after a run, you'll see a note to run the tests again.

## Credits

Each plan includes free test credits every month: 50 on Free, 200 on Starter, 1,000 on Growth and 3,000 on Business. One credit is one agent reply. When they run out, test replies use message credits.

Before a run starts, you see the most credits it can use.

## Limits

Up to 100 tests per agent and 200 conversations per run.

## Tips

- Write tests for your most common questions and your riskiest ones, like refunds or complaints.
- Make the success criteria specific: "Explains that only unopened bags can be returned within 30 days and offers a swap."
- Run all tests before you publish a big change.

## Related

- [Try your agent in the Playground](https://help.askmavis.co/help/try-your-agent-in-the-playground)
- [Drafts, publishing and versions](https://help.askmavis.co/help/drafts-publishing-and-versions)
