# Run a regression or an evaluation

> Ask the builder to replay your scripted cases or to test a behavior with simulated callers, or start a run from the Apollo CLI.

- Source: https://www.aui.io/help/evaluations/run-a-regression-or-evaluation
- Section: Regressions and evaluations
- Last updated: November 23, 2026

You start a run by asking the Agent Builder, in plain words, in the session where you are working, and the result appears as a run card in the builder conversation. Developers can also start runs [from the CLI](#from-the-cli). The run uses the program as it stands in that session when the run starts, [unsaved changes](https://www.aui.io/help/building/unsaved-changes-and-push) included, so you can check a change before you push it. Editing while the run is going doesn't affect it.

## Run a regression

1. In the builder, switch to **Build** mode.
2. Ask for the run:

   > Run the regression suite and tell me which cases went red and why.

   To run part of the suite, name the cases: "Run the regression for the cancellation cases only."
3. Follow the run card in the builder's conversation. It counts the conversations as they finish, then shows "Every conversation is in. Writing the summary…".
4. When the run settles, the card shows how many cases passed. See [Read a run](https://www.aui.io/help/evaluations/read-a-run).

If the agent has no scripted cases yet, ask the builder to write some first:

> Write scripted cases for canceling a flight through chat: a refundable trip, a non-refundable one, and a caller who refuses the $15 fee.

## Run an evaluation

1. In the builder, switch to **Build** mode.
2. Describe what to test and the callers to try:

   > Generate 10 conversations that target the $15 chat cancellation fee in different variations: callers who accept it, callers who refuse it, and callers who ask how to avoid it.
3. If the builder asks what to focus on, answer on its question card. See [Answer the builder's questions](https://www.aui.io/help/building/answer-the-builders-questions).
4. Follow the run card. It shows "Planning up to 10 cases…" while the planner writes the cases, then the conversations as they finish, then the summary.

If you don't give a number, an evaluation holds a handful of conversations.

![The Agent Builder pane in dark mode after a request to generate six conversations targeting the cancellation convenience fee. The builder's reply is a table with one row per conversation: the test caller and ticket type, what the conversation tested, and what happened, followed by a verdict that begins Overall: mixed.](https://www.aui.io/assets/help/evaluations/run-a-regression-or-evaluation/generated-conversations.png)

*Ask for targeted conversations and the builder reports each one and an overall verdict.*

![The Agent Builder pane in dark mode after a run of 6 simulations on the cancellation fee. A finished Evaluation card shows a red alert icon and the tally 2 of 6 passed, with three failed cases listed and a line reading and 1 more failed. The builder's note below says the run reports two passes and four failures.](https://www.aui.io/assets/help/evaluations/run-a-regression-or-evaluation/live-evaluation-card.png)

*A finished evaluation card lists the failed cases, and the builder starts reviewing them.*

### Write useful guidelines

- Say which behavior you want to find out about and why, such as "after this fee change".
- Name the callers most likely to break it: someone who gives the booking code late, agrees to only part of what was offered, changes their mind, or writes in another language.
- Don't script the turns. The planner writes each caller's situation from your guidelines and the agent's capabilities; fixed turns are what regressions are for.
- A caller who only ever says "yes" tests very little. Ask for callers who push back.

## While a run is going

- If one of the agent's integrations can change a real system, the builder names the system and asks before it starts. A run that only reads, or writes only to a [sandbox database](https://www.aui.io/help/integrations/sandbox-database), starts without asking.
- An agent runs one regression or evaluation at a time. Asking for a second while one is running doesn't start it.
- To stop a run, click the stop button on its card (**Stop this run**).

## Keep a conversation as a scripted case

When an evaluation finds a conversation worth checking every time, ask the builder to keep it:

> Keep the conversation from the refuses-fee case as a scripted case.

The builder adds it to the agent's scripted cases. Like any builder edit, it is saved with your next push, and from then on every regression replays it.

## From the CLI

In a checkout of the agent:

```bash
apollo regress --follow
apollo evaluate 'callers who try to avoid the $15 chat cancellation fee' --simulations 10 --follow
```

`apollo regress` runs the files in front of you, with no push needed. Push before `apollo evaluate`, so that a pass counts for your commit. Options and examples are in the [command reference](https://docs.aui.io/cli/commands) and [workflows](https://docs.aui.io/cli/workflows).
