Topic 3 of 5 · 4 min read
Escalation rules for unclear or sensitive cases
Goal: Write escalation rules that send sensitive or ambiguous items to a named person and test them on ten sample inputs.
Escalation rules tell an automation when to stop and hand an item to a named person, so the hard cases never get a confident guess. The machine handles the routine. A person handles what is unclear, sensitive or unusual.
Check yourself · 1 of 3
Which escalation rule is clear enough to use?
Why it matters
Models do not reliably know when they are out of their depth. Asked about a complaint that mentions a lawyer, a medical symptom or a threat, a model will still write a smooth reply. Escalation rules are your way of deciding in advance which cases are not for the machine, rather than hoping it notices.
How to do it
Write the rules as a short list, in plain words, that someone else could follow. Use four kinds of trigger.
- Topic and keyword triggers. Words and themes that always go to a person: refund, chargeback, lawyer, legal, cancel, injury, safety, self-harm, discrimination, press, data breach. Keywords are crude, so also ask the model to classify the item against a short list of sensitive topics.
- Uncertainty triggers. The item is ambiguous, two categories fit, a required field is missing, or the model reports low confidence. A model's own confidence number is only a rough signal, so use it to send items to review, never to skip review.
- Unusual-value triggers. An amount above a limit, a customer with a long history, a language you do not support, a message of 3,000 words.
- Caps. Stop the automation after a set number of actions, for example 50 emails an hour, or when the escalation rate suddenly jumps. Both a runaway loop and a changed input format show up this way.
Every rule needs a named person or role, not "the team", and a deadline. Say what the customer or user sees meanwhile, for example "We have passed this to a specialist and will reply by Thursday".
Then test the rules on ten real or realistic samples before turning them on: five that should escalate, five that should not. Check that each lands where you expect. Repeat after any change.
Before and after
Before: "Escalate anything sensitive."
Nobody, and no model, knows what counts.
After: "Escalate to Priya Rao (support lead) within 2 hours if the message contains refund over 200, lawyer, legal action, injury, or data leak; if the classifier cannot choose between two categories; or if the language is not English or Spanish. Stop all sends if more than 30 items escalate in an hour."
What goes wrong
- Keywords only. "I'm going to sue" is caught, "my solicitor will be in touch" is missed.
- No owner. Escalated items pile up in a queue nobody reads.
- Never tested. The rule does not fire on the cases it was written for.
- Too sensitive. Half of all items escalate and the automation saves no time.
Examples
Support inbox rule set
Escalate to the support lead within 2 hours when the message mentions a lawyer, chargeback, injury or data leak; when a refund request is over 200; when two categories fit equally well; or when the language is not English or Spanish. Stop all automated replies if more than 30 items escalate in one hour, and alert the lead.
Ten-sample test
Five test messages should escalate: a lawyer mention, a paraphrase such as "my solicitor will contact you", a 450 refund, a message in German, and a vague one-word message. Five should not: a password reset, a delivery date question, a thank-you note, a 30 refund and an address change. The paraphrase slipped through, so the classifier step was added.
Key points
- Decide in advance which cases go to a person: sensitive topics, unclear items and unusual values.
- Combine keyword rules with a classification step, because keywords alone miss paraphrases.
- Use model confidence only to route items to review, never to skip it.
- Give every rule a named person or role, a deadline and a message for the waiting user.
- Test the rules on about ten samples, some that should escalate and some that should not, before launch.
Common mistakes
- Writing a vague rule such as "escalate sensitive items" with no examples.
- Relying on a keyword list that misses paraphrases and other languages.
- Sending escalations to "the team" instead of a named person with a deadline.
- Launching without testing the rules on realistic inputs.
Check yourself · 2 of 3
A keyword rule catches "I will sue you" but misses "my solicitor will be in touch". What is the best fix?
Check yourself · 3 of 3
Before launching an escalation rule set, what is the most useful test?
Practice items, not counted towards your mastery.
Start here
- Human-in-the-loop for tools (n8n Docs) (opens in a new tab)DocsFree
Shows how a workflow pauses before a risky tool call and waits for a person to approve or deny.
- Human-in-the-loop in AI workflows: meaning and patterns (Zapier) (opens in a new tab)ArticleFree
Plain-language patterns for adding approval and review steps to an automated workflow.
- People + AI Guidebook (Google PAIR) (opens in a new tab)ArticleFree
Design guidance on errors, feedback and keeping people in control of AI features.
More for this topic
- LLM06: Excessive Agency (OWASP Gen AI Security Project) (opens in a new tab)StandardFree
Explains why AI systems with broad powers need limits and human approval for high-impact actions.
- AI Risk Management Framework (NIST) (opens in a new tab)StandardFree
The US standards body framework for governing AI, including human oversight and accountability.