When a human handoff should happen
A human handoff should be a designed outcome, not a failure. Decide in advance which situations belong to people, and write them down. These are the usual triggers, with the SiteTrellis mechanism that fits each.
| Situation | Why a person | How to detect it |
|---|---|---|
| The visitor asks for a person | Refusing is the fastest way to lose trust | The “visitor request” rule, which recognises common phrasings |
| Sensitive keywords: refund, cancel, lawyer, chargeback | Money, contracts and complaints need judgment and authority | A keyword rule; substring match, up to 30 keywords |
| The AI keeps missing | Repeated “I’m not sure” replies mean a knowledge gap | The failed-answers rule with a threshold |
| The visitor is upset | Tone is where AI is weakest | The negative-sentiment rule, a simple word-based heuristic, plus the agent’s own judgment |
| A high-value lead | A big prospect deserves a prompt, personal reply | There is no automatic lead scoring; tell the agent in its prompt when to use the escalate tool, or send a webhook |
| Outside business hours | Nobody can join live | The outside-hours rule changes what any handoff does |
The AI can also escalate on its own using the built-in escalate tool when its instructions say so; see built-in tools. For anything involving safety, payments or legal matters, make the trigger automatic rather than leaving it to the model’s mood.
The three ways to hand off in SiteTrellis
Every rule has an action, set per agent so it can match your staffing. Pick by asking who will actually see the handoff, and when.
| Mechanism | What happens | Best for | Trade-off |
|---|---|---|---|
| Live takeover | The chat is flagged in the dashboard inbox. A teammate clicks Take over, the AI stops, and they reply directly | Hours when someone is watching the inbox | Needs a plan with takeover (Starter and above) and a person who is really there |
| Email handoff | The transcript and collected details are emailed to your recipients; the visitor is told the team will follow up by email | Small teams and after-hours questions | Slower, and the visitor may have left the page, so an email address is vital |
| Offline collection | When closed, the visitor sees your offline message and a form that saves their details as a lead | Closed hours where you want every visitor to leave a way to reach them | No answer now; it is a callback promise |
There is also a message-only action, which just shows a message such as a phone number while the AI continues, and a combined action that requests takeover and sends the email so nothing is missed. Live takeover cannot be published on the Free plan; email and message actions can. The full behaviour is in Escalation and live takeover.
How to word the handoff message
The message sets expectations, so it must be true. The most common failure is promising a live person who is not there. Write one message per mechanism and match it to your hours.
| Mechanism | Weak wording | Better wording |
|---|---|---|
| Live takeover, staffed | “Please hold.” | “I’ve let a teammate know. They’ll join this chat shortly, usually within a few minutes.” |
| Live takeover, unstaffed hour | “A teammate will be right with you.” | “Our team is away until 09:00. Leave your email and we’ll reply first thing.” |
| Email handoff | “Your request was sent.” | “Thanks! I’ve sent your request to our team. They’ll reply to your email, usually the next working day.” |
| Message only | “Call us.” | “For urgent repairs please phone the shop on the number on our contact page. I’m happy to keep helping here as well.” |
Avoid time promises you cannot keep. “Within a few minutes” is a service level; say it only if someone is on duty. Our guide to writing a support chatbot prompt shows how to put the exact sentence into the agent’s instructions.
What to collect before handing off
Collect just enough that a person can help without starting over, and always include a way back to the visitor.
- An email address (required). It is the default collect field, because a visitor who closes the tab can otherwise never be reached.
- A reason in one line. The escalate tool takes a short reason that your team sees.
- The relevant reference, such as an order number, only if it is genuinely needed.
- Nothing sensitive. Do not ask for card numbers, passwords or health details. Add that as a rule in the prompt.
When a required field is missing, the chat shows a short inline form first, and the handoff completes once it is submitted. The email to your team contains the reason, the page, what is known about the visitor, the transcript and a link to the inbox. If the visitor gave an email, replying to the handoff email goes to them. See also the lead capture docs and our guide to AI chatbot lead capture.
Business hours and time zones
Business hours tell the agent, the widget and the escalation rules when people are available. They do not turn the AI off unless you choose that. Set the time zone of your team, not the visitor’s; visitors elsewhere simply see the offline experience when you are closed. Daylight saving is handled automatically.
- Each day takes up to four time ranges in 24-hour format, so a lunch break is two ranges.
- A range that ends earlier than it starts runs past midnight, which suits late shifts.
- There is no holiday calendar. On a public holiday, edit the schedule or switch hours off and publish, then restore it.
- Offline behaviour is a choice: the AI keeps answering, a message replaces the conversation, or a message plus a form collects the visitor’s details.
- An outside-hours rule changes what any handoff does while you are closed, for example turning live takeover into an email handoff.
Mention your hours in the knowledge too, so the agent can answer “when are you open?” and the two never disagree. The widget caches its configuration briefly, so allow up to a minute for changes to appear. Details: Business hours.
Staffing reality: someone has to watch the inbox
Live takeover is only as good as the person on the other end. A flagged chat nobody opens is worse than an honest email promise. Be realistic about three things.
- There is no automatic routing. Any teammate with the right role can pick up a flagged conversation, so agree who is on duty.
- Polling, not instant. The widget checks for updates every few seconds. Operator messages usually show up within a couple of seconds and the visitor sees a typing indicator, but it is not instant like a phone call.
- Alert people where they already work. Subscribe a webhook to the handoff event to ping your team chat or ticket tool.
If nobody can watch the inbox during certain hours, do not offer live takeover then. Use the outside-hours rule to switch to email handoff.
Handing the chat back to the AI
When a person finishes, they can choose Hand back to AI to return the conversation to the agent, or Close conversation to end it. Hand back when the visitor has more routine questions; close when the matter is done. The built-in end_conversation tool can close a chat the AI thinks is finished, so if you use takeover, consider turning it off or telling the agent to end only after the visitor confirms they need nothing else. Mark resolved chats so the inbox stays readable.
Measuring handoff quality, and a sample rule set
Do not chase a low handoff rate for its own sake. A good handoff is one that was needed and went well. Review a sample of transcripts each week and track:
- Handoff reasons, grouped. A cluster on one topic means a knowledge gap you can close.
- Needless handoffs, where the agent could have answered from the knowledge.
- Missed handoffs, where it should have escalated but kept going.
- Time to first human reply, read from the transcript timestamps.
- Whether the visitor was reachable afterwards, meaning they left an email.
Every conversation records which agent version answered it, so you can tie a bad handoff to the configuration that produced it. Rules are checked in order and the first match applies, so put the most specific first.
| Order | Trigger | Action | Message |
|---|---|---|---|
| 1 | Keyword: refund, chargeback, lawyer, cancel, injury | Both (takeover plus email) | “I’ve passed this to the team and they’ll be in touch.” |
| 2 | Visitor asks for a person | Live takeover | “I’ve let a teammate know. They’ll join this chat shortly.” |
| 3 | Negative sentiment, threshold 2 | Live takeover | “I’m sorry about that. I’ve asked a teammate to help.” |
| 4 | Failed answers, threshold 2 | Email handoff | “I’m not sure about that. I’ve sent it to the team and they’ll email you.” |
| 5 | Outside hours | Email handoff | “Our team is away. They’ll reply by email on the next working day.” |
Test every rule in the playground, then once on the live widget, because playground runs do not send handoff emails. Pair this with a prompt that names the same triggers, and the customer support use case for the wider setup.