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. For a dashboard AI Employee, it runs each test case as a hidden test row and grades the row on its output columns instead, with no Plan check. 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, Evaluating Chat AI Employees, or Evaluating Dashboard AI Employees.
Before you start
- The AI Employee must be published. A run always tests the version published right now, unless you choose a different version in the New evaluation run dialog (chat and dashboard AI Employees only).
- 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.
- For a chat or dashboard AI Employee, choose the Version to test. See Choosing a version target below. Orchestrator and voice AI Employees always test the live version; no selector is shown.
- 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.
For a dashboard AI Employee, What this run will do reads, for example, "Add 20 test rows to the dashboard, one per test case, and grade each on its output columns. A test case passes only when every checked column matches." It also says "Answer each approval step as the test case's approver would."
Before Start run is available for a dashboard AI Employee, Ema checks that the dataset still fits the version you chose ("Checking whether this dataset fits this version…"). If an input or output the test cases rely on has changed, the dialog shows "This dataset can’t run on vN" with what changed, and Start run stays unavailable. See When a dataset is out of date with the AI Employee.
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.
Choosing a version target
For chat and dashboard AI Employees, the New evaluation run dialog shows a Version selector with these options:
| Option | What it tests |
|---|---|
| Live | Resolves the live (published) version on every turn, or for a dashboard AI Employee, as each test row starts. A publish during the run moves later turns or test rows to the new version. This is the default. |
| Testing | Pins the version currently in testing for the whole run. Only available when a testing version exists. |
| Draft (last saved) | Pins the newest saved version for the whole run. Unsaved edits in the AI Employee builder are not included. |
| vN · Name (a specific version) | Pins that exact version for the whole run. Published, unpublished, and archived versions can all be selected. |
Any target other than Live pins one version for the entire run, so a publish during the run does not change which version later turns or test rows use. Retrying a pinned run re-runs the same version; the retry is refused only if that version has been deleted.
When you test a pinned version, that version's own welcome message and PII masking settings are used, not the live version's. This ensures each run is graded with the settings that version actually had.
For a dashboard AI Employee, Ema checks that the dataset fits the version only when the run starts. On Live, if someone publishes a change to the inputs or output columns during the run, the test rows that start after it run on that version without another check, so a test case that no longer fits can fail or go ungraded. To keep one version for the whole run, choose a target other than Live.
Orchestrator and voice AI Employees are always evaluated on the live version. The dialog does not offer a version selector for them.
Step 2: Follow the run
The run page shows "Evaluation run in progress…" and a count such as "12 of 20 conversations". For a dashboard AI Employee it reads "Ema is running the dashboard once for every test case." and counts dashboard runs, for example "12 of 20 dashboard runs". 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 test cases already underway are still graded.
A run shows one of these statuses:
| Status | What it means |
|---|---|
| Running | Test cases are being run and graded. |
| Stopping | Someone stopped the run. Test cases 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
Chat and orchestrator AI Employees
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.
Dashboard AI Employees
A dashboard AI Employee's run page has one score card, and no Plan card:
- Output accuracy: how often every checked output column held the expected value. It takes the place of Response accuracy.
The card reads, for example, "15 of 18 graded test cases passed". A test case passes only when every column it checks matches.
Below the card, Test cases lists every test case with its Summary, Inputs, Expected outputs, and an Outputs mark showing how many checked columns matched, for example "2/3". Filter the list to Outputs passed or Outputs failed to focus on results.
Select a test case to open it:
- The Verdict tab has an Outputs card, marked Passed or Failed. It lists the checked output columns, failures first. Open a column to see its Expected and Actual values and the reason under Why this failed or Why this passed. Columns the test case did not check are marked Not checked.
- The Test case tab shows the test case as it was run: its Inputs, Expected outputs, and Simulated environment.
Select Show work to see the steps the workflow took on the test row. Test rows are not shown on the AI Employee's Dashboard tab. For how a test row runs and is graded, see Evaluating Dashboard AI Employees.
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.
The AI Employee version shown on the run page includes a badge indicating what that version was at start: Live, Testing, Draft, Published, Unpublished, or Archived.
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.
For a dashboard AI Employee, Summary gives the Outputs pass rate instead of Response and Plan. Results shows each test case's Inputs and Expected outputs, the Outputs verdict, Outputs matched, the Output columns with each column's expected value, actual value, and reason, and the Dashboard row 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.
- Dashboard AI Employee. Fix the step that fills the failed column, or the input it reads. Select Show work to find it. See Improving a Dashboard 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. A dashboard test case's expected outputs cannot be edited, so delete the test case and use Add test cases to write a new one.
- 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, or its Outputs rate for a dashboard AI Employee. 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. |
| "This version or this dataset changed and cannot be run right now" | The testing or draft version you selected no longer exists at that stage, or the dataset changed. Choose a version again or review the dataset. |
| "This version no longer exists. Choose another version." | The specific version you selected was deleted. Choose a different version. |
| "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. |
| "This dataset can’t run on vN" in the New evaluation run dialog | A dashboard AI Employee’s inputs or outputs changed since the dataset was written, so its test cases no longer fit. Choose the version the dataset was written for, or create a replacement dataset. See When a dataset is out of date with the AI Employee. |
| "Couldn’t check whether this dataset fits this version" | Ema could not run the dashboard dataset check. Select Retry. Start run stays unavailable until the check succeeds. |
| 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, Evaluating Chat AI Employees, and Evaluating Dashboard AI Employees: how evaluations work for each type, and who can do what.