Quick answer: in Online Store > Edit theme, add a Custom Liquid section in the Footer area and paste RagmyAI's script tag with defer. A floating chat button appears on every page, and voice works because Shopify stores always use https.
Step 1: Create and train your chatbot
- Build your chatbot. Open RagmyAI (the web app or the Android app), sign in and tap Build chatbot.
- Train it. Tap Train chatbot, then Website Link to learn from your site (your product and collection pages, plus the shipping, refund and FAQ pages). Use Upload Document for PDF, DOCX, TXT or HTML files, and Text Input for short facts like prices or opening hours.
- Set its personality. In Custom Instructions, describe its tone and the rules it always follows.
- Give it a short link. Tap Edit chatbot link and use your brand name, like
chat.ragmyai.com/yourshop. - Copy the code. On the Build chatbot screen, choose Script Tag for a floating chat button, or Iframe Tag for a chat panel on one page, then tap Copy embed code.
Step 2: Add it to Shopify (pick one)
Keep the word defer in the script tag. It keeps your store fast and avoids a warning in Shopify's code editor:
<script defer
data-page-id="yourshop"
src="https://chat.ragmyai.com/chat-widget.min.js">
</script>
Way 1: Custom Liquid section in the Footer (recommended, no code editing)
- In your Shopify admin, go to Online Store and click Edit theme.
- In the left panel, find the Footer area and click Add section.
- Choose Custom Liquid, paste your script tag and click Save.
- Open your store: the chat button appears on every page, including products, collections and cart.
The Footer area is shared by every page. A section added in the Template area shows on one page type only.
Way 2: Script tag in theme.liquid
- Go to Online Store > Edit theme, click ⋯, then Edit code.
- Open Layout > theme.liquid, find
</body>, paste your script tag on the line above it, and save.
Way 3: Iframe on one page (chat panel)
Good for a Contact or Help page. Use the Iframe Tag code:
<iframe
src="https://chat.ragmyai.com/yourshop"
allow="microphone"
width="100%"
height="600">
</iframe>
- Theme editor: pick the page template, then Add section > Custom Liquid in the Template area and paste the code.
- Page editor: in Online Store > Pages, open a page, click <> (Show HTML), paste the code and save. New pages are Hidden by default, so set Visibility to Visible.
Our recommended setup: Way 1 for the button on every page, plus Way 3 on your Contact page if you want the chat open there.
Good to know
- Check nothing overlaps. The chat button sits bottom-right. Make sure a cookie banner, a back-to-top button or an old chat app doesn't cover it.
- On phones, the button opens the chatbot full screen.
- Customize the button with optional attributes on the script tag, like
button-background-color="#1F4FD8". - Keep it up to date. When you add products or change a policy, retrain the matching page in RagmyAI.
FAQ
Do I need a Shopify app to add a chatbot?
No. Add a Custom Liquid section in your theme's Footer area and paste RagmyAI's script tag. No app and no code editing are needed.
Does voice work on Shopify?
Yes. Shopify stores always use https, so visitors can tap the mic in the chat window and talk to your chatbot.
Will the chatbot slow down my store?
Use the script tag with defer, which loads the chat button after your page, so your store stays fast.
Is it free?
Yes. Building your chatbot, training it and sharing its link are free on RagmyAI. Paid plans add more models and higher limits.
Using another website builder? See our guides for Google Sites, Wix and WordPress, or try a live chatbot demo first. For any other site, see all the ways to embed a chatbot in your website free.