How to add a chatbot on Shopify
Create a no-code AI chatbot with our $0 plan (free forever).
Adding a chatbot is one of the easiest ways to help customers while they shop, whether it’s answering product questions, guiding their checkout process, or handling post-sale queries.
This article will walk you through creating your chatbot and integrating it to your Shopify store.
Step 1. Create your chatbot
Build your chatbot in just a few minutes by visiting our getting started guide.
Step 2. Copy your chatbot's embed code
Placing the chatbot to Shopify involves putting its embed code in your Shopify store's theme code.
To get started:
- From your ChatAgents dashboard, go to Agent Channels > Website.
- Toggle Enable Embed.
- Click Copy Code.
Now that you have your code, it's time to paste it on your Shopify theme.
Step 3: Log in to your Shopify Admin
-
Visit shopify.com and log into your Shopify admin panel
-
In the left-hand menu, click Online Store
-
Under Themes, click the three dots (⋯) next to your active theme
-
Select Edit code
Step 4: Paste your chatbot code
-
In the list of theme files, scroll down and find the theme.liquid file under the Layout folder
-
Click to open theme.liquid
Now look for the closing </body>
tag — usually near the bottom of the file.
-
Paste your ChatAgents embed code just before the
</body>
tag -
Click Save in the top-right corner
Your chatbot will now appear on every page of your Shopify store.
If you’re not sure where to get your chatbot embed code, go to your chatbot’s Settings in ChatAgents and copy the code from the Embed section.
Step 5: Preview your store
Once saved, open your Shopify storefront in a new tab. You should now see your chatbot widget appear — typically in the bottom right corner of the screen.
If the chatbot doesn't show up:
-
Double-check that you pasted the code before the closing
</body>
tag -
Make sure the chatbot is active in your ChatAgents dashboard
-
Confirm that Authorization for logged-in users is turned off (unless you're using a secure token)
Restrict access to logged-in users (optional)
Give your chatbot the ability to answer account-related concerns.
Visit the full guide here (for technical users).