# Hand off chats from AI to a human agent

Decide when the AI answers website chats and when your team takes over. Set the reply mode, cap AI messages, collect the visitor's email and get notified when nobody is online.

Source: https://ticketdesk.ai/docs/ai-to-human-handoff
Updated: 2026-11-22

The AI agent behind your chat widget can answer every message, cover only the hours when nobody from your team is around, or wait for a person first. You choose this per chatbot with the reply mode, and the visitor sees one continuous conversation either way.

## Open the AI settings

Go to Settings, select Chatbots and edit your chatbot. Expand AI Responses.

![AI Responses settings with the three reply modes](https://ticketdesk.ai/docs/images/chatbot-ai.webp)

- **AI Responses Enabled** turns AI replies on or off for this chatbot. When it's off, every chat waits for your team.
- **AI Agent** picks which agent answers. The chatbot uses that agent's [training sources](https://ticketdesk.ai/docs/how-to-train-an-ai-agent-for-customer-support/468).
- **Reply Mode** decides when the agent answers, covered below.
- **Prompt (Additional instructions)** adds chatbot-specific instructions on top of the agent's own prompt, up to 1,024 characters.
- **Max Messages limit** caps how many AI replies one conversation can get.

Click Save Changes when you're done.

## Choose a reply mode

- **Always**: the AI responds to every visitor message, even when a teammate is in the conversation. Pick this if nobody on your team answers chats, or for a sales or FAQ bot that should never wait.
- **Operator Offline**: the AI responds only when no agent is online. As soon as a teammate opens the Chats page, the AI stops answering and your team handles new messages. When the last operator closes Chats, the AI takes over again. This is the usual choice for teams with set support hours.
- **Fallback**: the AI responds only if an agent doesn't reply within a set number of seconds. Enter the wait time in Fallback delay (seconds), between 1 and 60. Use this when your team answers chats during the day but you don't want visitors waiting in silence when everyone is busy.

An operator counts as online while they are signed in and have the [live chat inbox](https://ticketdesk.ai/docs/live-chat) open in a browser tab. Signing in to other pages of the app doesn't count.

## Let the visitor ask for a person

Reply modes control when the AI talks. What it says when a visitor wants a human comes from the prompt. Spell out your support hours and what the AI should do outside them, for example:

```text
If a customer asks to speak with a human, ask for their email so a
support representative can reply.

Human support hours are 9:00 AM to 5:00 PM, Monday to Friday (CET).
If the customer needs urgent help with a refund or invoice, ask them
to email support@example.com.
If it's not urgent, tell them they'll get a reply on the next working day.
```

Keep the prompt short and specific. The agent's main prompt and training still apply, see [how to create an AI agent](https://ticketdesk.ai/docs/how-to-create-an-ai-agent-for-customer-support/467).

## Collect the visitor's email

A handoff only works if your team can reach the visitor after they close the tab. Expand Messages & Fields and choose which details are required: name, email or phone number. The widget asks for them inside the chat and saves them on the session.

![Chat widget asking for the visitor's email next to an AI answer](https://ticketdesk.ai/docs/images/chat-widget-conversation.webp)

## Get notified when nobody is online

Expand Notifications and turn on Email notifications. When a visitor writes and no operator is online, Ticketdesk AI sends an email so someone can follow up. You get one email per conversation, not one per message.

## Limit AI replies per conversation

Max Messages limit stops the AI after a set number of replies in one conversation. Leave it empty to use the default of 50. A low limit, such as 10, keeps long back-and-forth conversations from using AI credits and pushes them to your team instead. The visitor can keep writing after the limit, and the messages wait in the [live chat inbox](https://ticketdesk.ai/docs/live-chat).

## Check what happened in a chat

In the conversation, AI replies are labeled AI Assistant and your team's replies show the teammate's name. Every AI reply is also listed under Jobs, AI Logs, with the model, tokens and duration. See [AI jobs and logs](https://ticketdesk.ai/docs/ai-jobs-and-logs).

For email tickets, the handoff works through the agent's automations instead. See the human support settings in [how to automate ticket responses](https://ticketdesk.ai/docs/how-to-setup-ticket-automations-with-your-ai-agent/473).
