Human Handoff
Seamlessly transfer conversations from AI to human agents and back
Human Handoff
When the AI can't help, conversations are escalated to human agents. The handoff is seamless — the user stays in the same chat, and the agent responds directly from the inbox.
How Escalation Works
The AI triggers escalation automatically when:
- User explicitly asks — "Let me talk to a human", "speak to an agent"
- Repeated frustration — After 3+ unsatisfied exchanges
- Sensitive topics — Billing, refunds, account operations
The chatbot uses the escalateToHuman tool, which:
- Sets the conversation's
handoffStatusto"queued" - Shows a log message in the inbox
- Notifies the widget that a human will take over
Handoff States
| State | Widget Shows | AI Active? |
|---|---|---|
ai | Normal chat | Yes |
queued | "Connecting to agent..." | No |
human | "Chatting with Agent Name" | No |
Agent Workflow
Taking Over
- Open the Inbox
- Look for conversations with an amber "Needs Human" badge
- Click Take Over in the conversation toolbar
- The conversation is assigned to you — the widget shows your name
Responding
Use the Reply tab in the inbox to send messages directly to the user. Use the Private Note tab for internal notes (not visible to the user).
Handing Back to AI
Click Hand Back to AI when the issue is resolved. The user's next message will be handled by the AI again.
Inbox Indicators
- Amber dot in conversation list = queued (waiting for agent)
- Green dot = human agent is handling
- "Needs Human" badge in conversation header
- "Live — Agent Name" badge when assigned
Configuration
Escalation is always available — the AI has the escalateToHuman tool registered as an internal tool that cannot be disabled. The escalation rules are part of the system prompt.
Last updated on