# Your AI Demo Passed. Will It Survive Real User Input?

Your support classifier routes “I want a refund” correctly in the demo. Then a real customer writes, “I was charged twice, and I still haven’t received the order.”

The model routes the ticket to shipping. The missing delivery gets attention, but the duplicate charge goes unnoticed. The response looked fine in the logs because it matched the expected output format. The mistake was in what the model decided to do.

A small regression suite can catch this before release.

## Start with the decisions your app has to make

Suppose your support team has a rule: when a ticket mentions both a duplicate charge and a missing delivery, billing takes the lead and shipping is recorded as a secondary issue. Write that rule down before scoring the model. Different teams may handle the same ticket differently.

| Customer message | Expected behavior |
| --- | --- |
| “I was charged twice.” | Route to billing. |
| “I was charged twice, and my order never arrived.” | Route to billing and record the missing delivery as a secondary issue. |
| “My package was late, but it arrived. I still need an invoice.” | Route the unresolved invoice request and avoid reopening the delivery issue. |
| “Can you fix it?” | Ask what happened before assigning a queue. |
| “This better not be another duplicate charge. Can you send me the invoice?” | Route the invoice request without treating the suspected duplicate charge as confirmed. |

Add two or three paraphrases for your most consequential cases. “You took the money twice” and “there are two completed charges” should trigger the same routing rule when they describe the same situation.

## Score the outcome at three levels

1. **Format.** Can the application parse the response?
2. **Decision.** Did the model choose the correct route or ask for clarification?
3. **Coverage.** Did it capture all unresolved issues without inventing or reopening any?

For the mixed billing and shipping ticket, a response can pass format and routing while still failing coverage. That distinction matters because each failure points to a different fix.

## Compare versions before you ship

Imagine the current prompt passes 16 of 20 cases and the new prompt passes 18. The new version looks better until you inspect which cases changed: it fixed three straightforward examples and introduced one regression that sends duplicate-charge tickets to shipping.

That single regression can be enough to hold the release. Decide which failures should block deployment before you compare the scores. Then run both versions against the same cases and keep a record of what changed.

As new failures appear, turn them into anonymized or synthetic test cases. Record the input, expected behavior, and reason it matters. Over time, that gives your team a suite that reflects what customers actually ask and what your application is expected to do.

For more on building and testing AI applications, explore the [IAICB Certified AI Developer program](https://www.iaicb.org/training/certified-ai-developer).

**What’s one real user input your AI demo would have missed?**
