Running an Evaluation
An evaluation run plays every test case in a test dataset as a simulated conversation with your AI Employee, then grades each conversation on its Response and its Plan. This guide covers starting a run, reading its results, and using them to improve the AI Employee.
You need a test dataset that has finished generating. If you do not have one yet, start with Building a Test Dataset. For how the pieces fit together, see Evaluating Orchestrator AI Employees or Evaluating Chat AI Employees.
Before you start
- The AI Employee must be published. A run always tests the version published right now.
- You need the Manager, Builder, or Admin role on the AI Employee. See Who can do what.
Step 1: Start a run
- Open the AI Employee's Training tab. Evaluation runs opens first.
- Select New evaluation run. You can also open a dataset from Test datasets and select Run this dataset.
- Enter a Name that says what the run is for. It is how you pick the run out of the list later.
- Choose the Dataset to score against. The run grades the dataset's current version.
- Check What this run will do. It confirms that connections to your other apps are simulated and names the version the run tests, for example "Test Employee Help v4, the version published right now."
- Select Start run.
An AI Employee can have up to three evaluation runs going at once. If it has reached that limit, you see "This AI Employee is already running as many as it can". Start the new run when one of the active runs finishes.
Step 2: Follow the run
The run page shows "Evaluation run in progress…" and a count such as "12 of 20 test cases". The run keeps going if you leave, and you can come back to it from Evaluation runs at any time. About this run shows the dataset and version it is Scored against, the AI Employee version it tests, when it Started, and who it was Run by.
To end a run early, select Stop run and confirm. Test cases already graded keep their results, and conversations already underway are still graded.
A run shows one of these statuses:
| Status | What it means |
|---|---|
| Running | Conversations are being held and graded. |
| Stopping | Someone stopped the run. Conversations already underway are still being graded. The run then ends as Cancelled if some test cases never started, or with one of the other statuses if every test case had already started. |
| Completed | The run finished and every test case was graded. |
| Partly graded | Every test case ran, but some stopped on an error before they were graded. Retry grades them. See Troubleshooting. |
| Failed | The run could not grade its test cases. |
| Cancelled | The run was stopped before some test cases started. Run the remaining runs them. |
Step 3: Read the results
Two cards at the top of the run page give the scores:
- Response accuracy: how often the AI Employee produced the correct answer.
- Plan accuracy: for an orchestrator, how often it followed the intended steps, tools, and routing to reach an answer; for a Chat AI Employee, how often it chose the right tools.
Each card also reads, for example, "15 of 18 graded test cases passed". The rates count graded test cases only. The two checks are graded separately, so a test case can pass one and fail the other.
Below the cards, Test cases lists every test case with a Response mark and a Plan mark. To focus on one check, filter the list to Response passed, Response failed, Plan passed, or Plan failed. Failed shows every test case that failed at least one check, and Passed the ones that passed both. A test case that was not graded shows Not graded and cannot be opened.
Select a test case to open it:
- The Verdict tab shows a Response card and a Plan card, each marked Passed or Failed, with the reasons: Problems found when it failed, Why this passed when it passed. The test case itself follows, so you can compare what happened with what was expected.
- The Conversation tab shows the whole simulated conversation.
- For an orchestrator, where it handed work to a connected AI Employee, a "Delegated to" card shows what that AI Employee did. If your role lets you see detailed logs, the card has a View detailed logs link that opens that AI Employee's debug logs.
- For a Chat AI Employee, the conversation reads the way the Chat tab draws it, with each approval or form and how the simulated user answered it. See Evaluating Chat AI Employees.
Select Copy link to share the test case with a teammate.
Which version a run grades
A run grades the version of the dataset that was current when it started. Changing the dataset during the run does not affect it. Scored against names that version; select it to open the version read-only.
If the dataset has changed since, the run page says "The dataset has changed since this run." The report still shows the version it graded. Select View current dataset to see it as it is now. Retry and Run the remaining finish the same run. Re-evaluate starts a new run on the current version.
Test case dates
A test case can carry a Test case date, shown at the top of its Simulated environment. When a run plays that test case, the AI Employee, the simulated user, the simulated Tools, and the graders all treat that day as today. An answer that depends on the date, such as a leave balance or a deadline, is then graded the same way whenever you run the dataset. A test case with no date runs on the real date. To see how the date is set, see Read the test cases.
Download a run's report
Select Download on a run page to save its report as an Excel (.xlsx) workbook. Its name combines the AI Employee's name, the run's name, and the date. The workbook has three sheets:
- Summary: the run's name, the AI Employee and dataset versions it tested, its status, when it started and finished (in UTC), who ran it, the Response and Plan pass rates, and how many test cases were graded and not graded.
- Results: one row per test case, with its summary, opening message, expected answers and Tools, the Response, Plan, and overall verdicts (Passed, Failed, or Not graded), the reasons for each, any grading error, and an Open link to the test case on the run page.
- Test cases: the test cases as the run graded them, in the same columns as a dataset download, so you can match rows by
test_case_id.
Download is unavailable while the run is still grading ("Available when grading finishes") or stopping ("Available once the run stops").
Step 4: Improve and run again
- Filter the results to Failed and open each failed test case. Read Problems found on the Verdict tab, then open the Conversation tab to see what the AI Employee did. Where an orchestrator handed work to a connected AI Employee, select View detailed logs to see what that AI Employee did.
- Group the failures that share a cause. Several test cases often fail for the same reason, for example an orchestrator sending billing questions to the wrong AI Employee, or a Chat AI Employee calling the wrong tool for the same kind of request. Each group needs one fix, not one per test case.
- Decide where each group's fix belongs, make it, and Publish:
- Orchestrator. If it chose the wrong AI Employee, sent it the wrong request, or answered badly, change its Instructions on the Configuration tab. If a connected AI Employee got a good request and still did the wrong thing, fix and publish that AI Employee.
- Chat AI Employee. Fix its workflow: the agent's Instructions, the tool step, or the Knowledge Base. See Improving a Chat AI Employee.
- If the AI Employee did the right thing but the test case expected the wrong thing, fix the test case instead: edit its expected answers, as described in Change test cases.
- Open the run's ⋮ menu and select Re-evaluate. A new run starts on the dataset's current version, against the version you just published.
Let Autopilot do the grouping. Select Ask Autopilot > Improve AI Employee name. Autopilot reads the failed conversations, groups the failures by cause, and proposes one change per group. For an orchestrator, it also reads the detailed logs of the connected AI Employees involved, and proposes changes to the orchestrator, the connected AI Employees, or both. It tells you which AI Employee each change affects and asks before changing anything. Once you confirm, it can publish the changes and run the evaluation again.
Every run stays in the Evaluation runs list, which shows each run's dataset, AI Employee version, Dataset version, and its Response and Plan rates. Compare runs on the same dataset version to see whether a change helped. To rename a run, use Rename in its ⋮ menu.
Ask Autopilot about a run
- Explain these results on the run page asks Autopilot to explain the run's results.
- Explain this result in an open test case asks about that one test case.
- Ask Autopilot > Improve AI Employee name proposes fixes from the failed test cases, as described in Step 4.
You can also ask Autopilot to start, stop, or retry a run, and to read its results. Autopilot cannot rename a run.
Troubleshooting
| Symptom | Cause and fix |
|---|---|
| "Publish this AI Employee to use evaluation runs" | The AI Employee has not been published. Publish it. Earlier runs stay available to read. |
| "Build a dataset first", or no dataset to choose | A run needs a dataset that has finished generating. See Building a Test Dataset. |
| "This AI Employee is already running as many as it can" | The AI Employee is at its limit of evaluation runs going at once. Start this run when one of them finishes. |
| "This dataset changed and cannot be run right now" | The dataset was empty, still generating, or changed after you opened the dialog. Review it and try again. |
| "You no longer have permission to start evaluation runs" | Your role on the AI Employee changed. Ask an Admin for the Manager role or higher. |
| Some test cases show Not graded | They stopped on an error before they were scored, or the run was stopped before it reached them. The banner above the results says how many. Select Retry to grade the ones that stopped on an error, or Run the remaining to finish a cancelled run. |
| The banner offers only Start a new run | The AI Employee has been published again since the run started. Finishing the old run would mix two versions in one score, so start a new run against the current version instead. |
| Response passed but Plan failed | The AI Employee gave the right answer by a route the test case did not expect, such as without a tool it should have used, or, for an orchestrator, without the AI Employee it should have involved. Read Problems found on the Plan card of the Verdict tab. |
What's next
- Building a Test Dataset: add test cases where the results show gaps, or fix expected answers.
- Debug Logs: read a connected AI Employee's run step by step.
- Writing effective Instructions: Instructions that route requests reliably.
- Evaluating Orchestrator AI Employees and Evaluating Chat AI Employees: how evaluations work for each type, and who can do what.