{"slug": "designing-a-support-agent-that-cannot-lose-a-ticket", "title": "Designing a support agent that cannot lose a ticket", "summary": "A Daywell engineer built an autonomous support agent that reads every incoming support email, answers questions with pre-written help-desk answers, and escalates everything else to a human, with a hard-coded deny list covering money, refunds, account deletion, legal/privacy requests, security, child safety and upset parents. The agent sends a copy to the engineer untouched and works from its own copy, so a failure costs a delay rather than a lost ticket. Before enabling sending, an AI security reviewer ran hostile messages against a test copy; the first run produced a false pass because a message that failed to send was counted as safe, leading to two fixes.", "body_md": "Originally published at [https://getdaywell.com/labs/designing-a-support-agent](https://getdaywell.com/labs/designing-a-support-agent).\n\nEvery support email at Daywell used to wait for me. Now an agent reads it first. It answers the questions that already have an answer, and sends me the ones that need a person.\n\nThis is one of four posts on the agents inside Daywell. [The first](https://getdaywell.com/labs/what-is-an-ai-agent) defines what an agent is, and two others cover [Felix](https://getdaywell.com/labs/felix-the-agent-that-answers) and [the integration agent](https://getdaywell.com/labs/integration-agent-requests-to-review).\n\nBecause the answer to most support questions is already written down, and a parent should not wait a day for me to paste it.\n\nA parent writes \"how do I add my partner?\" The answer is in our help notes. Waiting on me adds nothing for them. So I decided to build something that answers before I have to, with one goal: **half answered without me.**\n\nYes. An email arrives, nobody starts anything, and the agent decides whether to answer it or escalate it.\n\nAn agent is an autonomous harness that runs a context loop and resolves work on its own. This one runs on every new email. It resolves the known questions and passes the rest to a person, and deciding which is which is the work.\n\nA copy goes to me untouched, the agent reads its own copy, and the parent gets either a safe answer or a person.\n\nA failure costs a delay. It never costs a ticket.\n\nChange data, refund anyone, delete anything, read a parent's inbox, or look at any account but the one that is writing.\n\nThat list was written before any code.\n\nAn agent you trust is mostly a list of things it cannot do.\n\nAnything about money, deleting an account, legal or privacy requests, security, a child's safety, an upset parent, or anything the agent is unsure about.\n\n| If the email is about | Who answers | \n|---|---|\n| A how-to question with a written answer | The agent, and it says so | \n| Money, a charge or a refund | A person | \n| Deleting an account | A person | \n| A legal or privacy request | A person | \n| A security problem | A person | \n| A child's safety | A person | \n| A parent who is upset, or says we lost something | A person | \n| Anything the agent is unsure about | A person | \n\nThe list is checked outside the model as well, so a clever or hostile email cannot talk its way past it. When a check trips, the answer becomes a draft for me. Nothing is dropped.\n\nSend the safe ones, draft the rest. Drafts only would have kept me as the bottleneck I was trying to remove.\n\nMy words at the time were \"send the safe ones now\". The security review did not narrow that. It added conditions on how a send is checked, and kept sending behind a switch until a security walk passed.\n\nEvery reply carries two things:\n\nA parent who says \"that was wrong\" goes straight to me, and the answer counts against the agent.\n\nA reply to one of its answers is treated as a new email and goes through the same decision. If they say it did not work, or they are still stuck, I get it as a draft and the earlier answer is marked as questioned. Those counts feed the weekly learning loop, which turns feedback and logs into improvement tickets.\n\nSend it hostile mail on a test copy and read every outcome yourself. Then check that your test cannot pass by accident.\n\nBefore sending was switched on, the security reviewer, an AI agent whose only job is security, ran a set of hostile messages against a test copy. Every case had to end one of three ways: a draft, a skip, or a safe send. The switch that lets the agent send stayed off until it passed.\n\nThe first run looked good, and one of its passes was false. A hostile message had not been answered safely. It had failed to send at all, and the test counted a failure as safe. Two fixes came out of it:\n\nA second gap turned up as well. The case of a long back-and-forth, where the agent should stop replying on its own, was missing from the first run. It was forced on a real thread, and the agent sent nothing. After the retests the set passed, and sending went on in production the same day.\n\nMail routing, not the agent. For a week, mail to the support address never reached it.\n\nA quiet inbox looked like good news. It was not evidence. After a week of quiet we sent a test message and nothing came out the other end. The domain's mail was being delivered by one provider while the routing rule lived at another, so the rule never saw a message. The fix was to have the first provider deliver a copy to an address the rule watches. That night a test message became a ticket.\n\nTest the whole path with a real message, and never read silence as good news.\n\nBy the share answered without me, a cap on answers parents question, and how fast a reply arrives.\n\nI judge it over at least twenty tickets and a month, so a lucky week cannot fool me.\n\nDaywell ([getdaywell.com](https://getdaywell.com/?src=devto)) reads a parent's school and daycare email and turns it into a short list of what to have ready, and when.\n\nMore posts like this: [Daywell Labs](https://getdaywell.com/labs).", "url": "https://wpnews.pro/news/designing-a-support-agent-that-cannot-lose-a-ticket", "canonical_source": "https://dev.to/james_boone/designing-a-support-agent-that-cannot-lose-a-ticket-1khf", "published_at": "2026-11-23 14:36:25+00:00", "updated_at": "2026-11-23 14:44:03.723996+00:00", "lang": "en", "topics": ["ai-agents", "ai-safety", "ai-tools"], "entities": ["Daywell", "Felix"], "also_reported_by": [], "takeaway": "Enforce an agent's escalation rules outside the model and test them with hostile messages whose outcomes are checked individually, since a message that fails to send can otherwise be miscounted as a safe pass.", "recommendation": {"advice": "Run hostile emails against a test copy of your support agent and verify each outcome is a draft, skip or safe send, so a failed send cannot pass as safe.", "playbook": "agent-security", "playbook_url": "https://wpnews.pro/playbooks/agent-security"}, "alternates": {"html": "https://wpnews.pro/news/designing-a-support-agent-that-cannot-lose-a-ticket", "markdown": "https://wpnews.pro/news/designing-a-support-agent-that-cannot-lose-a-ticket.md", "text": "https://wpnews.pro/news/designing-a-support-agent-that-cannot-lose-a-ticket.txt", "jsonld": "https://wpnews.pro/news/designing-a-support-agent-that-cannot-lose-a-ticket.jsonld"}}