> ## Documentation Index
> Fetch the complete documentation index at: https://docs.newlead.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Web chat

> Add a chat widget to your website so visitors can talk to your agent without leaving the page.

The web chat is a widget you add to your website. Visitors open it and talk to the agent right there, and each one becomes a lead. Besides the chat, the widget can offer a call from the browser and a shortcut to WhatsApp.

## How it works

* Each visitor who starts a chat becomes a lead, with web chat as the channel. Before the chat starts, the widget can ask for their name and phone.
* The chat is text only: visitors can't send files or voice notes.
* There is no 24-hour window and no templates, but once the visitor leaves the page there is no way to write to them again. Web chat leads get no follow-ups.
* Pausing the AI and your wallet balance work the same as on the other channels.
* The widget can have up to three modes: **Chat**, **Call** and **WhatsApp**. With more than one, the visitor chooses when they open it. With only the chat, it opens straight into the conversation.

## Set it up

**1. Open the agent**

Go to **AI Agents** and open the agent. In **Setup**, select **Support channel**, or **More channels** if the agent already has a channel.

**2. Create the widget**

On the **Web Chat** card, select **Connect**. In **Enable web chat**, write the **Display name** shown in the widget header and select **Enable**.

**3. Copy the code**

In the **Web chat** panel, under **Web chat settings**, select **Copy** next to **Embed code**.

**4. Add it to your website**

Paste the code before the closing `</body>` tag on every page where you want the widget.

**5. Adjust it and save**

Change the settings below and select **Save**.

## Settings

### Basics

* **Display name** and **Language** (Español or English).
* **Allowed domains**: the websites where you use the widget, such as `https://example.com`. Leave it empty to allow any domain.
* **Widget active**: when it's off, the widget doesn't load on your website and the row in **Setup** says "· paused".

### Appearance

* **Layout**: **Window** opens in a floating window in the corner, **Full screen** covers the whole page. On a phone it always fills the screen.
* **Main colour**, **Theme** (**Light**, **Dark** or **Automatic**, which follows the visitor's device) and **Avatar** (**Initial**, **Woman** or **Man**).
* **Welcome message**: required. It's also the text of the **Pop-up notice**, which shows above the bubble until the visitor opens the widget.
* **Legal footer** and **Footer link**: a short text at the bottom of the widget and the page it opens. Leave the text empty to hide it.
* **Ask for name** and **Ask for phone**: asked before the chat or the call starts.

### Modes

* **Chat**: always available.
* **Call**: the visitor talks to one of your voice agents from the browser. Choose it in **Voice agent**. Calls from the website are charged as voice calls, and your plan must include calls. See [Web calls](https://docs.newlead.ai/guide/voice/web-calls.md).
* **WhatsApp**: opens WhatsApp with your number and the **WhatsApp message** already written, and the visitor decides whether to send it. Available once WhatsApp is connected to the agent.

## Good to know

* A reply in the web chat shows as delivered once it appears in the widget. There is no read status, so you can't tell whether the visitor saw it.
* **Delete** removes the widget from the agent, and it stops working on every website where it's embedded. Existing conversations are kept.
* If your account or subaccount is paused, the widget still opens and saves what visitors write. When it's active again, the agent replies to the messages from the last 24 hours.

## Related

* [Channels](https://docs.newlead.ai/guide/channels/overview.md)
* [Connect WhatsApp](https://docs.newlead.ai/guide/channels/connect-whatsapp.md)
* [Voice](https://docs.newlead.ai/guide/voice/overview.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.