Measure true resolution, not just deflection, for an AI support agent with an escalation policy
A small open-source evaluation shows a naive support agent deflecting every ticket while resolving about half, and a policy-gated agent that deflects fewer but resolves what it handles.
Evidence: The source shows its work: steps, screenshots, code or data you can inspect.
The business problem
Support dashboards often report deflection as success, hiding tickets that left the queue without actually being solved.
What was tried
A LangGraph pipeline classifies intent, retrieves knowledge-base context, decides an action, checks escalation triggers (low confidence, an explicit request for a person, negative sentiment, regulated topics) and either resolves or escalates with a handoff summary. A rule-based judge compares what the agent did with ground truth, and the gap between deflection rate and true resolution rate is the headline metric. Backends are simulated with local files and a mock model runs by default, with an optional Claude key.
What was reported (mixed)
On its own simulated data the naive agent showed 100% deflection but 53% true resolution (a 47-point gap), while the policy-gated agent deflected 53% and resolved 100% of those, a gap of zero.
Limitations
The results come from a simulated environment with a mock model, and the ticket count, test composition and variance are not stated. It handles only single-message tickets, uses keyword search, has an uncalibrated optional language-model judge, and does not report latency or cost. It is a one-commit portfolio project under the MIT licence, and external statistics in the README were not verified.
What you need
Python and the listed packages. An Anthropic API key is optional, and tests run without one.
Sources
- GitHub (aniruddhabasu1985-tech/trueresolve-AI) ↗ Code repository, publication date unknown
Source published: unknown. Last reviewed here: October 11, 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
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.
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.