
Steps
How to add AssistBot to Shopify
It takes one snippet, pasted in layout/theme.liquid, just above </body>. You copy it from the Install page of your agent in the AssistBot dashboard.
<!-- AssistBot widget -->
<script>
(function () {
var s = document.createElement('script');
s.src = 'https://www.assistbot.app/widget/assistbot.js';
s.async = true;
s.onload = function () {
AssistBot.init({ agentId: 'YOUR_AGENT_ID' });
};
document.head.appendChild(s);
})();
</script>- 01
Create an agent and add your content
Sign up, create an agent and, under Knowledge, crawl your site and pick the pages it should answer from. Add PDF, DOCX or TXT files, pasted text or Q&A pairs for anything that is not on a page.
- 02
Copy the script tag
In the AssistBot dashboard, open the agent, go to Install and click Copy snippet. The snippet already contains your agent ID.
- 03
Open your theme code
In Shopify admin, go to Online Store > Themes. Next to your current theme, open the … menu and choose Edit code.
- 04
Paste the snippet before </body>
In the Layout folder, open theme.liquid. Paste the snippet on the line just above the closing </body> tag and click Save.
- 05
Check that it is working
Open your store in a new browser tab and look for the chat launcher in the bottom corner. Then go back to Install in AssistBot and click Check again: the status changes from Not detected to Installed and shows the site and when the widget was last seen.
Good to know
Before you start
- There is no AssistBot app in the Shopify App Store. The install is the script tag, added to your theme like any other script.
- Shopify checkout pages do not use your theme’s theme.liquid, so the widget does not show at checkout.
- The snippet lives in the theme. If you publish a different theme later, paste it into that theme’s theme.liquid too.
- AssistBot does not connect to your Shopify admin on its own. To answer "where is my order?", connect an endpoint that returns order status as a custom API action.
How to check it is working
The Install page in the dashboard checks whether the widget has loaded on a site in the last 7 days. After you publish, open your site once, then click Check again. It shows Installed, the domain and the time the widget was last seen. You can also send a test message from your own site and find it in the Inbox.
FAQ
Shopify questions
Is there an AssistBot Shopify app?
No. You add AssistBot to Shopify by pasting its script tag into your theme’s theme.liquid file. It learns your products and policies by reading the store pages you pick in the dashboard.
Can the Shopify chatbot answer "where is my order?"
Yes, if you connect your order data. Add a custom API action that takes an order number (and an email, if your endpoint needs one) and returns the status, and the agent calls it when a shopper asks. Without that, it answers from your shipping pages only.
Will the chatbot slow down my Shopify store?
The snippet loads the widget script asynchronously, so it does not hold up the page from rendering.
Does it work with any Shopify theme?
Yes. Every Shopify theme has a layout/theme.liquid file, and the snippet goes just above its closing </body> tag.
How do I know the chatbot is installed correctly?
Open your live site in a browser so the widget loads once, then open the agent’s Install page in AssistBot and click Check again. It shows Installed, the domain it was seen on, the time it was last seen and how many visitor sessions it counted in the last 7 days. If it still says Not detected, the snippet is not on the published page yet.
How do I remove it?
Open Edit code for your theme again, delete the AssistBot snippet from theme.liquid and click Save. The widget disappears on the next page load.
How much does it cost?
The free plan includes 150 AI replies a month for 1 agent, with no card needed. Startup is $24 a month for 5,000 messages and Growth is $49 a month for 20,000 messages. Installing on any platform is the same on every plan.
Read next
Read next
Guide
How to add an AI chatbot to any website
Train it, set handoff phrases and paste the script tag. The full setup, not just the install.
Use case
Ecommerce chatbot
How online stores use AssistBot for shipping, returns and order questions.
Add AssistBot to WordPress
Add the script tag with a header and footer code plugin or your theme footer. Works for WooCommerce.
Add AssistBot to Webflow
Paste the script tag into Footer code in Site settings and publish. Needs a paid site plan.
Put an AI chatbot on your Shopify site
The free plan includes 150 AI replies a month and 1 agent. No card needed.