Handing over to a person
When the agent should stop trying, who gets told, and what the visitor sees while they wait.
Every agent eventually meets a question it should not answer — a refund, a complaint, an account change, or simply something that is not in what you gave it. Handoff is the honest exit. The conversation stops being answered by the model and starts being answered by one of your people, in the same chat window the visitor is already in.
The two ways one starts
| The visitor asks | They say they want a person. This works as soon as handoff is switched on, and needs nothing else from you. |
|---|---|
| The agent decides | It gives up on its own and calls for help. This is opt-in and off by default — see below. |
WarningThe agent will not hand off until you let it
handoffEnabled (on unless you turned it off) and handoffAiInitiated — the Let the agent hand off on its own switch under Settings → Human Handoff — which is off until you switch it on. With the second off, the agent keeps trying to answer a question it has already failed twice, because it has no way to say so.It is off by default on purpose: an agent that can summon a person is only useful if somebody is there to be summoned.
What the agent is told
When you opt in, the agent is given one tool and a plain instruction for when to reach for it — not a vague "be helpful", but the cases:
| It does not know | The answer is not in its knowledge base. |
|---|---|
| It cannot act | The request needs something it has no capability for. |
| The visitor is unhappy | They are upset, or have asked twice for something it could not resolve. |
| A person has to decide | Refunds, complaints, account changes — anything involving money or personal data it cannot verify. |
It is also told what not to do: never for a question it can answer, and never twice in one conversation. A second call would queue the same visitor twice and your inbox would show two requests for one person.
TipThe agent writes a one-line reason
The four states
| pending | Asked for, nobody has picked it up. |
|---|---|
| active | One of your people has claimed it and is replying. The agent stays quiet. |
| resolved | Closed. The agent answers again from the next message. |
| expired | Nobody came within an hour, so the agent resumes answering. The visitor is not left waiting on a promise forever — and it can still be claimed late. |
Warningpending is the one to watch
Who is told, and how
The webhook
Set a Webhook URL under Settings → Human Handoff (the handoffWebhookUrl setting) and we POST to it. It must be publicly reachable — internal and loopback addresses are refused. Three events, and the second is the one people forget to handle:
| handoff.requested | Somebody is waiting. This is the one that should page a person. Carries the transcript so far. |
|---|---|
| handoff.visitor_message | They have said something more while waiting. Often the detail that decides who should take it. |
| handoff.resolved | Closed, so your own system can close its copy. |
{
"event": "handoff.requested",
"sentAt": "2026-10-31T14:05:12.000Z",
"chatbot": { "id": 42, "name": "Harbor & Pine" },
"handoff": {
"id": 318,
"status": "pending",
"browserId": "…",
"channel": "web",
"reason": "Wants a refund on order 10482 — I have no tool for refunds.",
"visitorName": "Sara",
"visitorEmail": null,
"createdAt": "2026-10-31T14:05:11.000Z"
},
"transcript": [ … ]
}| X-Tigerbase-Event | The event name, so you can route before parsing the body. |
|---|---|
| X-Tigerbase-Signature | t=<timestamp>,v1=<hex> — on every call. Save the URL without a secret and one is generated and shown to you once; nothing is ever sent unsigned. |
| Retries | Up to three attempts, on a 5xx or a network error. A 4xx is not retried, and redirects are not followed. |
CarefulSign it, and check the signature
handoffWebhookSecret) signs every call. Verify it on your side: the URL is yours but it is reachable by anybody who guesses it, and an unverified endpoint will happily act on a handoff that never happened.Neither the URL nor the secret can be set through the server SDK — they are credentials, and a key that could rewrite where your handoffs are delivered is a key that could redirect them.
The wiring — getting the credentials, verifying the signature byte for byte, and a worked end-to-end flow — is Human handoff under Integrations. This page is what it is and when it happens; that one is how to connect it.
Answering from your own system
The Inbox in your dashboard is one way. The other is @tigerbase/server, or the same routes over HTTP, which do the same things from your own code — list the queue, read one, reply as a person, close it — so a handoff can land in the helpdesk your team already has open. The key needs the handoff scope.
import { TigerbaseServer } from "@tigerbase/server";
const tigerbase = new TigerbaseServer({ apiKey: process.env.TIGERBASE_KEY! });
const waiting = await tigerbase.handoffs({ status: "pending" });
for (const h of waiting) {
await helpdesk.create({ subject: h.reason ?? "A visitor asked for a person" });
await tigerbase.reply(h.id, "Hello — I am taking a look now.", {
authorName: "Sara",
});
}
// Later, when the ticket is closed:
await tigerbase.resolve(handoffId);authorName is the name the visitor sees. Leave it out and they are answered by Support — and “Support” twice in a row reads as a bot, which is the thing they asked to stop talking to. Use the name of the person actually typing.
NoteClose what you open
active the agent deliberately stays quiet. One left open after the conversation ended is a visitor nobody is answering and an agent that will not step back in.Setting it up
- 1
Decide who answers
Before anything else. A queue nobody reads turns "someone will be with you" into a lie, and the visitor was better served by an agent that said it did not know.
- 2
Switch on “Let the agent hand off on its own”
Under Settings → Human Handoff. Without it the agent will keep trying rather than ask for help.
- 3
Point the webhook somewhere that reaches a person
Your chat tool, your pager, your helpdesk. Set a signing secret and verify the signature.
- 4
Watch pending for a week
How long a handoff sits before somebody claims it is the number that says whether this is working. Nothing else does.
NoteIt works on every channel