Skip to content
Founder Workflows
BrowseSaved
Browse by stage

Replace a support agent's list of 'never' rules with positive rules that name a data source and an exact fallback, then measure on 400 real messages

A solo operator found his support agent refusing simple return questions because of 23 prohibitions in its prompt. He rewrote them as nine rules, each with a data source and a fallback, and cut wrongful refusals from 14.2 to 1.2 percent on a test set.

Evidence: The source shows its work: steps, screenshots, code or data you can inspect.

The business problem

Each support incident tends to add another 'never do X' line to the agent's prompt. Over time the agent becomes evasive and refuses legitimate customer questions, and nothing in the logs shows it.

What was tried

1. Find the prohibitions in your support prompt (search for never, do not, avoid, must not) and count them. 2. For each, write the behaviour you want, starting with a verb. If you cannot, the rule belongs in code as a permission or validation, not in the prompt. 3. Name the data field each rule reads from, for example the order's delivery window or the current refund policy days. 4. Give each rule a literal fallback string that names a next step and a time limit, such as a human following up within one business day, instead of a bare 'I can't'. 5. Build a test set from real, redacted support threads, labelled with what a correct reply must and must not contain, including escalations and a prompt injection, and run the old and new prompt against it. 6. In the code that assembles the prompt, refuse to build it when a rule's declared data source is missing from the context, so a fallback cannot fire silently on the wrong path. 7. Watch for replies where the fallback fires on data that should have been present.

What was reported (mixed)

On the author's 400-message test set, the rewritten prompt went from 1,840 to 690 tokens, wrongful refusals of legitimate requests fell from 14.2 to 1.2 percent, replies containing 'I cannot' or 'unable to' fell from 9.8 to 0.5 percent, and invented delivery dates went from 3 to 0. The rewrite also introduced a new bug: on the refund path the delivery field was never loaded, so for nine days about 60 refund emails said the date could not be confirmed, with no error raised. He found it from one customer reply and added the source check in code.

Limitations

Self-reported by the author, who sells a paid prompt pack linked at the end of the post, so treat as vendor content. The test set and results are not published, and the business, model and customer volume are not named. The author's dev.to series uses a dramatic incident format, which carries some risk that details are composed for effect. The before and after examples and the source check code are shown and can be followed.

What you need

An AI support agent with a system prompt you control and access to past support threads to build a test set.

The author suggests starting with 30 real messages if 400 is too many, and stating the number before and after, or the change is not an improvement.

Sources

Source published: November 11, 2026. Last reviewed here: November 26, 2026. Spot a mistake? Tell us.

Get new workflows like this by email

A short selection of the most useful new workflows, including the ones that did not work. Free, and you can unsubscribe at any time.

Your email address

Related workflows