Design a support email agent that sends only safe answers, drafts the rest, keeps a human copy of every email, and gets tested with hostile mail before it can send
A solo app founder built a support agent that answers known how-to questions and drafts everything else for him. The rules came first: a fixed escalation list checked outside the model, a copy of every email to him, and a hostile-email test that exposed a false pass.
Evidence: The author reports this. We have not checked it beyond reading the source.
The business problem
Every support email waited for the founder, even when the answer was already in the help notes. He wanted about half answered without him, without risking a lost ticket, a wrong refund, or an agent reading private customer data.
What was tried
1. Before writing code, list what the agent may never do: change data, refund, delete, read a customer's connected inbox, or look at any account except the sender's. A sender it cannot match gets general help only. 2. Route every support email two ways: one untouched copy to the founder, one to the agent. If the agent fails, it sends nothing and says it could not answer that one. 3. Write an escalation list a person owns: money, account deletion, legal or privacy, security, a child's safety, an upset customer, or anything the agent is unsure of always becomes a draft for the founder. The list is also checked by code outside the model so a crafted email cannot argue past it. 4. Let it send answers that already exist in the help notes; each reply says it was written automatically and that replying reaches a person. A reply saying the answer was wrong goes straight to the founder and counts against the agent. 5. Before switching sending on, have a separate security reviewer (another AI agent) run hostile messages against a test copy; each must end as a draft, a skip, or a safe send. Then check the test itself: in his first run a message that failed to send was counted as safe, so the test was changed so a failure can never pass. 6. After launch, send a real test message through the whole path. His support address silently stopped reaching the agent for a week because mail was delivered by one provider while the routing rule lived at another. 7. Judge it on the share answered without him, a cap on answers customers question, and reply time, over at least twenty tickets and a month.
What was reported (mixed)
The agent went into production after the hostile-email retests passed. The post reports two failures found along the way: a test that counted a failed send as a pass, and a week in which no support email reached the agent because of mail routing. No figures are given yet for the share of tickets answered, wrong answers or reply time; the goal is half answered without him.
Limitations
No results reported yet, only the design, the goal and two failures. The model, providers and code are not named or shown. The product is a parent-facing app with sensitive data, which shapes the strict rules; a lighter product might accept more. The author describes his own product and links to it.
What you need
Written help notes for common questions, a way to copy incoming support mail to both you and the agent, and a test address for hostile messages.
Sources
- DEV Community (James Boone, Daywell) ↗ Firsthand write-up, published November 23, 2026
Source published: November 23, 2026. Last reviewed here: November 30, 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.
Related workflows
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.
Run a long-lived SaaS behind the scenes with cheap script checks first, agents second, and findings filed as tasks instead of alerts
The owner of a 16-year-old affiliate site builder describes how small agents now watch servers, triage support and work the bug list: scripts catch problems, agents investigate, findings go on a deduplicated task list, and risky actions are blocked in code.
Catch duplicate customer replies from a self-scheduled AI inbox agent with run counts, claim rows and a heartbeat
A solo operator let his agent write its own cron line for an AI email-reply job. It ran 6,048 times in three weeks and answered 12 emails six times each. He lists the fixes: claim a window first, a unique key, a lock, and alerts on missing runs.
Stress-test support email routing at category boundaries, then separate urgency rules from AI sentiment
An easybits builder describes testing an n8n Gmail-to-Slack router with 50 difficult emails. Polite outages, mixed languages and overlapping categories exposed failures that confidence scores alone missed.