A support assistant can quote the return window correctly and still give the wrong answer. If the window starts on delivery, a test that supplies the same purchase and delivery date will miss an assistant that starts the clock on purchase. Give the test a purchase date and a delivery date that lead to different outcomes. Then check which date the assistant used, what it told the customer, and what happened to the ticket.
For a support lead, the starting point is one approved policy and one queue. Take the clauses that affect what customers are told or what support does next. Turn each into cases with frozen order facts, an expected answer and an expected action. Have the policy owner sign off on those expectations before you see any model output. Otherwise a plausible answer can quietly become the answer your test rewards.
Turn the policy into a set of decisions
For each clause, write down the condition, the record that proves it, the consequence and any exception that overrides it. A deadline clause needs a start event, the timezone or calendar used to count, and a rule for the last eligible day. A clause that says where a refund goes needs a payment record. If a clause leaves the next action unclear, take an example to the policy owner. Until they resolve it, define which claims to withhold and who should handle the case.
Give each test a case ID and keep the customer message, the order snapshot, the request timestamp and the applicable clause reference together. Include only facts the assistant could have seen before replying. Set the expected outcome, required and forbidden claims, and expected queue or follow-up. Use anonymised past tickets for realistic wording and synthetic records for controlled boundaries. Anthropic’s evaluation guidance recommends task-specific examples, including unusual or missing inputs, and measurable criteria. Claude Platform Docs
If the governing policy itself is in dispute, resolve that first. The tests below start with a known approved revision. The process for choosing it is covered in Catch Conflicting Policy Versions Before a Support Assistant Replies.
Worked example (hypothetical)
Assume a retailer accepts change-of-mind return requests for unopened direct orders through the end of day 14 after recorded delivery, using the store’s local date. Delivery day is day zero. Eligible customers submit a return request through the order page. Partner orders go to the selling partner. A report that an item arrived damaged goes to a specialist even if the standard return window has closed. If a refund is approved, it goes back to the original payment method. A separate transaction record determines whether it has been issued.
Unless a row says otherwise, the order is verified, direct, unopened and has no approved refund. For this queue, the assistant can explain eligibility, give the next step and route tickets. Use test queues to verify the handoffs.
| Clause and case | Customer message and facts available before reply | Expected answer | Expected action |
|---|---|---|---|
| Window · W1 | “Can I send it back?” Purchased May 1, delivered May 8, request May 22 local time. | The request is within the window. Direct the customer to the return form on the order page. | Answer in the current queue. |
| Window · W2 | Same question and order as W1. Request May 23 local time. | The standard change-of-mind window closed May 22. | Answer in the current queue. |
| Window · W3 | Same question as W1. No order is linked. The customer mentions a purchase date. | Ask for the order reference so support can check delivery. Leave eligibility undecided. | Ask for one fact and keep the ticket awaiting a reply. |
| Window · W4 | Same question as W1. The order is verified but the delivery record is unavailable after lookup. | Explain that support needs to check the delivery record before confirming eligibility. | Route to order support with the missing-record reason. |
| Item condition · C1 | “I opened it and changed my mind.” Verified delivery was yesterday. | Explain that the standard change-of-mind route requires an unopened item. | Answer in the current queue. |
| Sales channel · S1 | Same dates as W1. The order record identifies a partner sale. | Direct the customer to the selling partner for a return decision. | Give the partner route and leave eligibility undecided. |
| Damage exception · E1 | “It arrived cracked. Can I send it back?” Same dates as W2. | Explain that the damage report needs specialist review. Give no refund commitment. | Route to the damage queue with the order reference and reported damage. |
| Refund method · M1 | “Can you send the refund to a different card? Has it gone out?” Refund approved to original card. Transaction status is pending. | Explain the original payment method rule and say the refund is pending. | Answer from the transaction record without requesting card details. |
W1 and W2 differ by one local calendar day. W2 and E1 share a date but have different reasons for return. These pairs catch two errors that a general question about the refund policy would miss. Add a pair that crosses midnight in the store timezone if your request timestamps arrive in UTC. Test a second turn for W3. Supply an order reference that resolves to W2 and require the assistant to recompute eligibility from that record.
Define what makes a reply pass
Check the evidence, the wording and the workflow action independently. For W1, require the delivery date and request date to drive the decision. The governing clause can be correct in the trace while the date calculation is wrong. The result can also be correct by coincidence. Make the selected clause and the order fields available in the test log so a reviewer can distinguish those failures. AWS documents source grounding and relevance as separate checks. Apply both ideas here by verifying the claims against the policy and order records and checking that the reply answers the customer’s question. Amazon Bedrock grounding checks
Grade the customer-facing reply for meaning. W1 passes with any wording that conveys eligibility to request a return and provides the approved next step. A reply that says a refund has already been approved fails even if it gives the correct deadline. W2 must limit its conclusion to the standard change-of-mind route. A blanket statement that the customer can never get a refund goes beyond the case facts. For M1, a claim that the refund has been issued fails while the transaction is pending.
Compare status labels, required evidence fields and queue destinations automatically where the workflow exposes them. Have support reviewers grade free text against required and forbidden claims. Include an example of a near miss for each critical check so reviewers can apply it consistently. Save the delivered draft or outbound message alongside the trace. The text the customer would receive can differ from the model output after the application inserts a template or rewrites a reply.
Verify the handoff and set the release gate
E1 passes only when the specialist queue receives the ticket with the order reference, the reported damage and the reason the standard route was set aside. Read the assigned queue and ticket state. A reply saying the ticket was forwarded fails if the handoff call timed out and no assignment exists. Include that failure as a separate case and verify the fallback message and ticket ownership. The approval and execution path after specialist review is covered in Put a Human Approval Step on Refund Exceptions.
Replay the suite through the same retrieval, order lookup, reply and routing paths you intend to deploy, using test records and destinations. Block release for the affected policy scope if a tested case can send an incorrect eligibility decision, make an unsupported refund commitment or miss a required escalation. Report failures by clause and case ID. Track unnecessary handoffs too. The assistant must still answer an ordinary in-window request when the evidence is present.
Keep the agreed expectations with the policy revision. When a clause changes, get agreement on the new expected answers before replaying the suite. Rerun it when retrieval, the prompt, the model, or reply and routing rules change. Add a regression case when a real ticket exposes a missed condition. The next support lead should be able to see which fact changed the answer and why the case belongs in the suite.
Sources
- Claude Platform Docs, Define success criteria and build evaluations
- Amazon Bedrock, Use contextual grounding check to filter hallucinations in responses
Bring one refund policy and a few anonymised tickets to a free AI workflow audit.
