← Back to blog · How-to guide · 5 min read

How to Add an AI Chatbot to Shopify (No App, No Code Editing)

Train a chatbot on your products, shipping and return policies, and add a floating chat button to every page of your store in about 10 minutes, without installing a Shopify app.

RA
RagmyAI Team
Dec 4, 2026 · 5 min read
How to Add an AI Chatbot to Shopify (No App, No Code Editing)

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

  1. Build your chatbot. Open RagmyAI (the web app or the Android app), sign in and tap Build chatbot.
  2. 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.
  3. Set its personality. In Custom Instructions, describe its tone and the rules it always follows.
  4. Give it a short link. Tap Edit chatbot link and use your brand name, like chat.ragmyai.com/yourshop.
  5. 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)

  1. In your Shopify admin, go to Online Store and click Edit theme.
  2. In the left panel, find the Footer area and click Add section.
  3. Choose Custom Liquid, paste your script tag and click Save.
  4. 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

  1. Go to Online Store > Edit theme, click ⋯, then Edit code.
  2. 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>

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

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.

Add a chatbot to your Shopify store today.

Free plan, no credit card. Train it on your website and documents in minutes.

Start free

Keep reading

More from the blog.