AI engineering · Evaluation and delivery

Your AI agent works in a demo. How do you know it is ready for production?

An operations coordinator opens a customer enquiry, asks an AI agent to prepare a CRM request and approves the result. The application says the request was saved. In the demo, the right record appears immediately.

Before releasing the workflow, a technical lead needs answers to less convenient questions. What if two customers share a name? What if the CRM saves the request but its response never arrives? What if a new prompt produces a better summary while quietly dropping the requested callback time?

A successful demonstration gives the team one useful example. A release decision needs evidence about the complete workflow, its limits and the changes the team intends to ship.

I would evaluate this enquiry-to-CRM workflow through a small set of explicit acceptance cases, observable records and controlled failures. The design below is illustrative: it is a proposed evaluation and delivery plan, not a report of tests run against a deployed client system.

Define the outcome before choosing the score

For this example, success means that a coordinator can review a request grounded in the selected enquiry, approve a specific revision and save it to the correct organisation in the CRM. The application then shows a confirmed record reference. Preparing the request does not send a customer reply or book an appointment.

That description separates several questions. Are the extracted details correct? Is the proposed customer association justified? Was this revision approved? Did the intended record actually get saved? A fluent response cannot answer all of them.

I would agree the required and forbidden outcomes with the person who owns the process. For a missing service address, the correct result might be a request marked as incomplete for staff review. Guessing an address fails even if the result looks ready to use. An unavailable CRM should leave recoverable work for staff, with an honest status.

An evaluation case should record the starting data, permitted action, expected outcome and evidence to inspect. This gives the team something concrete to disagree about before a model score makes an ambiguous requirement look settled.

A fixed enquiry and CRM starting state enter a trial. The review candidate, tool activity and final CRM records are inspected independently before the case receives an acceptance decision.
Proposed evaluation structure: each case checks the candidate, the actions taken and the resulting records. Passing one layer does not establish that the others are correct.
A fixed enquiry and CRM starting state enter a trial. The review candidate, tool activity and final CRM records are inspected independently before the case receives an acceptance decision.

Build a case set around the work people actually do

Start with a modest, reviewed collection of enquiries covering the first release scope. Use permitted, sanitised examples where available and authored examples for situations the team needs to exercise. Keep the original context: an isolated sentence may lose the correction or qualification in a later message.

I would include complete requests, missing details, ambiguous customer matches, corrections in a thread and requests outside the supported service. Add cases for repeat processing and unavailable dependencies. Include hostile content, but keep the detailed permission and prompt-injection analysis in the separate article on which instructions an agent should trust.

Each case needs an expected result, including when the agent should ask for clarification, stop or leave a draft for review. Staff should check those expectations. If two reviewers disagree about which customer to select, the case may expose an unclear product rule rather than a model defect.

The following cases are a proposed starting set, not measured results:

CaseRequired observation
Complete enquiryReviewed fields match the source; approval creates the intended CRM draft
Missing service addressMissing value stays explicit; no invented address or false completion
Two matching customersNo unsupported association; staff can resolve the ambiguity
Customer corrects a time in a later messageCandidate reflects the correction and retains its source reference
CRM rejects the saveCandidate remains recoverable; no saved status or record reference is invented
Save commits but the response is lostOutcome is reconciled; no second draft is created by a blind retry
Prompt or model changesThe same cases are rerun and individual regressions are reviewed

Keep examples used for prompt tuning separate from a held-out set used for release assessment. Repeatedly adjusting the prompt to pass every visible case can make the suite less informative. Expand it with newly observed failures, retaining both the old expectation and the reason for any intentional change.

Use different checks for facts, judgement and side effects

Some results have direct assertions. A test can inspect the saved organisation, approved revision, record count and presence of a required field. If the expected callback time is explicit in the source, compare the normalised value with that expectation. Do not ask another model whether the database write probably succeeded.

Other properties need a rubric. A useful request summary should preserve the service problem, distinguish a customer preference from a confirmed arrangement and avoid adding unsupported details. A human reviewer can mark the relevant source passages and explain a failure. A model-based grader may help scale that review, provided its decisions are checked against human-labelled examples and disagreements remain visible.

Avoid a single grade that lets elegant wording compensate for an incorrect customer or an unauthorised action. In this workflow, those would be release blockers in the tested cases. Summary quality, unnecessary clarification and processing time can be assessed separately, with thresholds agreed for the actual process.

Also avoid demanding an exact sequence of every model step when several valid approaches exist. Assert the important boundaries: no CRM draft before approval, the approved revision is the one saved, and no unrelated customer record changes. Keep the tool activity for diagnosis without treating a preferred wording or incidental call order as the only correct implementation.

Exercise failures at the integration boundary

Run evaluation trials against isolated test data, resetting the starting state between independent trials. A CRM adapter that can return a controlled rejection or delay makes failures repeatable. It is useful for checking the application, but it does not establish that the real CRM has the same behaviour. Add separate contract checks against an authorised sandbox for the operations and permissions the integration uses.

For the lost-response case, a useful test is precise: let the test CRM commit the approved draft, then prevent the adapter from returning the acknowledgement. Check the application status, the operation identifier and the CRM records after reconciliation. Merely throwing an error before the write tests a different situation.

A test CRM commits an approved draft, but its acknowledgement is deliberately dropped. The application shows an unresolved outcome, reconciles the operation and confirms the existing record without blindly creating another.
Fault-injection plan: lose the response after the write. The acceptance evidence is one intended draft and a truthful final status, not simply a retry message in the transcript. This trial has not been executed.
A test CRM commits an approved draft, but its acknowledgement is deliberately dropped. The application shows an unresolved outcome, reconciles the operation and confirms the existing record without blindly creating another.

The implementation needs duplicate protection supported by the destination or a suitable application-level mechanism. An identifier in a log alone does not prevent duplicate writes. If the destination cannot reliably resolve the operation, the product may need a staff reconciliation path instead of automatic retry. The existing-SaaS integration guide discusses that design boundary in more detail.

Set execution limits as well: elapsed time, tool calls and retries. Exercise the point where a limit is reached and check what staff can recover. A bounded run that leaves a clear, actionable draft can be preferable to an agent that keeps trying while the coordinator waits without a useful status.

Compare releases case by case

Record the model identifier, prompt revision, tool definitions, application revision and dataset version with each evaluation run. Also retain the grader version and relevant configuration. If the provider does not expose an immutable model snapshot, record that limitation; a version label cannot freeze a service that changes behind it.

Run the current and candidate configurations against the same starting cases and dependency behaviour. Repeat cases where model variability matters, reporting attempts and outcomes rather than choosing the best run. A single successful attempt does not show how consistently the workflow behaves.

Compare failures by case and category. A candidate may improve incomplete requests while making customer matching worse. That tradeoff disappears in an overall average. Separate model behaviour from harness failures such as an expired test credential, and fix the harness before interpreting its result as a model regression.

Track latency and cost alongside correctness, including retries and grading overhead where relevant. Use current measured usage for the actual configuration. I would not choose a release threshold from a generic benchmark or publish a savings percentage before running the workload.

Current and candidate configurations run the same versioned cases. Per-case differences and blocking failures inform a hold or limited-pilot decision. Pilot observations can pause the rollout and supply reviewed regression cases.
Proposed release loop: compare versions under controlled conditions, review regressions, then decide whether to hold or begin a limited pilot. Pilot feedback becomes new evidence; it does not rewrite an earlier failed result into a pass.
Current and candidate configurations run the same versioned cases. Per-case differences and blocking failures inform a hold or limited-pilot decision. Pilot observations can pause the rollout and supply reviewed regression cases.

Make the first rollout observable and reversible

Passing the agreed cases is evidence for that scope. It does not prove that unfamiliar enquiries or future dependency changes will behave correctly. For a first rollout, I would keep staff approval, limit the participating team and give someone responsibility for reviewing unresolved requests.

A read-only shadow run can compare prepared candidates with staff handling without letting the agent write to CRM. That helps assess field quality and coverage, but it does not test the production write path. A later, limited pilot needs its own controlled approval, save and recovery checks.

Before that pilot, define who can pause processing, how staff finish work manually and what triggers a pause. For this workflow, an unexplained wrong customer association or duplicate draft would need investigation before expanding access. Monitor confirmed saves, unresolved outcomes, staff corrections and abandoned requests, with enough context to investigate and an appropriate retention policy for customer data.

Rolling back a prompt or application release changes future processing. It does not undo CRM records already created. Keep affected operation references so staff can inspect and correct them deliberately. Recovering the process includes its existing data, not only its running software.

Give the team a reviewable release decision

The release review should include the scope, case set, configuration versions, per-case results, unresolved failures and the proposed pilot limits. Someone should be able to trace a claimed pass to the input, observations and checks that produced it. A dashboard percentage without that evidence leaves the engineering decision unfinished.

My client-commissioned AI Pitch Deck Generator involved a staged workflow from input notes through research and structured content to editable presentation files. It is relevant experience in checking intermediate and final outputs; it is not evidence that the CRM evaluation described here has been implemented.

In an engineering team, I would take responsibility for defining these boundaries with the process owner, coordinating implementation, investigating failed cases and checking the delivered workflow. The work includes the agent, its integration and the evidence used to decide what can be released.

If your team needs an engineer to own that path, tell me about the workflow and the role. Bring one intended action, the system it must change and an example of what would count as a failed outcome. Those are useful starting points for a concrete evaluation plan.

Available for project work

What do you need built?

Tell me what you want to achieve, your current tools and the result you expect. For an existing integration, include an example of what goes wrong.

Send your project brief

Let’s work together

Tell me about your project.

What would you like to build or improve? Share a few details and I’ll get back to you by email.

One PDF, DOCX, TXT, PNG or JPG file, up to 10 MB.

Up to two requests per hour.

Your details, IP address and attachment are sent to me to respond to this request and prevent spam. Your country and region are estimated from your IP address. Please leave out passwords and sensitive personal information. IP Geolocation by DB-IP.

Delivered directly to my inbox.