Skip to content

Website installation

Add an AI chatbot to Shopify

Add the Chatsy website widget to your site and train the agent from public content. This guide does not include a Shopify data connection or live order and customer data.

  • Use the site you already run

    Place the widget through the theme.liquid layout file of a duplicated Shopify theme without replacing the site's existing pages.

  • Keep content and records separate

    Public website pages can be added as knowledge sources, but the widget does not grant access to private platform records.

Scope

What this guide covers

This is a website installation path, not a native data connection.

Guide scope

  • Paste the Chatsy widget code into the theme.liquid layout file of a duplicated Shopify theme.
  • theme.liquid covers every page except checkout, so the widget does not appear in Shopify checkout.
  • Add public website pages as knowledge sources.
  • No direct access to Shopify accounts, orders, forms, or customer records.

Setup guide

Install the widget in Shopify

Follow the installation steps, then test the published widget.

Test before publishing

Check the widget on desktop and mobile, then verify the agent's sources and human handoff.

Open Readiness Quiz
  1. 01

    Prepare the agent and copy the code

    Add current public pages as sources and set up human handoff. Turn on Allow public chats, then copy the website script from the agent overview under Deploy, or from Settings → Sharing → Link and embed.

  2. 02

    Duplicate your live theme

    In Shopify admin, go to Online Store, open the actions menu for your current theme, and select Duplicate. Shopify names the copy Copy Of plus the theme name. Edit the copy, not the live theme.

  3. 03

    Add the script to theme.liquid

    On the copy, open the actions menu and select Edit code. Open theme.liquid in the layout folder, paste the Chatsy script just before the closing </body> tag, and save. theme.liquid is the default layout for every page except checkout.

  4. 04

    Preview, then publish the copy

    Preview the copy from its actions menu and check that the launcher appears on the home, product, collection, and cart pages on desktop and mobile. Then publish the copy from Draft themes.

  5. 05

    Roll back if you need to

    To remove the widget, publish your original theme again from Draft themes. Shopify moves the previously published theme there, so no theme changes are lost. The code editor's Timeline can also restore one file at a time.

Limits and fit

Where this setup can fail, and when another path fits better.

Common failure modes

  • Allow public chats is off, so the script returns not found and no launcher appears.
  • A site Content Security Policy blocks the script or the chat iframe from the Chatsy app domain.
  • The store already has 20 themes on a Basic, Grow, or Advanced plan, so Shopify will not create a duplicate until one is deleted.
  • A theme update removed the script from theme.liquid.

Not a fit for

  • Sites that do not allow custom code.
  • Teams looking for direct access to platform records through this setup.

FAQ

Common questions

No. This is a widget installation guide. Chatsy does not currently connect to the Shopify API through this setup.

No. The agent can answer from sources you add to Chatsy and can hand a conversation to your team. The embed code alone does not expose private platform data.

One script tag, such as <script src="https://chatsy.app/api/embed-script/YOUR_AGENT_ID"></script>. Copy the real tag from the agent overview under Deploy, or from Settings → Sharing → Link and embed. It loads only while Allow public chats is on.

The script runs once per page, so a second copy of the same tag is ignored. If two different agents' tags are on one page, only the first one loads. Remove the extra tag from page-level code or blocks.

The script loads from the Chatsy app domain and opens the chat in an iframe from the same domain. If your site sends a Content-Security-Policy header, allow that domain in script-src and frame-src, then reload and check the browser console.

Yes. A native Shopify connector is listed as planned in the Chatsy dashboard, with no release date. Until it ships there is no Shopify app, and the agent cannot read orders, customers, inventory, or the product catalog.

Not yet. The steps follow Shopify's documentation for duplicating, editing, previewing, and publishing themes. Check the launcher on the preview before you publish the copy.

No. theme.liquid is the layout for pages other than checkout, and checkout uses its own layout, so the launcher appears on storefront pages only.

It can. Shopify says code changes that are incompatible with a theme update are removed in the updated copy, so check theme.liquid after every theme update.

Ready to add Chatsy to Shopify?

Build the agent, add approved sources, then follow the installation steps above.