Test an AI intake agent with a labeled request set

Create a small evaluation set for an AI intake agent. Check routing, missing information, handoff and abstention before the agent handles real requests.

Evaluate an AI intake agent by giving it a fixed set of requests with known outcomes. For each request, decide the allowed route, facts it may extract, evidence it should cite and conditions under which it must ask for help. Measure those decisions separately. A pilot should show that the agent knows what to do with an ordinary request and that a risky or incomplete request reaches a person.

Define the decisions in scope

Write down where requests arrive and which queues actually exist. A small contractor might distinguish estimating, active project changes, supplier invoices and urgent field issues. Identify who owns each queue and what information makes a request actionable. An intake tool can suggest the destination, capture relevant references and identify a missing detail. Commercial approval, safety instructions and changes to commitments need their own authority rules.

Define what a good output looks like. For example, ask for a route from the allowed directory, a set of extracted fields with evidence, a missing-information list and an escalation reason where applicable. If the agent returns free text, reviewers have to infer whether it routed the case correctly. A structured output makes scoring easier and gives downstream software a narrow interface. A valid output format still needs checks for whether the contents are supported by the request.

NIST’s Generative AI Profile discusses evaluating generative AI in the context of its use and monitoring after deployment. Use realistic scenarios from the actual queue and record who would be affected by each type of error. An excellent result in a demonstration with clean requests tells you little about contradictory attachments, multiple jobs or urgent work that arrives in the wrong inbox.

Worked example for an active contractor’s intake queue

Consider an illustrative specialty contractor. A property manager answers an email about a pending bid with “Please add two rooms and start Monday.” The subject line mentions the estimate, while the body could be asking to change the scope of active work. The message does not include a job ID or confirm approval. If the agent routes it straight to scheduling, the field may assume labor can be committed. If it merely files the message under estimating, the team may miss a customer expectation.

The labels for this case could permit a person to decide between estimating and active project coordination, require escalation for implied work authorization, and allow the agent to record the two rooms and requested date as statements from the sender. The response should preserve the evidence that no clear job reference was given. It should leave the project ID and approved start date blank rather than guessing from nearby records. The suggested route should place the item in a queue with a named human owner. None of these labels depend on a client name or an actual project.

Build related cases that change one fact at a time. Include a clear request for a fresh quote that should go to estimating, a request tied to a recognized active job that should go to the project change queue, and a request with a separate verified authorization that still needs the normal commercial review before the team commits work. Add one with two attachments that use different revisions. The agent should surface the disagreement, not pick the latest-looking filename as evidence of authorization. These cases help you see whether it uses relevant information instead of imitating a single keyword.

Prepare cases reviewers can score consistently

Collect examples with permission and redact personal details, protected documents and irrelevant customer data. Synthetic cases are useful for rare failure shapes as long as they preserve the operational decision. Keep test cases away from sessions used to edit prompts and reference material. If you tune on the test set, save a fresh held-out set before comparing results. Keep a dated copy of the routing directory and workflow rules used to label examples.

Give each case a stable ID, input, expected route or acceptable routes, required escalation, allowed fields, evidence and severity. Add a scorer’s note for decisions where more than one route is reasonable. If reviewers disagree, resolve the operating policy or allow both defensible outcomes explicitly. Labeling disagreement is useful evidence about the work itself. An unclear human rule will be hard to automate reliably.

Use several groups. Ordinary cases show whether the agent handles the everyday mix. Ambiguous cases test whether it asks for missing information. High-impact or rare cases tell you whether it respects authority boundaries. Group results by channel or language if those change what the agent sees. Include messages that quote older correspondence and cases where the relevant evidence is missing. Keep an example with the wrong job number so a lookup cannot fabricate a best match.

Measure the kinds of mistakes that matter

Compare each result to the labels and report the group denominators. Count routing errors separately from missed escalations, unsupported fields and unnecessarily escalated ordinary requests. A high average can hide the only error a team cannot accept. If a small group has no observed misses, report how many cases were tested. A pass on a handful of examples cannot establish a guarantee for all future inputs.

  • Route agreement. Count correctly suggested routes among cases that have a defined allowed route. Record which queues were confused and what evidence each case contained.
  • Required escalation. Count escalated cases among those that needed escalation. Inspect missed cases with the owner. Check that an escalation lands where someone can respond within the ordinary workflow.
  • Unsupported extraction. Count fields or cases where the agent supplied values without support. Specify the unit of measurement and preserve the specific field and evidence for repair.
  • Ordinary cases sent to review. Count unnecessary referrals on otherwise routine cases. Excessive handoff creates operator workload even when the agent avoids risky mistakes.
  • Workflow effects. Verify that the agent’s output does not change a job state, send a commitment or trigger another system outside the pilot’s authority.

When an output can vary across identical inputs, repeat high-impact cases under the same configuration. Save the model, prompt version, reference data, date and run ID. Define whether a single observed missed escalation blocks the planned stage. If results change after retrieval rules or queue descriptions change, run the affected cases plus a fixed comparison sample.

Score escalation quality alongside whether it happened. An escalated request should include the original record link, the decision still needed and the queue expected to respond. A vague instruction to “review urgently” may satisfy a binary label while leaving staff without enough evidence to act. Include one test where the designated queue is temporarily unavailable so the fallback owner gets exercised.

Set a pilot gate and a stop rule

Begin with a mode where staff can compare suggestions with their own handling before the agent controls routing. Give staff one simple way to correct the result and record why. Review whether the corrections arise from poor retrieval, an ambiguous policy or a case outside the assessed scope. Changes to one queue should not automatically confer permission to act in another.

Decide when moderators pause the pilot. Examples include a message incorrectly treated as a work authorization, exposure of information from the wrong job or repeated missed escalation of urgent items. Keep a named person who can turn off automated routing while preserving ordinary intake. For the next stage, require evidence that the corrected behavior works on held-out examples using the actual queue permissions and handoff path. Write the next permitted action and owner in the release record.

Bring an intake queue and an anonymized set of difficult requests to an Operations Review. Blackwing can help turn the operating rules into a pilot and acceptance tests through its systems implementation service.

Back to blog