Bot-to-human handoff is the process of moving a conversation from automated assistant handling to a named human operator. The bot continues storing the conversation history, but replies stop being automated while the conversation is marked Operator in control.
Handoff Triggers
Use three trigger families when deciding whether a conversation should enter the operator queue.
| Trigger family | What qualifies | Examples | Expected operator action |
|---|---|---|---|
| Explicit request | The visitor directly asks for a human, callback, phone contact, or named support channel. | talk to an operator, speak to a human, call me, parlare con un operatore | Open the conversation, select Take control, answer or arrange follow-up. |
| Keyword match | The visitor message contains an admin-configured operator-intervention keyword. | operator, helpdesk, customer service, numero di telefono, supporto | Review the latest message and decide whether to take control. |
| Sentiment or risk | The visitor shows strong frustration, urgency, cancellation intent, safety risk, legal threat, payment dispute, or repeated failed bot replies. | this is unacceptable, cancel my account, I will dispute this charge, repeated negative replies | Prioritize the conversation, take control, and escalate internally when needed. |
Keyword and explicit-request triggers are configured in the product settings. Sentiment and risk rules are operating policy: admins should define the threshold and response owner, then operators should apply it consistently from the inbox and analytics context.
Handoff Flow
Text summary: every visitor message is saved to the conversation, checked against configured handoff signals, and shown in the inbox. A human handoff only becomes active when an operator takes control.
Context Transfer Payload
Operators should expect the inbox to carry enough context to respond without asking the visitor to repeat themselves. Treat this as the handoff payload, regardless of whether it came from the website widget, WhatsApp, Instagram, Twilio, or an internal dashboard conversation.
{
"conversationId": "konv-1710000000000-ab12cd34",
"source": {
"site": "example.com",
"provider": "widget",
"channel": "website"
},
"visitor": {
"displayName": "Ada Lovelace",
"email": "ada@example.com",
"phone": "+15551234567",
"externalUserId": "customer_123"
},
"handoff": {
"triggerType": "keyword",
"matchedKeywords": ["operator", "customer service"],
"sentiment": "negative",
"priority": "high",
"requestedAt": "2026-05-17T10:30:00.000Z"
},
"conversation": {
"handledBy": "bot",
"title": "Shipping delay",
"lastMessage": "I need to talk to an operator about my delayed order.",
"messageCount": 8,
"messages": [
{
"role": "user",
"text": "I need to talk to an operator about my delayed order.",
"timestamp": "2026-05-17T10:30:00.000Z"
}
]
},
"assistantContext": {
"matchedSources": [
{
"id": "faq_123",
"source": "Shipping FAQ",
"score": 0.86
}
],
"lastBotAnswer": "Standard shipping takes 3-5 business days."
}
}| Field | Operator use |
|---|---|
conversationId | Stable identifier for links, audit trails, and internal escalation notes. |
source | Shows where the visitor is contacting support from and which channel constraints apply. |
visitor | Identifies the customer when verified data is available. Do not ask for the same details again unless policy requires confirmation. |
handoff | Explains why the conversation needs human review. Use triggerType, keywords, sentiment, and priority to triage. |
conversation | Gives the latest state, handler, title, last message, message count, and message timeline. |
assistantContext | Shows what the bot already tried and which knowledge sources influenced it. |
Operator Takeover
When the operator selects Take control, the conversation state changes from handledBy: "bot" to handledBy: "agent". The inbox records the control history with the operator user, timestamp, and action. The customer-facing widget shows that a human operator is connected, and the operator composer becomes available.
When the operator selects Release to bot, the state changes back to handledBy: "bot" and automated handling can resume for future visitor messages.