Chat Widget Guide
Add a chat to your website with one line of code: match it to your brand, pick the AI agent that answers, see what visitors experience with their private sessions, and answer the chats from Conversations.
1. What is the Chat Widget?
The Chat Widget puts a chat button in the corner of your website. Visitors click it, type a question, and get an answer right away from your AI agent. Every chat lands in Conversations in tealsi, next to your WhatsApp, Instagram and Facebook messages, so your team can follow along and step in whenever a person is needed.
You set it up once: choose its colors and texts, pick the agent that answers, and paste one line of code into your website. The widget works on pages built with tealsi and on any other website where you can add code.
2. Before you start
- Your user has the Chat Widget permission.
- You have at least one active AI agent. The widget can only offer agents that are switched on (see the AI Agents guide).
- You can edit your website's code, or the "custom code" area of your website builder. For pages built in tealsi, you only need the website edit permission.
- Whoever will answer visitors has access to Conversations, including website conversations (your administrator grants this under Roles).
3. Where to find it
Open AI & Sites → Websites → Chat Widget. The Chat Widget Configuration page has three parts:
4. Add the widget to your website
Click the box under Embed Code; the code is copied and you'll see Copied. It is a single script line that points at your tealsi workspace. Then paste it on your website:
| Your website is… | Where to paste it |
|---|---|
| Built in tealsi (Websites) | On Web Pages, open Shared Assets → Scripts, click New, name it (for example chat-widget), paste the code, choose At the end of body and create it. Then tick it in the website folder's Folder Assets so every page gets the chat. See the Websites guide. |
| Your own HTML | Paste it just before the closing </body> tag on every page where the chat should appear. |
| A website builder (WordPress, Wix and similar) | Use its "custom code", "footer scripts" or "code injection" setting, so the code is added to all pages at once. |
The code loads in the background, so it does not slow your page down. If you used an older version of the snippet in the past, it keeps working.
5. Make it look like your brand
5.1 Appearance
| Field | What it changes |
|---|---|
| Header Title | The big text at the top of the open chat, for example Ask us! Required. |
| Header Subtitle | The small line under the title, for example We usually reply in seconds. Optional. |
| Button Text | The label on the floating button visitors click to open the chat. |
| Send Button Text | The label on the button that sends a message. |
| Primary Color | The main color of the button, header and send button. Pick it from the color square or type a code such as #667eea. |
| Secondary Color | An accent color. Optional. |
5.2 Dimensions & Position
Widget Width and Widget Height set the size of the open chat window. Write a number followed by px or %, for example 350px and 500px (the defaults). Widget Position places the button in the Bottom Right or Bottom Left corner — choose the one that doesn't cover anything important on your site, such as a cookie banner.
5.3 Messages
The Welcome Message is what visitors read before they write anything: use it to invite the first question, for example Hi! Ask us about prices, opening hours or bookings. The Input Placeholder is the hint inside the empty message box.
6. Behavior: who answers, and when it shows
| Setting | What it does |
|---|---|
| Assistant | The AI agent that answers visitors. Only active agents are listed. If you leave it empty, the first active agent answers. |
| Active | Shows or hides the widget on your website. Untick it to take the chat down for a while without removing the code. |
| Auto Open | Opens the chat window automatically when the page loads, instead of waiting for a click. Useful on a contact or booking page; on every page it can feel pushy. |
Click Save when you're done. Your website picks the changes up within a few minutes, as visitors' browsers refresh the widget settings.
7. What your visitors see
Visitors see a round button with your text in the corner you chose. Clicking it opens the chat with your header and welcome message. When they send a message, a small status appears under it:
| Status | Meaning |
|---|---|
| Sending… | On its way. |
| Sent | Safely received by your inbox in tealsi. The reply follows shortly. |
| Failed + Retry | Delivery could not be confirmed, for example because the connection dropped. Retrying never creates a duplicate: if the first attempt actually arrived, it is simply confirmed. |
7.1 Every visitor gets a private conversation
Each visitor's chat is tied to a secure session in their own browser, not to their internet connection. That means two people in the same office or on the same public Wi-Fi never see each other's messages, and replies only ever reach the visitor they are meant for.
- If the visitor reloads the page or comes back later on the same browser, their conversation is still there and continues where it left off. Each visit renews the session; after 30 days without visiting, the next visit simply starts a new conversation.
- On another browser or device, or after clearing their browser data, they start a new conversation.
- If the session stops being valid in the middle of a chat, the widget says so and asks them to reload.
8. Where the chats land
Website chats arrive in Conversations, marked with the Website channel. From the first message:
- A new lead is created for the visitor, with website as its source. Until you edit the contact, it is identified by the visitor's IP address, so rename it once you learn their name.
- Your administrators receive a new contact email.
- The AI agent answers, following the Website tab of Settings → Conversation Settings (AI replies on or off, response delay).
- The chat also appears, live, on the contact's page.
To answer yourself, open the conversation, click AI on in the chat header to stop the agent, and type your reply. It appears in the visitor's widget immediately. The Conversations guide explains the inbox in detail.
9. Common issues
| What happens | Cause | How to fix it |
|---|---|---|
| The button doesn't appear on my website. | Active is unticked, or the code is not on that page. | Tick Active and save. Check the code is pasted before </body> on that page (or, in tealsi, that the script is ticked in the folder's assets). |
| My new colors or texts don't show yet. | Browsers keep the widget settings for a few minutes. | Wait a few minutes and reload the page. |
| Visitors write but nobody answers. | The chosen agent is inactive, AI replies are off for the Website channel, or your AI credits ran out. | Check the agent's Active switch, the Website tab in Conversation Settings and the AI Credits ring. Meanwhile, reply from Conversations. |
| The Assistant list is empty. | No agent is active. | Create an agent, or switch one on, in AI Agents → Personality AI. |
| "Too many attempts. Wait a moment before retrying." | Many messages or new chats came from the same place in a short time; tealsi slows them down to block spam. | Wait a minute and try again. Normal visitors never reach this limit. |
| "Your session is no longer valid. Reload the chat to continue." | The visitor's session is no longer valid. | Reloading the page restores the session, or starts a fresh one if it has expired. |
| I can't reply to an old website conversation. | It is a historical conversation without a visitor session. | Working as intended. Contact the person another way, or wait for them to write again. |
| "Widget Width" or "Widget Height" won't save. | The value is not a number followed by px or %. | Write it like 350px or 90%, with no spaces. |