> For the complete documentation index, see [llms.txt](https://docs.eesel.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.eesel.ai/integrations/chat-surfaces/chat-bubble.md).

# Chat Bubble

Add an AI chatbot to your website that answers visitors from your pages and help center, recommends products, and hands the conversation to a person.

eesel's chat bubble is a floating chat button on your website that answers visitors in real time from your own pages, help center and everything else you connect, and on a store recommends products and looks up orders.

{% hint style="info" %}
**Using Claude Code, Codex or Cursor?** Ask it to add the chat bubble to your site with [eesel CLI](https://docs.eesel.ai/apis-and-developer-resources/cli). Point it to the [setup guide](https://docs.eesel.ai/getting-started/set-up-from-a-coding-agent).

**Using Claude.ai or ChatGPT?** Use the eesel connector (MCP). See [Claude and other assistants](https://docs.eesel.ai/apis-and-developer-resources/use-eesel-from-claude-and-other-assistants.md) or [ChatGPT](https://docs.eesel.ai/apis-and-developer-resources/use-eesel-from-chatgpt.md). If the eesel connector is already linked to the correct workspace, keep using it. For steps it cannot complete, use the dashboard.

**CLI details for your coding tool:** For a new trial, run `npx @eesel/cli init chat-bubble --site https://your-site.com --json` without signing in. For an existing account, select the right workspace first. Install the returned `snippet`, wait for the site content to be available, then test an answer in the bubble. You can also follow the dashboard steps below.
{% endhint %}

## What your agent sees

When a visitor sends a message in the bubble, your agent has:

* **This chat, from the start.** Every message the visitor and the agent have sent in this conversation, and what was said on a voice call in it. Each chat is its own conversation. A visitor can reopen an earlier one from the bubble's home screen.
* **The page they are on.** Its address and title, and their last few clicks and choices on the page, such as opening the size chart or picking a size. On a store it also has the product and option they have open, and the lines and total in their cart. Nothing a visitor types into your own page is recorded.
* **Who they are, if your site says.** Details your site passes to the bubble, such as a signed-in customer's name or email (see [Open the bubble from your own code](#open-the-bubble-from-your-own-code)), and the email a visitor gives when **Ask for an email before chatting** is on. The agent treats these as unverified unless your site signs the email for it. To set up signed visitors, get in touch.
* **Files they send.** Screenshots, photos and PDFs a visitor attaches, when **Let visitors send files** is on. The agent reads them and can attach them to a helpdesk ticket.
* **This bubble's setup.** Whether it can open another live chat widget, and your **Instructions for this channel** on top of its main instructions.
* **Your knowledge.** Everything connected to the agent, searched when it needs it.

It does not have:

* **The visitor's orders or account on its own.** The bubble never passes a customer id from the browser. To look up an order, the agent uses your store integration with what the visitor tells it, such as an order number and email.
* **A proven identity.** Without a signed email from your site, the agent never knows for certain who it is talking to.

### Sources

The chat bubble has no sources of its own. It answers from every source connected to the agent: your website, help center, helpdesk, store, files and the rest. See [Integrations](https://docs.eesel.ai/integrations/overview.md).

## What it can do

### Triggers

| Trigger         | Fires when                                               | Key           |
| --------------- | -------------------------------------------------------- | ------------- |
| **Chat Bubble** | A visitor sends a message in the bubble, typed or spoken | `chat_bubble` |

Setting the bubble up creates this automation and switches it on. Your agent can also [message a shopper first](#let-the-agent-reach-out-first), using messages written from your instructions.

### Actions

| Action                          | What it does                                                                                                                                                                                                                                    |
| ------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **Reply to the visitor**        | Answers in the chat. The visitor sees the replies only. The agent's searching and working stay in **Activity** for your team                                                                                                                    |
| **Show products**               | With a store connected, shows the products it names as cards, compares them, and shows the visitor's cart. A visitor can add to the cart from the chat                                                                                          |
| **Suggest follow-up questions** | Offers two to four next questions as buttons, with **Proactive suggestions** on                                                                                                                                                                 |
| **Ask for feedback**            | Shows a thumbs up and down form when a chat wraps up, with **Collect feedback** on                                                                                                                                                              |
| **Ask for details**             | Shows a form for the visitor's details, with **Details form** on                                                                                                                                                                                |
| **Open your other live chat**   | Opens Zendesk Messenger or Freshchat with a summary of the chat, when **Hand over to another live chat widget** names one                                                                                                                       |
| **Use your other integrations** | Creates a helpdesk ticket, looks up an order, sends an email and the rest, through the actions you have switched on for those integrations. See [Actions and Approvals](https://docs.eesel.ai/instructions-and-memory/actions-and-approvals.md) |

## Add an AI chatbot to your website

{% stepper %}
{% step %}

### Ask your agent for a chat bubble

Open the chat in your dashboard and ask for a chat bubble on your site. Your agent reads your site's brand colour, then sets the bubble up with a title, a welcome message and three starter questions. It posts a preview link and points you at the settings page with the embed snippet. It tells you about anything it could not find, such as a logo image.

<figure><img src="https://3732419023-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2xXO0947TYoPIhGoBgSE%2Fuploads%2Fgit-blob-34ac2a2dd0e6b537f284756fe2f19881c416b4d1%2Fchat-bubble-setup-chat.png?alt=media" alt="The dashboard chat where the user asks for a chat bubble on their storefront, and the agent reports the brand colour it found, the title, welcome message and three starter questions it set, a preview link, and where the embed snippet lives"><figcaption><p>The agent reports the bubble it set up and the preview link.</p></figcaption></figure>

**Check it worked.** The left sidebar now lists **Chat Bubble** under Integrations. From a terminal, `eesel automations` lists it with its on or paused state.
{% endstep %}

{% step %}

### Check it on your Automations page

The chat bubble is its own automation, created and switched on when the bubble is set up. Your **Automations** page lists it under the bubble's name, so you can pause it without touching your site's code. You can also ask your agent to pause it, or pause it from a terminal, where `eesel automations` lists it with the command to pause it.

<figure><img src="https://3732419023-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2xXO0947TYoPIhGoBgSE%2Fuploads%2Fgit-blob-5f051752f40f0c5d9d786841ce7010f17b4b9cc7%2Fchat-bubble-automations-list.png?alt=media" alt="The Automations page in the eesel dashboard listing one Chat Bubble automation switched on, with the setup chat open in a panel beside it"><figcaption><p>The Chat Bubble automation on the Automations page, switched on.</p></figcaption></figure>

**Check it worked.** From a terminal, `eesel automations` lists the automation as on.
{% endstep %}

{% step %}

### Shape it in settings

Open **Integrations > Chat Bubble** in the left sidebar. **Open preview** and **Copy code** sit at the top right and follow you down the page. Every field is listed in [Chat Bubble settings](#chat-bubble-settings) below.

**Messages & content** comes first: the **Welcome Message**, the **Title** and the **Agent name**. Leave the name empty and replies are signed "AI Agent".

<figure><img src="https://3732419023-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2xXO0947TYoPIhGoBgSE%2Fuploads%2Fgit-blob-5787ce3fdaf31ed603fe6120af3bc08e81758c02%2Fchat-bubble-settings-top.png?alt=media" alt="The Chat Bubble settings page in the eesel dashboard, showing the Configuration heading, the Messages and content section with Welcome Message, Title and Agent name fields, and Open preview and Copy code buttons at the top right"><figcaption><p>The top of the settings page, with the Messages and content fields.</p></figcaption></figure>

Below that, add up to eight **Starter questions** and any **Home screen links**. Leave the questions empty and your agent suggests its own. A link shows once it has both a label and an address.

<figure><img src="https://3732419023-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2xXO0947TYoPIhGoBgSE%2Fuploads%2Fgit-blob-cb58e43c1c014232082587db008253e07ac9af2e%2Fchat-bubble-settings-starter-questions.png?alt=media" alt="The starter questions part of the settings page, with three question fields filled in, a Hide starter questions switch, and an empty Home screen links label and URL pair with an Add link button"><figcaption><p>Three starter questions, the switch that hides them, and the home screen links.</p></figcaption></figure>

In **Appearance**, upload a logo for the **Chat bubble image** or paste its address, then set the **Color** and **Bubble size**. A square image that fills its edges looks biggest.

<figure><img src="https://3732419023-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2xXO0947TYoPIhGoBgSE%2Fuploads%2Fgit-blob-fdb766a1c8e99de839cf962eefc90a587685528f%2Fchat-bubble-settings-appearance.png?alt=media" alt="The Appearance section of the settings page, showing an uploaded logo as the chat bubble image with its address below, a blue colour swatch, a Bubble size dropdown set to default, and a Hide branding switch"><figcaption><p>The Appearance section, with a logo, colour and size set.</p></figcaption></figure>

**Behavior** holds the switches for auto-translation, auto-open, proactive suggestions and feedback collection. It also holds **Instructions for this channel**. What you write there is added to your agent's main [instructions](https://docs.eesel.ai/instructions-and-memory/instructions-and-memory.md). Two things have no switch and are written there in plain words: [which pages the bubble shows on](#choose-which-pages-the-bubble-shows-on), and [whether the agent messages a shopper first](#let-the-agent-reach-out-first) on what they are doing on your store.

<figure><img src="https://3732419023-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2xXO0947TYoPIhGoBgSE%2Fuploads%2Fgit-blob-6b74d62c03f091db42c6c28296052b1e8ca797d8%2Fchat-bubble-settings-behavior.png?alt=media" alt="The Behavior section of the settings page with switches for Enable auto-translation, Auto-open the chat and Proactive suggestions turned off, Collect feedback turned on, and the Instructions for this channel text box below them"><figcaption><p>The Behavior section and the channel instructions box below it.</p></figcaption></figure>

**Install** holds your **Code snippet** with your own trigger id. **Save and copy code** at the bottom saves your changes and copies the snippet in one step.

<figure><img src="https://3732419023-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2xXO0947TYoPIhGoBgSE%2Fuploads%2Fgit-blob-ab8b8f726b2682f092b22de95beafcb19edb6454%2Fchat-bubble-settings-install.png?alt=media" alt="The bottom of the settings page showing the Hand over to another live chat widget provider dropdown reading Select a provider, and the Install section with the code snippet and a Copy code button"><figcaption><p>The handover provider dropdown and the Install section.</p></figcaption></figure>
{% endstep %}

{% step %}

### Add it to your site

Paste the snippet on the line before the closing `</body>` tag, on every page you want the bubble on. Not sure where that is on your platform? Ask your agent in the dashboard chat.

<figure><img src="https://3732419023-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2xXO0947TYoPIhGoBgSE%2Fuploads%2Fgit-blob-ee64f8a0caeb255c2a8cefb8fd710ff4ddb21e97%2Fchat-bubble-embed-chat.png?alt=media" alt="The dashboard chat where the user asks how to add the chat bubble to a Shopify store, and the agent answers with three numbered steps covering copying the snippet, opening the theme code editor, and pasting into theme.liquid"><figcaption><p>The agent's steps for adding the snippet to a store theme.</p></figcaption></figure>

In your store admin, open **Online Store > Themes**, then use the menu next to your live theme and pick **Edit code**.

<figure><img src="https://3732419023-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2xXO0947TYoPIhGoBgSE%2Fuploads%2Fgit-blob-52c2bf9343af9e34920676773ab25feb8f634f43%2Fchat-bubble-shopify-edit-code.png?alt=media" alt="The Shopify admin Themes page with the menu open next to the live theme, showing Preview, Rename, Duplicate, Edit code, Edit default theme content and Download theme file"><figcaption><p>The live theme's menu in the store admin.</p></figcaption></figure>

In the file tree, open **Layout > `theme.liquid`**, paste the snippet at the bottom before the closing `</body>` tag, then click **Save**. The bubble is live on the storefront from that save.

<figure><img src="https://3732419023-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2xXO0947TYoPIhGoBgSE%2Fuploads%2Fgit-blob-c71b3aa3ff0ce240a0eab26d101434a1f78e27e0%2Fchat-bubble-shopify-theme-liquid.png?alt=media" alt="The Shopify code editor with theme.liquid open, the eesel loader snippet pasted at the end of the file on the lines before the closing body tag"><figcaption><p>The snippet pasted into the theme layout file.</p></figcaption></figure>

Your own snippet, with your trigger id in it, is on the settings page. The shape is:

```html
<script>
(function(){
  var script = document.createElement('script');
  script.src = 'https://cdn.eesel.ai/loader.js';
  script.async = true;
  script.onload = function() {
    if (window.EeselWidgetWithTrigger) {
      window.EeselWidgetWithTrigger({ triggerId: 'YOUR_TRIGGER_ID' });
    } else {
      window.__EESEL_WIDGET_V2_CONFIG__ = { EESEL_TRIGGER_ID: 'YOUR_TRIGGER_ID' };
    }
  };
  document.head.appendChild(script);
})();
</script>
```

It is one script tag and works with any framework. The loader is async, so it does not hold up your page. It loads one small file from `cdn.eesel.ai` and reads nothing else from your site's code. Updates ship through it, so the snippet never changes.
{% endstep %}

{% step %}

### Try it as a visitor

Open your site and click the bubble. A fresh chat shows your welcome message, the agent name, your starter questions, and the disclaimer line under the input box.

<figure><img src="https://3732419023-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2xXO0947TYoPIhGoBgSE%2Fuploads%2Fgit-blob-04fce1aec695eab3894fd72cdb132cc2b225a34c%2Fchat-bubble-live-open.png?alt=media" alt="A storefront home page with the eesel chat bubble open on a fresh conversation, showing the welcome message, the agent name and time, three starter questions, the input box, the disclaimer line and a Powered by eesel line"><figcaption><p>The bubble open on the live site.</p></figcaption></figure>

Ask it a question. With [Shopify](https://docs.eesel.ai/integrations/e-commerce/shopify.md), [WooCommerce](https://docs.eesel.ai/integrations/e-commerce/woocommerce.md), [BigCommerce](https://docs.eesel.ai/integrations/e-commerce/bigcommerce.md) or [Magento](https://docs.eesel.ai/integrations/e-commerce/magento.md) connected, it shows the products it names as cards a visitor can scroll and click. A shopper can add products to the cart from the cards and see their cart in the chat. Each store's page says which themes and products support the cart.

<figure><img src="https://3732419023-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2xXO0947TYoPIhGoBgSE%2Fuploads%2Fgit-blob-1c59c7290e3982925544f150bb8755ad41c8d3b3%2Fshopify-bubble-carousel.png?alt=media" alt="The open chat bubble where a visitor asks for a product recommendation and the agent replies with advice naming two products, with the reply continuing below the fold"><figcaption><p>A shopper's question and the agent's reply.</p></figcaption></figure>

The expand icon at the top right opens the same conversation in full screen.

<figure><img src="https://3732419023-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2xXO0947TYoPIhGoBgSE%2Fuploads%2Fgit-blob-d258ea943a3280252f1d9151ace865b5d16bb4d7%2Fshopify-bubble-fullscreen.png?alt=media" alt="The same chat bubble conversation in full-screen mode, showing the full recommendation reply and a row of three product cards below it"><figcaption><p>The same conversation in full screen, with the product cards.</p></figcaption></figure>
{% endstep %}

{% step %}

### Hand a conversation to a person

There are two ways to get a person involved.

If your site already runs a second live chat widget, pick it in **Hand over to another live chat widget** in settings. Your agent opens that widget when a visitor needs a person. Zendesk Messenger appears once Zendesk is connected, and Freshchat once Freshdesk is connected. **Off** means no handover to another widget.

The second way needs no second widget. Tell your agent in the dashboard chat when to escalate, and what to do then. Creating a helpdesk ticket and sending an email are the usual choices. It writes the handover rules into its instructions and lists the steps back to you.

<figure><img src="https://3732419023-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2xXO0947TYoPIhGoBgSE%2Fuploads%2Fgit-blob-385e7e014571fd96bd656211259b70ad09e9c30d%2Fchat-bubble-handover-1.png?alt=media" alt="The dashboard chat where the user asks for a handover that creates a helpdesk ticket, and the agent reports that it read the current instructions, added the handover rules, and lists the five steps it will now follow"><figcaption><p>The agent lists the handover steps it added to its instructions.</p></figcaption></figure>

It links the instructions page and checks any detail it had to guess, such as the inbox address for new tickets.

<figure><img src="https://3732419023-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2xXO0947TYoPIhGoBgSE%2Fuploads%2Fgit-blob-8786e1f2b2d444f8b46f0e9bbe41d6160daa222d%2Fchat-bubble-handover-2.png?alt=media" alt="The same dashboard chat scrolled down, where the agent links the instructions page and asks the user to confirm the inbox address it used for new tickets, then answers a follow-up with the link again"><figcaption><p>The agent checking the inbox address and linking the instructions page.</p></figcaption></figure>

Open your **Instructions** page to read what it wrote. The rules are numbered sentences you can edit by hand.

<figure><img src="https://3732419023-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2xXO0947TYoPIhGoBgSE%2Fuploads%2Fgit-blob-786651d51a0d8dd12ed3e568721469d15d3e0fa9%2Fchat-bubble-handover-3.png?alt=media" alt="The Instructions page in the eesel dashboard showing a saved Chat bubble handover section with five numbered rules covering telling the customer, asking for name and email, creating the ticket, tagging it and confirming"><figcaption><p>The saved handover rules on the Instructions page.</p></figcaption></figure>

Now test it as a visitor and ask for a real person. Your agent says it will escalate, and asks for the name and email address it needs.

<figure><img src="https://3732419023-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2xXO0947TYoPIhGoBgSE%2Fuploads%2Fgit-blob-081c4990e1d9e73dc7741e4e0fd2cac046c2d728%2Fchat-bubble-handover-ask.png?alt=media" alt="The chat bubble on the live site where a visitor asks to talk to a real person about a damaged item, and the agent says it will escalate to the team and asks for a name and email address"><figcaption><p>The agent taking the escalation and asking for a name and email address.</p></figcaption></figure>

Give it the details. It creates the ticket, tags it, and tells the visitor the ticket number.

<figure><img src="https://3732419023-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2xXO0947TYoPIhGoBgSE%2Fuploads%2Fgit-blob-cb2fc2ecacd080376abd439bc344314976a62e58%2Fchat-bubble-handover-ticket-created.png?alt=media" alt="The same chat where the visitor gives a name and email address, and the agent confirms it created a ticket with its number and says the team will be in touch at that address"><figcaption><p>The agent confirming the ticket number to the visitor.</p></figcaption></figure>

Then open your helpdesk. The ticket is there under the visitor's email address. A conversation summary is the first message, and the handover tag is on the ticket.

<figure><img src="https://3732419023-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2xXO0947TYoPIhGoBgSE%2Fuploads%2Fgit-blob-be891ccbc7b3adc71c0e7a45082819f44d495b99%2Fchat-bubble-handover-gorgias.png?alt=media" alt="A Gorgias ticket opened from a chat bubble handover, showing the visitor&#x27;s email address as the requester, a summary of the conversation as the first message, and a handover tag in the ticket details panel"><figcaption><p>The handover ticket in the helpdesk, tagged.</p></figcaption></figure>
{% endstep %}
{% endstepper %}

## Chat Bubble settings

The bubble's settings are grouped the same way as on its settings page. Saved settings reach a live bubble in about 30 seconds.

### Label

| Setting  | What it does                                                                                  |
| -------- | --------------------------------------------------------------------------------------------- |
| **Name** | What you call this bubble in eesel, so you can tell several apart. It isn't shown in the chat |

### Messages & content

| Setting                                   | What it does                                                                                                |
| ----------------------------------------- | ----------------------------------------------------------------------------------------------------------- |
| **Welcome Message**                       | The first message a visitor reads when the chat opens                                                       |
| **Title**                                 | The heading at the top of the chat window                                                                   |
| **Agent name**                            | The name shown next to each reply. Empty means "AI Agent"                                                   |
| **Input Placeholder**                     | The grey hint text inside the message box                                                                   |
| **Disclaimer**                            | A small line under the message box, for saying replies come from an AI agent                                |
| **Starter question 1 to 8**               | Up to eight clickable questions shown when the chat opens. Leave them empty and your agent suggests its own |
| **Hide starter questions**                | Shows no starter questions at all                                                                           |
| **Start with a starter question**         | Keeps the message box closed until the visitor picks a question or opens the box                            |
| **Only allow starter questions to start** | Visitors must pick a starter question to begin. Needs the setting above on                                  |
| **Home screen links**                     | Up to three links on the home screen, such as one to your help center. Each opens in a new tab              |

### Appearance

| Setting               | What it does                                                                           |
| --------------------- | -------------------------------------------------------------------------------------- |
| **Chat bubble image** | The logo or avatar on the bubble. Upload one or paste its address                      |
| **Color**             | The colour of the send icon and the accents                                            |
| **Bubble size**       | Default adapts to the screen, or pick Small, Medium, Large or Custom (40 to 96 pixels) |
| **Hide branding**     | Removes the "Powered by eesel" line                                                    |

### Placement

| Setting                            | What it does                                                                                                                                                     |
| ---------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **Bubble position**                | Bottom right, bottom left, or bottom middle. Bottom middle shows an "Ask anything" bar instead of the round bubble, and opens the chat in its large centred view |
| **Side offset**, **Bottom offset** | Distance from the edge and the bottom of the page, in pixels. Raise the bottom offset to clear a cookie banner or a sticky footer                                |

### Behavior

| Setting                                          | What it does                                                                                                                                                                                                                                                                                                                                                  |
| ------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **Enable auto-translation**                      | Shows the bubble in the visitor's browser language: its own built-in labels, plus the welcome message, title, input placeholder and starter questions you wrote. See [What auto-translation covers](#what-auto-translation-covers)                                                                                                                            |
| **Auto-open the chat**                           | Opens the chat once per visit after a delay you set, from 1 to 300 seconds                                                                                                                                                                                                                                                                                    |
| **Proactive suggestions**                        | Offers two to four follow-up questions as buttons after each reply. Not the same as the agent [reaching out first](#let-the-agent-reach-out-first), which is written in the channel instructions rather than switched on here                                                                                                                                 |
| **Collect feedback**                             | Shows a thumbs up and down form when a conversation wraps up                                                                                                                                                                                                                                                                                                  |
| **Details form**                                 | Lets the agent show a form asking for the visitor's details. Say which details, and when, in **Instructions for this channel**                                                                                                                                                                                                                                |
| **Ask for an email before chatting**             | Visitors enter their email before they can send a message. The agent doesn't answer, and no credit is used, until they do. The email shows on the conversation in Activity                                                                                                                                                                                    |
| **Enable voice dictation and voice call**        | Adds dictation and voice calls to the message box. On by default. See [Let visitors talk to your agent](#let-visitors-talk-to-your-agent)                                                                                                                                                                                                                     |
| **Let visitors send files**                      | Adds an attach button for screenshots, photos and PDFs, up to 3 at a time (images up to 10 MB, PDFs and text files up to 3 MB), kept for 30 days. The agent reads them and can attach them to a helpdesk ticket. On by default                                                                                                                                |
| **Show recommended products on the home screen** | Shows products chosen from your store's sales data. On by default                                                                                                                                                                                                                                                                                             |
| **Instructions for this channel**                | Extra instructions your agent follows only in the bubble. They add to your agent's main [instructions](https://docs.eesel.ai/instructions-and-memory/instructions-and-memory.md). Also where you say [which pages the bubble shows on](#choose-which-pages-the-bubble-shows-on) and [when the agent messages a shopper first](#let-the-agent-reach-out-first) |
| **Hand over to another live chat widget**        | Opens a second live chat widget you already run, Zendesk Messenger or Freshchat, when a visitor asks for a person. Add a link to use if that widget isn't on the page                                                                                                                                                                                         |

### Install

| Setting          | What it does                                                       |
| ---------------- | ------------------------------------------------------------------ |
| **Code snippet** | The script to paste on your site, before the closing `</body>` tag |

To change the bubble from the terminal, use `eesel widget set chat_bubble` with the settings listed in `eesel widget --help`. Branding, handover routing, position and auto-open stay in the dashboard settings. Write handover rules through `eesel chat`, then test the handover in the bubble. See the [CLI reference](https://docs.eesel.ai/apis-and-developer-resources/cli).

### What auto-translation covers

When **Enable auto-translation** is on and the visitor's browser is set to a supported language, these follow the visitor's language automatically:

* The widget's built-in labels: "Home", "Messages", "Start a new chat", "Powered by eesel" and the like.
* Your own copy: the welcome message, the title, the input placeholder, and your starter questions.

If the visitor's browser is set to a language the widget doesn't support, the built-in labels show in English and so does your copy, unless the visitor's language is the one you wrote it in, when they see your words as typed.

These are **not** translated and stay exactly as written, so write them in the language you want shoppers to see:

* The disclaimer, the agent name, and your home-screen link labels.
* On a store widget, the cart and "View Product" stay in English ("Your cart", "Subtotal", "Checkout", and the "Added to cart" message). The "Add to Cart" label is not auto-translated either. On a Shopify store you can get it in another language by adding a line to your agent's instructions, like "label Add to Cart buttons as Añadir al carrito" (it shows on touch screens). On Magento, BigCommerce and WooCommerce it is fixed in English.

## Let visitors talk to your agent

Voice is on by default in the current chat bubble, which every new workspace has. Some older workspaces still have the earlier bubble, which has no voice and no voice setting.

Visitors can speak instead of type. Next to the attach button, the message box has a microphone to dictate and a phone to start a voice call.

* **Dictate.** The visitor holds the microphone, or taps it, and speaks. The words appear in the message box, and nothing is sent until they press send. Dictation uses the browser's own speech recognition, so the button only shows in browsers that have it.
* **Voice call.** The visitor talks with your agent out loud, in the same conversation as the chat. The call shows what each side says as it goes, with buttons to mute the microphone and end the call. It works in any modern browser, Firefox included.

<figure><img src="https://3732419023-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2xXO0947TYoPIhGoBgSE%2Fuploads%2Fgit-blob-e9b05793d48e67a86c32e17a13f5c97689e3186b%2Fchat-bubble-voice-call.png?alt=media" alt="The chat bubble&#x27;s message box with a microphone and a phone button next to send, and the Voice call tooltip over the phone"><figcaption><p>The microphone dictates and the phone button starts a voice call.</p></figcaption></figure>

A voice call is part of the chat, and a long call uses extra credits. Dictation uses no credits of its own: the message it types is part of the chat. See [Pricing](https://docs.eesel.ai/pricing/overview.md).

To turn both off, open the bubble's settings and switch off **Enable voice dictation and voice call** under **Behavior**. Voice is not available on HIPAA workspaces.

To have your agent answer a phone number instead, see [Phone calls](https://docs.eesel.ai/integrations/chat-surfaces/phone-calls.md).

## Expand the chat, and shop from it

A visitor can click **Expand chat** in the bubble's header to open the conversation as a large window in the middle of the page. **Collapse chat** or Esc takes it back to the corner. On a phone the chat always fills the screen.

On a store, two side panels open next to the conversation in the expanded window.

**Product details.** Clicking a product card in the chat, or a line in the cart, opens its images, options, price and description, with **Add to cart**, **Ask about it** and a **View on store** link. On Shopify it shows every image and option, with sold-out options crossed out. On other stores it shows what the card carries, and sizes and colours are picked on the store page.

<figure><img src="https://3732419023-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2xXO0947TYoPIhGoBgSE%2Fuploads%2Fgit-blob-8a0384578ed6038afe597327d6aedf73fee53f2b%2Fchat-bubble-expanded-product-details.png?alt=media" alt="The expanded chat bubble with a visitor asking whether a glove comes in medium, the agent answering from stock, and the Product details panel open beside it showing the glove&#x27;s photo, colour and size options, price, Ask about it and Add to cart"><figcaption><p>Product details opens beside the conversation, with sold-out options crossed out.</p></figcaption></figure>

**Your cart.** The cart icon in the header shows the visitor's real store cart, with a count of its items. They can change quantities and click **Checkout** to go to your store's checkout.

<figure><img src="https://3732419023-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2xXO0947TYoPIhGoBgSE%2Fuploads%2Fgit-blob-1fcf8a25d15c57c49677c680b2a0ac160824cd25%2Fchat-bubble-expanded-cart.png?alt=media" alt="The expanded chat bubble with a visitor asking what is in their cart, the agent listing the three items and the total, and the Your cart panel open beside it with quantity buttons, the subtotal and a Checkout button"><figcaption><p>The visitor's cart, with quantities they can change and a Checkout button.</p></figcaption></figure>

Add to cart and the cart panel work on Shopify, WooCommerce, BigCommerce (Stencil themes) and Magento (Luma theme). Opening a panel from the small bubble expands it first. Like voice, this comes with the current chat bubble.

## Choose which pages the bubble shows on

Paste the snippet on every page, then say where the bubble belongs in plain words, in **Instructions for this channel** on the bubble's settings, or in the agent's instructions naming the chat bubble. No code changes on your site.

* "Only show the chat bubble on product pages."
* "Never show the chat bubble on the home page or the cart."
* "Show the chat bubble only on /help/\* and product pages."
* **What eesel understands.** Store page types (home, product, collection, cart, checkout, search, blog) and URL paths, where `*` matches anything. If your store's page types aren't recognised, write a path instead: a path always works.
* **How rules combine.** "Never" wins over "only". With no rule, the bubble shows everywhere. A rule that would hide it on every page is ignored; to take it off your site, turn the channel off.
* **On a hidden page**, nothing opens the bubble, including auto-open, the agent's first message and `window.eesel.open()`.
* **Changes take about two minutes** to reach your site. The dashboard preview always shows the bubble.
* **Paths are public.** Any path you write becomes part of the bubble's public settings, like its colours. Your instructions themselves stay private.

## Let the agent reach out first

The agent can message a shopper before they ask, based on what they are doing on your store: the page they are on, the product and size they picked, what they clicked, and what is in their cart. Say when in **Instructions for this channel** on the bubble's settings (or in the agent's instructions, naming the chat bubble), with what to do: show a message, or open the chat.

> If someone has the same product in two sizes in their cart, or has been on a product page for over 30 seconds, proactively show a short message offering help with sizing.

> If someone clicks the size chart, proactively open the chat and offer to help them pick a size.

What the agent can do:

* **Show a message beside the closed chat button.** This is the default. A tap on it opens the chat with that message as the agent's first line.
* **Open the chat by itself** on that message, only when your instructions say to open it.

When you save, eesel reads those sentences once and writes the message for each situation you described. On your site it only decides which of those messages fits what the shopper is doing, or none, so the shopper always sees one of the messages written from your instructions, never anything else from them. When the shopper replies, the agent knows what it said and why. It reaches out at most once per visit. It does nothing while the chat is open, nothing on a page where your instructions hide the bubble, and nothing again once the shopper dismisses the message.

Only a request for the chat bubble to message visitors first turns this on. These do not: "never proactively offer the discount", "be proactive in recommending products", or "proactively follow up on unanswered emails". Agent instructions cover every channel, so a sentence there counts only when it names the chat bubble or website chat. A change to the instructions reaches your site within about a minute.

This needs the current chat bubble. It works on any site, but the product, size and cart details come from Shopify, WooCommerce, BigCommerce and Magento stores.

## Open the bubble from your own code

A developer can do the same from the page's own code once the snippet is on it. These calls are safe before the bubble has loaded: an early call takes effect as soon as it appears.

* `window.eesel.open()` opens the bubble. `window.eesel.close()` closes it.
* `window.eesel.open({ message: "..." })` opens it on a fresh chat that starts with your text as the agent's first line. The agent is told it said this.
* `window.eesel.showPreview("...")` shows your text beside the closed chat button. A tap opens the chat on it. The older bubble has no preview, so this does nothing there.
* `window.eesel.setContext({ name: "Jo", email: "jo@example.com", plan: "Pro" })` tells the agent about the visitor, for example a customer signed in to your site. Your agent reads each value under who it is talking to, as unverified.

```html
<script>
  // A click on your size chart button opens the chat on a sizing question.
  document.querySelector('.size-chart-button')?.addEventListener('click', () =>
    window.eesel?.open({ message: 'Not sure which size? Tell me your usual size and I can help you pick.' }));

  // The same product in two sizes in the cart (your cart code supplies the items).
  if (new Set(cartItems.map((i) => i.product_id)).size < cartItems.length) {
    window.eesel?.showPreview('Looks like you have two sizes in your cart - want help picking the right one?');
  }
</script>
```

The selector and the cart check are your site's. A developer wires them to your theme's own button and cart.

## Add it to other platforms

Every platform has a place for a script that runs on every page.

* **WordPress, Webflow, Squarespace.** The theme's footer, "custom code" or "scripts" setting.
* **BigCommerce.** Add it in **Storefront > Script manager**, with no theme edits. See [Embed the chat bubble in BigCommerce](https://docs.eesel.ai/integrations/e-commerce/bigcommerce/bigcommerce-embed-chat-bubble.md).
* **Docusaurus.** Paste it into `src/theme/Root.js`, or add it through the `headTags` option, so it renders on every page.
* **Magento.** The plain snippet never renders. Magento loads RequireJS, which sets `define.amd`, and the loader then takes the wrong path. Use the wrapper below, which clears `define.amd` while the loader runs and puts it back after. For the Magento Admin screens and the page cache step, see [Embed the chat bubble in Magento](https://docs.eesel.ai/integrations/e-commerce/magento/magento-embed-chat-bubble.md).

```html
<script>
(function(){
  var amd = window.define && window.define.amd;
  if (amd) { window.define.amd = null; }
  var script = document.createElement('script');
  script.src = 'https://cdn.eesel.ai/loader.js';
  script.async = true;
  script.onload = function() {
    if (amd) { window.define.amd = amd; }
    if (window.EeselWidgetWithTrigger) {
      window.EeselWidgetWithTrigger({ triggerId: 'YOUR_TRIGGER_ID' });
    } else {
      window.__EESEL_WIDGET_V2_CONFIG__ = { EESEL_TRIGGER_ID: 'YOUR_TRIGGER_ID' };
    }
  };
  document.head.appendChild(script);
})();
</script>
```

**Next.js (App Router).** In `app/layout.tsx`, render it once with `next/script` so it survives a client-side page change:

```tsx
import Script from 'next/script'

export default function RootLayout({ children }) {
  return (
    <html lang="en">
      <body>
        {children}
        <Script id="eesel-chat-bubble" strategy="lazyOnload">
          {`(function(){var s=document.createElement('script');s.src='https://cdn.eesel.ai/loader.js';s.async=true;s.onload=function(){if(window.EeselWidgetWithTrigger){window.EeselWidgetWithTrigger({triggerId:'${process.env.NEXT_PUBLIC_EESEL_TRIGGER_ID}'})}else{window.__EESEL_WIDGET_V2_CONFIG__={EESEL_TRIGGER_ID:'${process.env.NEXT_PUBLIC_EESEL_TRIGGER_ID}'}}};document.head.appendChild(s)})();`}
        </Script>
      </body>
    </html>
  )
}
```

With the trigger id in `NEXT_PUBLIC_EESEL_TRIGGER_ID`, preview and local builds can leave it unset and show no bubble. For a strict Content Security Policy, allow `https://cdn.eesel.ai` for scripts and connections.

**Two other ways to reach the same agent.** [Inline Embed](https://docs.eesel.ai/integrations/chat-surfaces/inline-chat.md) puts the chat inside a page rather than as a floating button. [Public Chat Link](https://docs.eesel.ai/integrations/chat-surfaces/public-chat.md) is a hosted link you can share. Both take `meta.`-prefixed query parameters, so you can pass who the visitor is.

## Things to know

* **Visitors cannot change your agent.** The bubble is a customer-facing chat, so it has no access to your instructions, settings or integrations, whatever a visitor asks.
* **Details your site passes are a claim, not proof.** Anyone can set them in a browser, so the agent uses them to personalise, not as who the visitor really is, unless your site signs the email.
* **Page details come from the visitor's browser.** The cart is read on Shopify, WooCommerce, BigCommerce and Magento, and the open product from the store or the page's product markup. On a site that is not a store, the agent sees the page address and title and what the visitor clicked.
* **Without a second widget, there is no live person in the chat.** The agent never offers to connect a visitor to someone unless **Hand over to another live chat widget** names Zendesk Messenger or Freshchat. Other handovers, like a helpdesk ticket, go in your instructions.
* **Your team can step in from Activity.** Under a visitor's conversation, a teammate can talk to the agent about it and ask it to send the visitor a message. What the teammate types stays with your team.
* **Voice, files, the cart panel and reaching out first need the current bubble.** Some older workspaces still have the earlier bubble without them.
* **Nothing typed in the bubble becomes knowledge.** It answers from the sources you connect.
* **On Magento the plain snippet does not render.** Use the wrapper in [Add it to other platforms](#add-it-to-other-platforms).
* **Settings changes take about 30 seconds** to reach a live bubble.

## Troubleshooting

<details>

<summary>The bubble does not appear on the site?</summary>

Check the snippet is on the page you are looking at, before the closing `</body>` tag, and that you saved the file or theme. For a strict Content Security Policy, allow `https://cdn.eesel.ai` for scripts and connections. On Magento, use the wrapper in **Add it to other platforms**. Then check the automation is still on.

</details>

<details>

<summary>A settings change is not showing on the site?</summary>

Save with **Save and copy code**, wait about 30 seconds and reload your site. **Open preview** always shows the saved settings, so use it to tell a settings problem apart from a caching one. You never need to paste the snippet again.

</details>

<details>

<summary>The handover provider list is empty, or stuck on Off?</summary>

Only providers you have a live connection to appear, so connect Zendesk Messenger or Freshchat first. If your site runs no second live chat widget, leave it **Off** and set the handover up through your agent's instructions.

</details>

<details>

<summary>It answers questions but will not talk about products or orders?</summary>

Connect your store, then check the actions on that integration. A look-up that is switched off cannot run. Your **Activity** page shows every bubble conversation and what your agent tried. See [Shopify](https://docs.eesel.ai/integrations/e-commerce/shopify.md) and [Actions and Approvals](https://docs.eesel.ai/instructions-and-memory/actions-and-approvals.md).

</details>

## FAQ

<details>

<summary>How do I add an AI chatbot to my website with eesel?</summary>

Ask your agent in the dashboard chat for a chat bubble, then paste the snippet it gives you before the closing `</body>` tag on your site. Your agent picks a title, welcome message and starter questions for you. The steps are in [Add an AI chatbot to your website](#add-an-ai-chatbot-to-your-website).

</details>

<details>

<summary>Does the eesel chat bubble work on Shopify, WordPress, Webflow or Magento?</summary>

Yes. The chat bubble is one script tag, so it works on any platform that lets you add a script to every page. On Shopify it goes in `theme.liquid`, on WordPress, Webflow and Squarespace in the footer or custom code setting, and Magento needs the wrapper shown in [Add it to other platforms](#add-it-to-other-platforms).

</details>

<details>

<summary>Can the eesel chat bubble hand a visitor to a real person?</summary>

Yes. It can open a second live chat widget you already run, Zendesk Messenger or Freshchat, or follow handover rules you give it, such as creating a helpdesk ticket with the visitor's name and email. A ticket handover uses the helpdesk's create ticket and add tags actions.

</details>

<details>

<summary>Do I have to turn an automation on for the eesel chat bubble?</summary>

No. Setting the bubble up creates its automation and switches it on. Your **Automations** page lists it, so you can pause it there without touching your site's code. You can also ask your agent to pause it, or do so yourself from a terminal.

</details>

<details>

<summary>Can I try the eesel chat bubble before it is on my site?</summary>

Yes. **Open preview** on the settings page opens the bubble on its own, and your agent posts the same link at setup. [Public Chat Link](https://docs.eesel.ai/integrations/chat-surfaces/public-chat.md) gives you a hosted page to share with a colleague.

</details>

<details>

<summary>Can the same eesel agent answer in the chat bubble and in my helpdesk?</summary>

Yes. One agent works in many places with one set of instructions. The bubble sits on your storefront while the same agent drafts replies in [Gorgias](https://docs.eesel.ai/integrations/helpdesks/gorgias.md) or [Zendesk](https://docs.eesel.ai/integrations/helpdesks/zendesk.md).

</details>

<details>

<summary>Can I use the eesel chat bubble on more than one website?</summary>

Yes. One agent can have a bubble for each site or brand. Each bubble has its own look, its own settings (channel instructions, handover, details form) and its own snippet with its own trigger id. Your agent's main instructions stay shared. One bubble's snippet also works on several sites, if they should share one look and one set of settings.

To add one, open **Integrations > Chat Bubble** and click **Add another** for a blank bubble, or **Duplicate** in a bubble's menu to copy its settings. You can also ask your agent, for example "give NutriChef its own bubble with this logo". Give each bubble a **Name** so you can tell them apart, then paste each bubble's own snippet on its own site. Give a site its own agent instead if it needs different knowledge or main instructions.

</details>

<details>

<summary>Where do I see chat bubble conversations and feedback?</summary>

Your **Activity** page lists every chat bubble conversation, with the thumbs up and down ratings when **Collect feedback** is on. Your [Reports](https://docs.eesel.ai/reports/reports.md) page rolls the same conversations up over time.

</details>

<details>

<summary>Can I set up the eesel chat bubble from Claude Code, ChatGPT or Claude?</summary>

Yes. From Claude Code, Codex, Cursor or a terminal, `npx @eesel/cli init chat-bubble --site https://your-site.com` sets the bubble up and prints the snippet. From Claude or ChatGPT you can talk to your eesel agent and ask it to change things. See [Set up from Claude Code or the terminal](https://docs.eesel.ai/getting-started/set-up-from-a-coding-agent.md), [Use eesel from Claude and other assistants](https://docs.eesel.ai/apis-and-developer-resources/use-eesel-from-claude-and-other-assistants.md), [Use eesel from ChatGPT](https://docs.eesel.ai/apis-and-developer-resources/use-eesel-from-chatgpt.md) and [Claude Code and MCP clients](https://docs.eesel.ai/apis-and-developer-resources/claude-code-and-mcp-clients.md).

</details>

## Related pages

* [E-commerce Sales Rep](https://docs.eesel.ai/use-cases/e-commerce-sales-rep.md) for the job your agent does for shoppers on your site
* [Helpdesk](https://docs.eesel.ai/use-cases/helpdesk.md) for the customer-facing work it picks up after a handover
* [Actions and Approvals](https://docs.eesel.ai/instructions-and-memory/actions-and-approvals.md) for choosing what your agent may do
* [Integrations overview](https://docs.eesel.ai/integrations/overview.md) for how sources, triggers and actions fit together
* [Set up from Claude Code or the terminal](https://docs.eesel.ai/getting-started/set-up-from-a-coding-agent.md)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.eesel.ai/integrations/chat-surfaces/chat-bubble.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
