# Chatbot for your website: how to add the AI assistant widget

How to turn on a bot chat in the corner of your website, paste one line of code, and set the color, greeting and the list of sites where it works.

Updated: November 5, 2026 · https://onswer.ai/docs/en/channels/website-widget · Onswer

The website chat is a small window in the corner of a page. The visitor writes there, and the same bot answers as in WhatsApp: with the same prices, instructions and knowledge base.

## How to connect

1. Open the bot → "Connection" → the "Website" card and turn the chat on.
2. Press "Copy code". It is a single line with a script.
3. Paste the code into your site before the closing `</body>` tag. In site builders (Tilda, WordPress and others) this is the "Custom code" or "HTML embed" field for all pages.
4. Reload the site. The chat button appears in the corner.

## Look and feel

Press "Settings" in the card:

- **Greeting:** the first phrase, for example "Hello! How can I help?";
- **Color** of the button;
- **Button position:** right or left;
- **Language** of the window: Russian, Kazakh or English;
- **Sites where it works:** one address per line, for example `shop.kz`. If left empty, the widget works on any site. It is better to list your own so other sites cannot spend your limit.

## Good to know

- Messages from the website chat appear in "Messages" as a separate "Web chat" channel.
- Analytics shows which pages and ad tags (UTM) visitors came from.
- The bot's answers in the website chat count toward the [message limit](/docs/en/billing/limits-packs) just like in messengers.
- You can turn the chat off with the "Turn off" button in the same card.
