> For the complete documentation index, see [llms.txt](https://docs.wonderchat.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.wonderchat.io/setup-guides/human-handover-for-your-chatbots/how-to-set-up-live-chat-within-wonderchat.md). Agents can also search and read this documentation through its [MCP server](https://docs.wonderchat.io/~gitbook/mcp).

# Live Chat Setup

A Guide on Setting Up Live Chat for your Chatbot.

Live chat lets a visitor move from your AI agent to a person on your team in real time. Your teammates answer live chats in the [Inbox](https://docs.wonderchat.io/setup-guides/inbox-feature.md). Outside your online hours, visitors leave their details instead so your team can follow up.

***

## Step 1: Turn on live chat

1. Go to **Agents** and click **Edit** on your agent's card.
2. In the settings sidebar, open **Live Chat** (in the **Engagement** group).
3. Turn on **Enable live chat**.

<figure><img src="https://3760420285-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0WUvfmkdMPXz3x7NXP8i%2Fuploads%2Fgit-blob-8ef3b6f86abbec8906727f4f00b52395d2d2f134%2Flive-chat-settings.png?alt=media" alt="The Live Chat tab with Enable live chat, the simultaneous chat limit and online hours"><figcaption><p>The Live Chat tab</p></figcaption></figure>

Once live chat is on, a **Speak to a live agent** button appears in the widget. You can set:

* **Make live chat button visible after \[X] messages**: the button only shows once the visitor has sent this many messages.
* **Collect fields when initiating live chat**: name and email are always collected. You can also ask for a phone number or any of your custom lead fields.

***

## Step 2: Limit simultaneous live chats (optional)

Turn on **Limit simultaneous live chats** if your team can only handle so many chats at once.

* **Maximum open chats**: how many live chats can be open at the same time. A chat counts until it's ended.
* **Busy message**: what new visitors see once the limit is reached, instead of being connected to an agent.

***

## Step 3: Set your online hours

Under **Online hours**, set when your team is available for live chat.

1. Choose your **Timezone**. All hours are read in this timezone for every visitor, wherever they are.
2. For each day, click **Add Time Slot** and drag the slider to set the start and end time. You can add more than one slot per day, for example to leave out a lunch break.
3. Use the switch next to a slot to turn it off without deleting it, or the delete icon to remove it. A day with no slots has no live chat.

If you change the timezone after setting your hours, you'll be asked whether to **Convert times** to the new timezone or **Keep raw times**.

{% hint style="info" %}
Outside your online hours, live chat requests are collected by email instead: the visitor leaves their details and your team follows up. See [Handover via email](https://docs.wonderchat.io/setup-guides/human-handover-for-your-chatbots/ai-chatbot-handover-to-human-support-via-email.md).
{% endhint %}

***

## Step 4: Customize live chat messages

In **Live Chat Messages & Copy** you can change:

| Setting                                  | What it does                                                                                              |
| ---------------------------------------- | --------------------------------------------------------------------------------------------------------- |
| **Show "Send chat history" button**      | Lets visitors send their chat history to the live agent.                                                  |
| **Email the user when an agent replies** | Emails the visitor each time an agent replies in live chat, so they see it even if they've left the page. |
| **Pre-connection confirmation message**  | Shown when the visitor is asked to confirm connecting to a live agent.                                    |
| **Post-connection confirmation message** | Shown once the visitor is connected.                                                                      |
| **Live chat button text**                | The text on the button that starts a live chat. The default is "Speak to a live agent".                   |

Click **Save** to apply your changes.

***

## Step 5: Add quick replies for your team

**Agent Quick Replies** are shortcut messages your team can insert while chatting.

1. At the bottom of the Live Chat tab, type a **Label** (for example "Greeting") and the **Message template**.
2. Click **Add Quick Reply**.

Drag quick replies to change the order they appear in. In the Inbox, your team finds them under **Saved replies** in the reply box.

***

## Step 6: Answer live chats in the Inbox

Live chats are answered in the **Inbox**, together with your tickets.

1. Open **Inbox** from the left sidebar and pick the **Live chats** view.
2. Open a chat to see the conversation so far, including what the visitor asked the AI.
3. Type your reply and click **Send**. The visitor sees it in the widget straight away.
4. When you're done, end the chat: open the status menu at the top of the chat and choose **End chat**, or choose **Send and end chat** from the arrow next to **Send**.

See the [Inbox guide](https://docs.wonderchat.io/setup-guides/inbox-feature.md) for assigning, notes, saved replies and AI-drafted replies.

{% hint style="info" %}
Teammates need access to the agent to answer its live chats. See [How to add team members](https://docs.wonderchat.io/setup-guides/sharing-your-chatbot/how-to-add-team-members-to-wonderchat.md).
{% endhint %}

***

## Step 7: Get notified about new live chats

* **For you**: go to **Settings** → **Notifications** to choose how you hear about new live chats, for example with a sound or a desktop notification.
* **For your team**: in the agent's **Notifications** tab, add a destination to the **Live chat started** event to alert a Slack channel, Microsoft Teams, an email address or a webhook.

See [Notification Settings](https://docs.wonderchat.io/setup-guides/setting-up-your-chatbot/how-to-customize-your-notification-settings-for-your-chatbot.md).

***

## Step 8: Test live chat

Open the preview chat (or your website, once the widget is embedded), send a few messages and click **Speak to a live agent**. Then open **Inbox** → **Live chats** in another tab and reply. For help adding the widget to your site, see:

{% content-ref url="/pages/H0QUfUiaDsn9KQ5R0iPk" %}
[Chat Widget Embedding](https://docs.wonderchat.io/setup-guides/adding-your-chatbot-to-your-website/how-to-embed-a-chat-widget.md)
{% endcontent-ref %}

***

If you have any more questions, feel free to reach out to us at <mark style="color:purple;">**<support@wonderchat.io>**</mark>
