Skip to main content
Register a handler that fires when the call needs to be escalated to a human agent. This callback can be triggered in two ways:
  • By the caller — the person on the call explicitly asks to speak to a human (e.g. “Can you connect me to a human agent, please?”).
  • By the bot — the agent determines it is unable to service the call properly.
The EscalateEvent is a pydantic model imported from guava.events:
Interaction with on_action_request: If you implement the on_action_request callback, on_escalate will not detect escalation requests made by the human caller — you become responsible for handling those via on_action_request. on_escalate will still fire for escalations initiated by the bot.

Signature

signature
Return value: None

Example

controller.py