> 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/e-commerce/bigcommerce/bigcommerce-embed-chat-bubble.md).

# Embed the chat bubble in BigCommerce

Embed the eesel AI chatbot on your BigCommerce storefront with Script Manager, without editing your theme.

The eesel [chat bubble](https://docs.eesel.ai/integrations/chat-surfaces/chat-bubble.md) puts your AI agent on every page of your BigCommerce storefront. It answers shoppers from your store and your connected knowledge. On BigCommerce the snippet goes into **Script Manager**, so you never edit your theme files.

{% hint style="info" %}
**Using Claude Code, Codex or Cursor?** Ask it to add the chat bubble to BigCommerce 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:** After selecting your workspace and connecting your store’s website content, run `npx @eesel/cli init chat-bubble --site https://your-store.com --json`. This also works for a new anonymous trial. Paste the returned `snippet` into Script Manager below. A BigCommerce admin must save the script and approve any store connection. Once the content is ready, test a product question on the storefront. You can also get the code from the dashboard.
{% endhint %}

## Before you begin

* Set up a chat bubble in eesel first. Use the CLI receipt above, or ask your agent in the dashboard chat for a chat bubble on your store, then open **Integrations > Chat Bubble** and click **Copy code**. See [Chat Bubble](https://docs.eesel.ai/integrations/chat-surfaces/chat-bubble.md).
* [Connect BigCommerce](https://docs.eesel.ai/integrations/e-commerce/bigcommerce.md), so the bubble can look up orders and products.
* You need a BigCommerce user who can open **Storefront > Script manager**.

## Add the snippet in Script Manager

{% stepper %}
{% step %}

### Open Script manager

In your BigCommerce control panel, open **Storefront** in the left sidebar and click **Script manager**.

<figure><img src="https://3732419023-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2xXO0947TYoPIhGoBgSE%2Fuploads%2Fgit-blob-683b896a1216ced02b14398a90186be7bfa0781d%2Fbigcommerce-script-manager-nav.png?alt=media" alt="The BigCommerce control panel with Storefront expanded and a callout on Script manager"><figcaption><p>Script manager, under Storefront.</p></figcaption></figure>

Click **Create a script**.

<figure><img src="https://3732419023-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2xXO0947TYoPIhGoBgSE%2Fuploads%2Fgit-blob-3246fa1880dec47c0b48e2305bc69ed23598b700%2Fbigcommerce-script-manager-create.png?alt=media" alt="The empty Script Manager page with a callout on the Create a script button"><figcaption><p>Script Manager, before any script is added.</p></figcaption></figure>
{% endstep %}

{% step %}

### Fill in the script settings

Name the script, for example "eesel chat bubble". Set **Placement** to **Footer** and **Location** to **Storefront pages**.

<figure><img src="https://3732419023-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2xXO0947TYoPIhGoBgSE%2Fuploads%2Fgit-blob-4c2f141262871058a586dab55bbfcd7aa7aef28a%2Fbigcommerce-script-settings.png?alt=media" alt="The Create script form with callouts on the script name, Placement set to Footer, and Location set to Storefront pages"><figcaption><p>The name, placement and location.</p></figcaption></figure>

Footer loads the bubble after the page itself, so it does not slow the store down. Storefront pages covers the shop. **Checkout** and **Order confirmation** are separate locations. Pick **All pages** instead if you want the bubble on those too.
{% endstep %}

{% step %}

### Paste the snippet and save

Scroll down. Set **Script type** to **Script**, and paste your eesel snippet into **Script contents**. Click **Save**.

<figure><img src="https://3732419023-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2xXO0947TYoPIhGoBgSE%2Fuploads%2Fgit-blob-d00cb4f5974ce952807ccbfd583a0f923d2a1f9a%2Fbigcommerce-script-contents.png?alt=media" alt="Further down the Create script form, with callouts to set Script type to Script, paste the eesel snippet into Script contents, and click Save"><figcaption><p>The script type and the pasted snippet.</p></figcaption></figure>

Paste the snippet you copied from eesel as it is. It already holds your own trigger id. The shape is below, with `YOUR_TRIGGER_ID` where your id sits:

```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>
```

{% hint style="info" %}
**Script category.** The form also asks for a **Script category**. Pick **Functional**, which BigCommerce describes as live chat. If your store shows a cookie consent banner, a shopper who declines Functional cookies does not see the bubble. That is the shopper's choice to make, so keep it on Functional rather than Essential: Essential is for scripts the store cannot work without, and it would load the bubble past a shopper who said no.
{% endhint %}
{% endstep %}

{% step %}

### Check it is installed

The script now shows under **Installed scripts**, with its location and placement. The bubble is live on your 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-dce42793e5a66c446210a12cc43233cc88b5a789%2Fbigcommerce-script-installed.png?alt=media" alt="Script Manager listing the eesel chat bubble script with Location Storefront pages, Placement Footer and Type User created"><figcaption><p>The installed script in Script Manager.</p></figcaption></figure>

**Check it worked.** Open your storefront and reload it. The bubble sits in the bottom corner. To remove it, open the **...** menu on the script row and delete it.
{% endstep %}
{% endstepper %}

## Troubleshooting

<details>

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

Check the script is listed in **Script manager**, and that its location covers the page you are on. Checkout and order confirmation pages need **All pages**. If your store has a cookie banner, check the shopper accepted the script's category. Then check the chat bubble automation is still on in eesel.

</details>

<details>

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

Saved chat bubble settings reach a live bubble in about 30 seconds. You never need to paste the snippet again.

</details>

## FAQ

<details>

<summary>Do I need to edit my BigCommerce theme to add the chat bubble?</summary>

No. Script Manager adds the snippet to every storefront page without touching your theme files, and it keeps working when you change or update your theme.

</details>

<details>

<summary>Can the chat bubble look up a shopper's BigCommerce order?</summary>

Yes, once BigCommerce is connected. Your agent looks the order up live by its number or the shopper's email.

</details>

## Related pages

* [BigCommerce](https://docs.eesel.ai/integrations/e-commerce/bigcommerce.md) for connecting your store, the handover to your team, and the full action list
* [Set up BigCommerce](https://docs.eesel.ai/integrations/e-commerce/bigcommerce/bigcommerce-setup.md) for the API account screens
* [Chat Bubble](https://docs.eesel.ai/integrations/chat-surfaces/chat-bubble.md) for every bubble setting
* [Actions and Approvals](https://docs.eesel.ai/instructions-and-memory/actions-and-approvals.md) for choosing what your agent may do


---

# 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/e-commerce/bigcommerce/bigcommerce-embed-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.
