Evaluating Dashboard AI Employees
Adding a few rows to a dashboard shows you how a Dashboard AI Employee handles the inputs you think to try. An evaluation tests it against dozens of realistic rows at once and shows you which output columns it got wrong, so you can fix them and check that the fix worked.
An evaluation has two parts:
- A test dataset is a set of test cases that Ema writes for you from a goal you describe and the documents you add. Each test case is one row: a value for each of the AI Employee's inputs, and what each output column should hold.
- An evaluation run runs each test case in a dataset as a hidden test row, lets the AI Employee fill it in, then grades the row's output columns.
You do both on the AI Employee's Training tab. This page explains what is different for a Dashboard AI Employee: input documents, a single Output accuracy score, and the check that stops a dataset from running on a version whose inputs or outputs have changed. Building a dataset and running an evaluation each have a guide of their own, shared with the other types.
Dashboard AI Employees. This page covers Dashboard AI Employees. For the conversational types, see Evaluating Chat AI Employees and Evaluating Orchestrator AI Employees. To test a Voice AI Employee, see Testing AI Employees.
How an evaluation works
- Build a test dataset. Describe what the test cases should cover, add input documents like the ones the dashboard receives, and choose how many test cases you want. Ema reads the inputs and output columns of the published version and writes the test cases.
- Start an evaluation run. Pick a dataset and the version to test. Ema checks that the dataset still fits that version, then runs each test case as a hidden test row and grades the row's output columns.
- Improve and run again. See which columns failed and why, fix the AI Employee's workflow, publish, and run the same dataset again.
Nothing in an evaluation touches your live systems. The AI Employee's workflow really runs, but its connections to your other apps are simulated, so no records are created, no messages are sent, and no tool calls reach those apps. Test rows are also kept out of the dashboard's table, so the people who use the dashboard do not see them.
Key terms
Test case. One row for the dashboard: a value for each input, the expected value of each output column it checks, and what is true while the row runs.
Input. One of the values a dashboard row takes in, set on the AI Employee's Start node. An input can be Text, Multi-line Text, Number, Integer, Boolean (true or false), or File, and some inputs are required. A test case gives each input a value of that type.
Input document. A file you upload to the dataset, like the files the dashboard receives in real use. Test cases send input documents to the AI Employee's File inputs.
Output column. One of the dashboard's outputs, set on the workflow's Publish node. Its type comes from the step that fills it, so a column can hold text, such as a summary or a status, a number, a true or false value, or a list of values. A test case checks the columns it gives an expected value for. The others are Not checked. How each kind of value is graded is under How a test row runs.
Output accuracy. Unlike Chat and Orchestrator AI Employees, a Dashboard AI Employee has no Response accuracy or Plan accuracy. Each checked output column is compared with its expected output, and a test case passes only when every checked column matches. Output accuracy is how often test cases passed. It counts graded test cases only, so a test case that could not be graded is left out.
What you need to build a dataset
Before you build a dataset, the AI Employee must be published. Ema reads the inputs and output columns from the published version of the dashboard, and grounds the test cases in the AI Employee's knowledge bases. Then you give Ema four things.
Goal
The Goal says what the test cases should cover, and it is required. Name the kinds of rows you want tested, including the unusual ones, and what the right outputs look like, for example which kinds of receipts the AI Employee should approve, flag, or reject, and why. A vague goal gets you generic test cases.
To start from what the AI Employee is already set up to do, select Use this goal under This AI Employee's published summary. It appears only while the summary describes the published version. You can edit the goal from there.
Reference documents and past examples
These are optional, and they are the same as for the other types. Under Sources, add Reference documents, such as SOPs and policies, so the test cases follow your team's rules, and Past examples, such as past records, so they look like real work. They shape what the test cases cover, but they are never sent to the dashboard as inputs.
Input documents
Many Dashboard AI Employees work from files, such as receipts, invoices, or résumés. To test one on files like the real ones, add them on the Input documents card under Sources. The card reads "Upload files like the ones this dashboard receives. Test cases send them as inputs." Input documents are optional.
- Your documents are used as they are. When you ask for more test cases than you add documents, each of your documents is used as-is in at least one test case, and Ema creates original documents for the rest, based on yours. The card says so, for example "Each of your 3 documents is used as-is in at least one of your 20 test cases." When you add more documents than test cases, or ask for one test case, every test case uses your documents as-is.
- Ema's documents are written for the test case. A document Ema creates is stored as text. When the test case runs, a
.pdfor.docxdocument is rendered from that text, and a.txt,.md,.csv,.json, or.htmldocument is sent as the text itself.
Input documents are PDF, DOCX, PPTX, XLSX, TXT, MD, JSON, or CSV files, up to 25 MB each. A dataset holds up to 100 input documents, counted apart from its reference documents and past examples.
Number of test cases
Under Test cases, enter how many test cases Ema should write, from 1 to 100. The default is 20. Each test case becomes one test row when you run the dataset, so more test cases take longer to generate and to run. If you added input documents, this number also decides how many test cases use your documents and how many use documents Ema creates. You can add more test cases later.
Building a test dataset
- Open the AI Employee's Training tab, select Test datasets, then Build a dataset.
- Enter a Name and select Create dataset.
- Write the Goal, add any sources and input documents, and enter the number of test cases.
- Select Generate dataset, then Generate now.
Ema writes the test cases from the inputs and output columns of the published version. The goal and documents, including input documents, lock once the first test case is written.
Each dashboard test case has:
- a Summary of the situation it tests.
- Inputs: "The values sent to the dashboard row, one for each input of the AI Employee." Each file is marked "Your document, used as-is." or "Generated by Ema for this test case." Select a file's name to preview it.
- Expected outputs: "What each output column must say for this case to pass."
- a Simulated environment: what is true while the row runs, how Tools behave, and the Approver, who answers the workflow's approval requests.
A dashboard test case has no opening message and no user behavior, because no one is chatting with the AI Employee. Its expected outputs cannot be edited. To change one, delete the test case and use Add test cases to describe what you want instead.
For the rest, such as adding and deleting test cases, downloading a dataset, version history, and troubleshooting, see Building a Test Dataset. That guide covers every type, with notes where a dashboard differs.
Running an evaluation
An evaluation run grades every test case in a dataset against the version you choose. Before it starts, Ema checks that the dataset still fits that version; see When a dataset is out of date with the AI Employee. What this run will do says, 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." and "Answer each approval step as the test case's approver would." While the run goes, the page reads "Ema is running the dashboard once for every test case." with a count such as "12 of 20 dashboard runs".
The run page has one score card, Output accuracy ("How often every checked output column holds the expected value."). The Test cases list shows each test case's Inputs and Expected outputs, and an Outputs mark with how many checked columns matched, for example "2/3". Filter it to Outputs passed or Outputs failed.
Open a test case to read its result:
- The Verdict tab has an Outputs card, marked Passed or Failed. It lists the checked columns, failures first, each with its Expected and Actual value 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.
- Show work opens the steps the workflow took on the row. Explain this result asks Autopilot about it.
How a test row runs
Each test case runs as a hidden test row. Its inputs are filled in, its files are uploaded, and the AI Employee's workflow runs on the row as it would on a real one.
When the workflow asks for an approval, the test case's simulated approver answers it. The test case describes the approver under Simulated environment: Why they are asked, How they answer, and What they know.
When the row finishes, Ema grades each checked output column on its own, by meaning rather than wording:
- A number matches when the amount is the same. Currency symbols, units, thousands separators, trailing zeros, and a number written as text do not matter. Any difference in the amount fails.
- A short fixed value, such as a status or a category, matches when it names the same option. Capitalization, punctuation, and an obvious short form do not matter.
- Free text matches when it states every essential fact of the expected value and contradicts none. Different wording, a different order, and extra details are fine, unless a detail contradicts an expected fact.
Some columns fail without being judged: every column of a row that ended without output columns, a column that holds a {{...}} placeholder instead of a value, and a column that holds an object with its own fields instead of the column's value. Columns the test case does not check are not graded.
For the rest, such as choosing a version, stopping or retrying a run, and downloading its report, see Running an Evaluation. That guide covers every type, and its dashboard results are under Dashboard AI Employees.
When a dataset is out of date with the AI Employee
Test cases are written for the inputs and output columns of the version that was published when the dataset was generated. If you later change the dashboard's inputs or outputs, some test cases may no longer fit. Before a run starts, Ema checks the dataset against the version the run will test. The run does not start until the dataset fits.
The check runs only when the run starts. If the run tests Live, each test row runs on the version published when that row starts. So 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, and a test case that no longer fits can fail or go ungraded. To keep one version for the whole run, choose a version other than Live.
Inputs and outputs are matched by their key, so changing a label, a display name, a description, or the order never stops a run. Changing a key counts as removing the field and adding a new one.
| What changed in the version | What happens |
|---|---|
| An input was removed | The run does not start, even when no test case gives that input a value. |
| An input is now required, and some test cases have no value for it | The run does not start. This covers a new required input and an input that was made required. |
| An input changed type | The run does not start. |
| An output column that test cases check was removed | The run does not start. Removing an output column that no test case checks is fine. |
| A new required output column was added | The run does not start, because no test case checks it yet. |
| An output column changed type | The run does not start. |
| An output column was made required, and some test cases do not check it | The run goes ahead. A note names the test cases, which leave that column unchecked. |
You see the result of the check in two places:
- On the dataset page. The page checks the dataset against the live version. When it does not fit, a warning reads "This dataset can’t run on the current AI Employee" and lists each problem with the test cases it touches, for example "The input Receipts was removed. Test cases 2, 5 give it." When the test cases were written for an earlier version, the line under the dataset's name adds "written for a previous version", and the warning suggests running the dataset on that version instead.
- In the New evaluation run dialog. After you pick a version, the dialog reads "Checking whether this dataset fits this version…". If the dataset does not fit, it shows "This dataset can’t run on vN" with the same list, and Start run stays unavailable. Choose the version the test cases were written for, or make a new dataset for this version.
To test the current version, select Create replacement dataset in the dataset page's warning (Builder and Admin roles). It copies the goal and documents into a new draft named after the original with "(replacement)" added, where you generate test cases for the current version. The original dataset and its runs are untouched.
If the check cannot answer, you see "Couldn’t check whether this dataset fits this version". Select Retry.
The check applies to Dashboard AI Employees only. Chat and Orchestrator datasets have no inputs or output columns to compare.
Improving a Dashboard AI Employee
Group the failed test cases that share a cause, then fix each group once in the AI Employee's workflow and publish:
- A wrong value in a column. Change the Instructions of the agent that fills the column, or the knowledge base it reads from.
- A column left empty. Fix the step that should fill the column, or the input it reads. Show work shows which steps ran.
- An approval it did not need, or skipped one it did. Change the step that raises it. See Designing Human-in-the-Loop Forms.
Then open the run's ⋮ menu and select Re-evaluate to run the same dataset against the version you just published. To have Autopilot group the failures and propose the changes, select Ask Autopilot > Improve AI Employee name. It asks before changing anything.
If your fix changes the dashboard's inputs or output columns, the dataset may no longer fit. See When a dataset is out of date with the AI Employee.
Who can do what
What you can do depends on your role on the AI Employee, which is set on its Permissions tab.
| Action | Admin | Builder | Manager | Guest |
|---|---|---|---|---|
| View test datasets, evaluation runs, and their results | Yes | Yes | Yes | Yes |
| Start, stop, rename, and re-evaluate evaluation runs, and retry test cases that were not graded | Yes | Yes | Yes | No |
| Build, generate, rename, clone, and delete test datasets, add or delete test cases, upload input documents, and create a replacement dataset | Yes | Yes | No | No |
These are the four roles the Permissions tab offers. A Guest can use the AI Employee and read its evaluations; people who can use it because it is shared with everyone in your organization are Guests. A Manager can also run evaluations. A Builder can also build and change test datasets. An Admin can do everything.
Troubleshooting
| Symptom | Cause and fix |
|---|---|
| "This dataset can’t run on the current AI Employee", or "This dataset can’t run on vN" | The version's inputs or output columns changed since the test cases were written. Read the listed problems. Run the dataset on the version it was written for, or select Create replacement dataset. See When a dataset is out of date with the AI Employee. |
| "Couldn’t check whether this dataset fits this version" | The check did not answer. Select Retry. |
| Every column failed with "The run ended without output columns, so the AI Employee filled in no column." | The row stopped before it produced its outputs. The reason follows the message. Select Show work to see where it stopped. |
| A column failed because it "left a {{...}} placeholder" | The step that fills the column did not resolve its value. Select Show work to find the step, and fix it. |
| "This file is in use" when you remove an input document | A test case already sends the file, so it stays in the dataset. |
| "Input document limit reached" | The dataset already holds 100 input documents. Remove one to add another. |
| Test rows are missing from the Dashboard tab | Evaluation rows are kept out of the dashboard's table. Open the test case on the run page and select Show work. |
What's next
- Building a Test Dataset: the goal, input documents and other sources, generating, and reading and changing test cases.
- Running an Evaluation: starting a run, reading Output accuracy, and improving the AI Employee.
- Evaluating Chat AI Employees: how an evaluation differs for a Chat AI Employee.
- AI Employee types: what a Dashboard AI Employee is and where it lives.