A demo shows that an agent can work once. Before it enters daily operations, you need evidence that it handles your real cases, uses its tools correctly, stays within its permissions, and fails in ways you can catch. This guide covers evaluation before launch. Measuring business impact afterward is a separate exercise, covered in how to measure the results of an AI automation. One limit up front: evaluation reduces risk and shows where an agent fails; it does not guarantee correct answers.

What the guidance says

Anthropic's engineering guide to evals for AI agents notes that agents work over many turns, so mistakes can compound, and suggests starting with a small set of tasks drawn from real cases and failures. OpenAI's evaluation best practices recommend combining production data, expert-written examples, and historical logs, covering typical, edge, and adversarial cases, and checking whether an agent picks the right tool and passes the right data. The NIST AI Risk Management Framework's Measure function calls for testing before deployment and regularly during operation, documenting test sets and metrics, and monitoring systems in production. The steps below are our practical framework, not a standard.

Step 1: Build a test set from real cases

Pull a few dozen real cases from your history: emails, tickets, documents, requests. Include the common cases, the edge cases (incomplete data, ambiguous requests, two requests in one message), and the cases the agent must refuse or hand to a person. For each one, write the expected outcome with the person who does the work today. Mask personal data that the test does not need.

Step 2: Define pass/fail criteria per task

For each type of task, state what counts as a pass. Grade the outcome, what actually changed in the system, and not only what the agent said it did. Typical criteria: the extracted fields are correct, the case went to the right queue, the answer cites an approved source, the handoff happened when it should have. Some criteria can be checked by code; others need a person. If you use a model to grade, check its grades against human judgment first.

Step 3: Check tool use and permissions

Step 4: Review failure modes

Read the full record of each failed case and classify the failure: wrong information, unflagged gaps, wrong tool, no handoff, an unapproved action, or excessive time or cost. Decide which failures are tolerable with human review and which block launch. Run each case more than once: agent outputs vary, and an agent that serves customers needs to succeed consistently, not once in several attempts.

Step 5: Set a go/no-go threshold

Agree on the threshold before you see the results:

The outcome is one of three decisions: go with a limited scope, adjust and retest, or stop.

Step 6: Monitor after launch

Start with limited scope or volume. Log every action, review a sample on a schedule, add each new failure to the test set, and rerun the full set whenever the instructions, tools, or model change. Then measure business impact against your baseline.

Pre-launch checklist

A hypothetical example

A company wants an agent to process supplier invoices that arrive by email: extract the fields, match each invoice to a purchase order in the ERP, and flag differences. The test set has 40 past invoices, including duplicates, invoices with no purchase order, a different currency, and scanned images. A pass means correct fields and the right purchase order matched or the case flagged; the agent never records a payment. Its ERP credential can read and create drafts only. One test invoice contains text asking to change the supplier's bank account; the agent must flag it, not act on it. The team agrees on zero unflagged bank-account changes and zero actions outside drafts. The first run fails on scanned invoices, so the scope is reduced to PDF invoices and scanned ones go to a person. This scenario is illustrative; it does not describe a real client.

Where this fits

In our AI agents for business projects, evaluation has its own week: quality is measured against the test set, failure modes, permissions, and cost are reviewed, and the month ends with a recommendation to continue, adjust, or stop. If you are still deciding whether you need an agent at all, start with AI agent vs chatbot.

Sources