# How to add website chat with AI replies

> Add a chat window to your website in one line of code: where the line goes, why your domain must be listed, and how AI and your team answer visitors.

By Shraddha Agarwal. Published 2026-11-25. Page: https://otobiz.ai/blog/how-to-add-website-chat-with-ai-replies

## In short

- Website chat needs nothing from another platform: Otobiz creates the chat window and gives you one line of code.
- Paste the line before the closing body tag on every page, then add your website under Domains.
- Visitors talk to the AI agent, and your team takes over from the same inbox as every other channel.
- No broadcasts on website chat: a visitor who closed the tab cannot be reached.

**The short answer:** To add website chat with AI replies, press Add website chat in Otobiz, paste the one install line before the closing body tag on every page of your site, and add your website under Domains. Visitors then talk to your AI agent, and your team takes over from the same inbox as every other channel. Otobiz starts with a 7-day free trial (no card needed). Steps checked in the app on 25 November 2026.

## What you need first

A way to add one line of code to your site, yourself or through your developer. There is no account to create anywhere else.

## Add it, step by step

1. In Otobiz, open **Connections**, then **Channels**, and press **Connect** on Website chat.
2. Press **Add website chat**. Otobiz creates the chat window and shows **Your install line**.
3. Copy the line and paste it before `</body>` on every page. Not your job? **Email to developer** sends them the line and where it goes.
4. Open **Domains** and press **Add website**. The window stays off until your website is listed there.
5. Press **Check my install**. Your site opens in a new tab and the check takes about a minute.

## Choose where the window appears

| Mode | What you add |
| --- | --- |
| A chat bubble on every page | The install line alone |
| A chat inside one page | A `div` where the chat should appear, plus the same line |

To test first, add `localhost` or an IP address under Domains. A subdomain pattern covers every subdomain of your shop.

## What visitors get

- **Answers day and night.** The AI agent replies from your knowledge base and website, in the visitor's language.
- **Buttons, lists and cards**, so visitors tap instead of type. A message carries up to ten buttons.
- **A person when it matters.** Requests for a person, refunds and payment disputes go to your team, who answer in the same chat.

## Know who is chatting

When your site signs a token for a signed-in customer, the chat knows who they are. Every other visitor stays anonymous. The secret for signing is shown once, so copy it when it appears.

## Limits to know

- No broadcasts: a visitor who closed the tab cannot be reached.
- Website chat does not report delivery or reads.
- Visitors cannot react to or edit messages.

## If the chat does not load

| What you see | What to do |
| --- | --- |
| "The chat did not load on your site" | Put the code before `</body>` and add the site under Domains |
| The bubble is missing on some pages | Paste the line on every page, or in the site-wide footer |
| "Website chat is already added on this brand" | Open the existing one from Channels and copy its line |

## Where to go next

The [Website chat connection page](/connections/website-chat) lists what the window does. To work the same chats from an AI app, [pick your AI app](/agents). For what the AI answers from, read [AI replies](/features/ai-reply-agent).

## Questions

### Where does the chat code go on my site?

Paste the one install line before the closing body tag on every page. Then add your website under Domains, or the window stays off.

### Why does the chat not show on my site?

Most often the website is missing under Domains. Add it there, check the line sits before the closing body tag, then run Check my install.

### Can I message a visitor after they leave?

No. A visitor who closed the tab cannot be reached, so website chat answers people while they are on your site.
