ESCALATE when an agent cannot safely or confidently continue execution and requires human intervention. Escalation transfers the conversation to a human operator or handling system, ensuring continuity while preventing incorrect or risky automated responses.
Unlike agent-to-agent routing (HANDOFF / DELEGATE), escalation is specifically designed for human involvement and should not be modeled as a handoff to a human agent.
When to Use Escalation
Typical scenarios include:- User frustration
- Customer complaints
- Policy validation requirements
- System failures
- Repeated routing failures
- High-risk or high-value operations
How Escalation Works
- Agent evaluates escalation triggers.
- When a trigger condition is met:
- A new task is created in the Inbox for a human agent to review and proceed.
- Agent execution is suspended.
- A human agent reviews and completes the task.
- After completion:
- The system executes configured post-completion actions.
- The workflow may resume, transfer, or end.
DSL Configuration
Trigger Properties
Priority Levels
Context for Human
Thecontext_for_human block defines what data is sent to the human agent. This ensures the human agent has full context without asking the user to repeat information.
Structured Context
Routing Configuration
Controls how escalation is routed to the human system.Post-Completion Behavior
Defines what happens after the human agent completes the task.Examples
Escalation from Supervisor
Escalation via ON_ERROR
THEN: ESCALATE triggers the escalation flow after retry attempts are exhausted.