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- 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.
- 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.
- 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.
- 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.
- 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.
Provider documentation
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
Ready to add Chatsy to Shopify?
Build the agent, add approved sources, then follow the installation steps above.