New Tool Radar

AI Agents & Automation

How to Design an Escalation Queue That Routes Stuck Agent Work to a Human

Build an escalation queue for agent work that gets stuck, so a human sees it with the full context instead of a bare error.

Schematic illustration with three step boxes: define what escalates, build the queue entry, and review the queue daily.

When an agent cannot finish a task, the work should land in a queue a human reviews, with the context that explains it: what the system saw, what it intended, and which rule fired. An escalation that carries only an error message forces the human to redo the agent’s work from scratch, which defeats the purpose.

Before you start

An agent that can fail a task cleanly, and a queue where escalated work waits for a human, such as a ticket system or a shared inbox.

Define what escalates and what does not

Write the escalation rules: a task that hits the step limit, a tool that fails three times, an out-of-distribution input, a low-confidence answer on a high-stakes task. A rule that is not written down will be applied inconsistently.

Decide what does not escalate: a task the agent can retry and finish, or a low-stakes task where a best-effort answer is fine.

Build the queue entry with full context

Each escalation must carry the task, the trace, the tool results so far, the reason it escalated, and the state the agent reached. The human should be able to decide from the entry without re-running the agent.

Add the priority and the deadline: an escalation about a customer refund outranks one about a draft summary.

Review the queue daily and close the loop

Review the queue every day, decide each item, and record the decision with the reviewer and the time. An escalation that sits unread is worse than no escalation, because the user waits while the system looks busy.

Feed the decisions back into the agent: if the same task escalates three times, the task, the tools or the rules need fixing, not another escalation.

Practice check: fictional Maple Corner support agent, 1 week, 6 escalations

The table below is fictional practice material, worked out by hand from the stated queue. It is the expected result for the practice queue, not a run of any agent.

Escalation Reason Context attached Decision Verdict
Refund over limit Needs approval Order + amount Approved Pass
Tool failed 3 times Lookup down Trace + error Retried later Pass
Angry customer Sentiment flag Full thread Human replied Pass
Unknown product code No match Code + search Added to catalog Pass

All four escalations carry the context the human needed and all four were decided the same day. The unknown product code even fixed the catalog, so the next run will not escalate.

Expected result. UNTESTED: the escalations in the practice table are worked out by hand, not measured by running an agent. Write your own escalation rules, check that each queue entry carries the task, the trace and the reason, and review the queue daily for a week.

Limits

  • An escalation without context is a new task, not a handoff: attach the trace and the state.
  • A queue that is never reviewed is a graveyard: assign an owner and a daily review time.

Sources

See all