An agent that guesses when it is unsure will sometimes guess wrong on the tasks that matter most. Escalation is the alternative: when the run hits a signal that it is out of its depth, it stops, hands the task to a person with everything it has found so far, and waits. LangGraph’s interrupts are built for exactly this pause, saving the graph state so the run can resume after a person decides. The hard part is deciding the trigger in advance: a confidence threshold, a repeated tool failure, or a request outside the agent’s scope. Write the trigger down before the run, or the agent will keep guessing.
What you need
- A task with a named escalation trigger, such as a repeated failure or an out-of-scope request
- A person who will take escalated tasks, and a way to reach them
- A handoff summary shape: goal, facts found, what is still missing
Step 1: Write the escalation trigger down
Decide the exact signal that means escalate: two failed attempts at the same step, a tool result the agent cannot interpret, or a request outside its scope. A trigger the agent has to judge for itself is not a trigger.
Step 2: Pause the run and hand over the summary
When the trigger fires, pause the run and send the person the goal, the facts found so far, and what is still missing. The person should be able to continue without re-reading the whole run.
Step 3: Test the trigger with a task the agent cannot do
Give the agent a task outside its scope and confirm it escalates instead of guessing. If it guesses, the trigger is not wired into the run.
Worked example: synthetic escalation check
The table below is a synthetic example. It shows the expected result of low-confidence escalation; no agent was run.
| Situation | Trigger fired? | Action |
|---|---|---|
| Tool fails twice in a row | Yes | Escalated |
| Request outside scope | Yes | Escalated |
| Routine task, tools work | No | Completed |
| No guessing on hard tasks | Yes | Pass |
Expected result (UNTESTED). the two out-of-depth situations escalate to a person with a summary, and the routine task completes normally. This check was not run live; the table shows the expected result for the synthetic example.
Limits
- An escalation queue nobody watches is a stuck run, so name the person before switching it on.
- A trigger set too low escalates routine work and wastes the person’s time.
- The summary must come from the run itself, or it can pass on a wrong fact.
- Escalation pauses the run; a run that cannot pause cannot escalate.
