How to add an AI chatbot to a Shopify store
To add SLAtech AI to a Shopify store, paste two lines of code into your theme's theme.liquid file just before the closing body tag. No app is needed. Optional Shopify webhooks then tell the assistant when a product or page changes, so its answers follow your catalogue.
First, copy the code
In the SLAtech AI admin panel, open your site, go to the widget settings, the Embed code tab, and click Copy code. It is two lines: a div carrying your site's widget key, and a script tag that loads embed.js. Copy both together. The key is meant to be visible in the page source: it can ask questions, not change your knowledge base.
Where the code goes in Shopify
In the Shopify admin open Online Store, click the ... menu next to your theme and choose Edit code. Shopify recommends duplicating the theme first, as a backup. Open layout/theme.liquid - the layout every page of the store uses - paste both lines just before </body>, and save.
Keeping answers current
The assistant reads your store like any website. To have it follow the catalogue as it changes, create Shopify webhooks for products and pages to the address shown in your site's advanced settings: each product change re-reads that product's page, and a deleted product leaves the assistant's knowledge. If you list Allowed origins, include both your own domain and yourstore.myshopify.com if you test there.
Check that it works
Open the live site in a private window. The chat button appears in the corner; ask a question your site answers. The conversation shows up in the admin panel. If the button does not appear: check that the page is published, that both lines were pasted together, and - if you filled in Allowed origins in the site's advanced settings - that every address the site opens on is listed, with and without www, plus the platform's own address if you test there. An empty field allows any.
Frequently asked questions
Do I need a developer to add a chatbot to Shopify?
No. Copy two lines from the admin panel and paste them where this page shows. Everything else - colour, welcome message, language - is set in the admin panel without touching the code again.
Do I need to install a Shopify app?
No. Two lines in theme.liquid put the assistant on the store, and standard Shopify webhooks keep it up to date. Every webhook is checked against your signing secret.
How much does it cost?
There is a free plan with no credit card, and paid plans start at $49 a month. The current limits of each plan are on the pricing page.
Get in touch
Leave your details and we will reply. You do not need a sales call to get an answer.
Other questions
-
How to add an AI chatbot to a Squarespace site
Read the answer -
How to add an AI chatbot to a Tilda site
Read the answer -
How to add an AI chatbot to a Webflow site
Read the answer -
How to add an AI chatbot to any website
Read the answer -
How to add an AI chatbot to a Wix site
Read the answer -
How to add an AI chatbot to a WordPress site
Read the answer -
AI for a small business: the three places it actually pays
Read the answer -
A Chatbase alternative for websites in Hebrew
Read the answer -
Customer service automation: what to automate, and what to leave alone
Read the answer -
An AI chatbot for your website that answers in Hebrew, right to left
Read the answer -
An AI chatbot for a medical clinic website in Israel
Read the answer -
An AI chatbot for a website in Hebrew, Russian and English
Read the answer -
RAG vs fine-tuning: which one your use case actually needs
Read the answer -
An AI chatbot for your website that answers your customers in Russian
Read the answer -
Find the questions your website does not answer
Read the answer -
A virtual assistant for your website, trained on your own content
Read the answer