Skip to content
ConvoRail - Conversational AI for Businesses
Setup Guides

How to Add a Chatbot to Your Shopify Store

You can add a website chatbot to a Shopify store by placing one script tag in your theme. Here is how to do it safely, what a chatbot can and cannot do for orders today, and what to teach it first.

Sakshi Sidana
Sakshi Sidana
Founder & CEO
November 8, 2026 7 min read
How to Add a Chatbot to Your Shopify Store

Online shoppers ask the same questions again and again: how long is delivery, what is the return policy, is this in stock, does it fit. A chatbot can answer many of these at any hour. Adding a chatbot to a Shopify store means placing one script tag in your theme so the widget appears on your storefront pages. This guide covers the steps, the safety checks and, importantly, what ConvoRail does and does not do for a shop today.

What Should You Know Before You Start?

ConvoRail is a website chatbot that answers from the knowledge you give it: your Q&A pairs and your website content. It installs with one script tag. It does not currently connect to your Shopify admin, so it cannot look up an individual customer's order, check live stock or change an order. Connecting to your own systems is on the roadmap as "Smart Actions" and is not live today.

That shapes what you teach it. It should answer policy and product questions from your published information, and hand order-specific questions to your team through the shared inbox.

How Do You Add the Script to a Shopify Theme?

  1. 1Copy your script tag from your ConvoRail account settings. It includes your API key, so copy it exactly.
  2. 2Duplicate your live theme first. In your Shopify admin, open the Online Store themes area and make a copy, so you can restore it if something goes wrong.
  3. 3Open the code editor for the copy and find the main theme layout file, usually called theme.liquid.
  4. 4Paste the tag just before the closing `</body>` tag, or in the head if you prefer.
  5. 5Save and preview the theme copy. Check that the launcher appears and works.
  6. 6Publish the copy when you are happy, or repeat the edit on the live theme.

Shopify changes its admin and themes over time, so menu names may differ from this description. Check Shopify's current help documentation if something looks different. Different themes also store layout code in different places.

Will the Widget Show on Checkout Pages?

Do not assume it will. Shopify controls checkout differently from your storefront, and what you can add there depends on your plan and Shopify's current rules. A script added to theme.liquid appears on storefront pages, such as the homepage, collections, product pages and your policy pages. Verify checkout behaviour in Shopify's documentation or with Shopify support if it matters to you.

What Should You Teach a Shopify Store Chatbot First?

TopicExample questionsChatbot or team
ShippingHow long is delivery? Do you ship internationally?Chatbot, from your shipping policy
Returns and refundsCan I return a sale item? How long do refunds take?Chatbot, from your published policy
Sizing and product detailsDoes it run small? What is it made of?Chatbot, from your product information
Payment and discountsDo you accept this payment method? Is there a first-order discount?Chatbot, if the offer is current
Order statusWhere is my order?Chatbot explains how to track, team handles specifics
Damaged or wrong itemMy item arrived broken.Team, via handoff

For detailed question lists, read what an online store chatbot should answer and how to write return and refund policy answers. For delivery wording, see shipping and delivery questions.

How Should the Chatbot Handle "Where Is My Order?"

Because ConvoRail cannot look up orders today, write an answer that helps without pretending to. Explain where tracking information is sent, how long delivery usually takes, and what to do if it has not arrived by then. Then offer the in-chat contact form so your team can check the specific order. The visitor's name, email and phone arrive attached to the conversation in your shared inbox.

Pro Tip: Never let a chatbot guess an order status. A wrong delivery promise causes more complaints than a polite handoff does.

How Do You Test It Before Customers See It?

  1. 1Preview the theme copy on desktop and on a phone.
  2. 2Ask your shipping, returns and sizing questions in your own words.
  3. 3Ask a question you did not write an answer for and confirm the bot declines to guess.
  4. 4Ask for a person and check that a teammate can reply from the inbox.
  5. 5Test a product page, a collection page and your policy pages.

Use the pre-launch testing checklist for a complete run-through, and check page speed before and after using this measurement guide.

What Can Go Wrong After a Theme Change?

Switching or updating a theme can remove code you added to theme.liquid. After any theme change, check that the widget still appears. Keep a note of where you placed the script tag so you can re-add it quickly. Seasonal sales also change policies and delivery cut-offs, so use the seasonal update checklist to keep answers current.

What Do Good Answers for a Shopify Store Look Like?

These are generic examples to adapt, not real policies.

  • Shipping: "We ship within 2 working days. Standard delivery then takes about 3 to 5 working days. Free shipping applies above the amount shown at checkout."
  • Returns: "You can return unworn items within 30 days with proof of purchase. Start a return from the Returns page and we will send the next steps."
  • Sizing: "Our sizing chart is on each product page. If you are between sizes, we suggest the larger one. Leave your email if you would like a person to advise."
  • Order status: "You will receive a tracking email when your order ships. If it has not arrived by the end of the estimated window, leave your name and email and our team will check."

Check every number against your own store settings before you publish. For a fuller question list, see what an online store chatbot should answer.

What Should You Watch in the First 30 Days?

  • Unanswered questions: add answers for any question that repeats.
  • Handoffs: note how many conversations need your team and how quickly you reply.
  • Ratings: read low-rated conversations and fix the answer behind each one.
  • Message usage: compare it to your plan's monthly allowance so you can plan an upgrade before you reach the limit.

Conclusion

To add a chatbot to a Shopify store, duplicate your theme, paste the ConvoRail script tag before the closing body tag in theme.liquid, preview it and publish. Teach it your shipping, returns and product answers, hand order-specific questions to your team, and re-check the widget after any theme change. ConvoRail does not connect to Shopify orders today.

Key takeaways

  • A Shopify chatbot installs by adding one script tag to your theme, usually in theme.liquid.
  • Duplicate your theme first so you can restore it if needed.
  • ConvoRail does not currently connect to Shopify orders or stock; connecting to your systems is on the roadmap.
  • Teach shipping, returns, product and payment answers, and hand order-specific questions to your team.
  • Re-check the widget after theme changes and verify checkout behaviour in Shopify's documentation.

Quick Summary

Adding a chatbot to a Shopify store means copying your ConvoRail script tag into your theme, usually before the closing body tag in theme.liquid, after duplicating the theme as a backup. The widget then answers shipping, returns, product and payment questions from the knowledge you provide. ConvoRail does not currently connect to Shopify orders or stock, so order-specific questions go to your team through the shared inbox, and the widget should be re-checked after any theme change.

Want to see grounded answers on your own site?

Start free, add your Q&A pairs and paste one script tag. No credit card required.

Start free
TagsShopify chatbotadd chatbot to Shopifytheme.liquid scriptecommerce chatbot setuponline store chatbot

Share this article

Sakshi Sidana
Sakshi Sidana

Founder & CEO

Writes about grounded AI chatbots for websites: how they work, how to measure them and what to check before you buy.

Topics

AI ReliabilityData & BenchmarksSetup GuidesComparisonsBuying GuidesAI TrendsProduct GuidesCustomer SupportIndustry GuidesAI Search

Get new posts by email

Guides on AI chatbots for websites, straight to your inbox.

FAQ

Frequently asked questions

About: How to Add a Chatbot to Your Shopify Store

How do I add a chatbot to my Shopify store?

Copy your script tag, duplicate your theme, paste the tag before the closing body tag in the theme layout file, preview the copy and then publish it. Shopify's admin changes over time, so check its current help pages.

Can ConvoRail check my Shopify orders?

Not today. ConvoRail answers from your Q&A pairs and website content and does not connect to Shopify orders or live stock. Order-specific questions go to your team through the shared inbox.

Will the chatbot appear on Shopify checkout pages?

Do not assume so. Shopify controls checkout differently from storefront pages, so verify in Shopify's documentation what is allowed on your plan.

What should a Shopify chatbot answer first?

Shipping times and costs, returns and refunds, product details and sizing, payment methods and current offers, plus how customers can track an order.

Why did my chatbot disappear after a theme update?

A theme change can remove code you added to the theme layout. Re-add the script tag and keep a note of where it goes.

What is ConvoRail?

ConvoRail is an AI chatbot platform for websites. It answers visitor questions using only the knowledge you give it, such as your Q&A pairs and website content, and hands the conversation to your team when it isn't sure.

How does ConvoRail avoid wrong or made-up answers?

It only answers when your knowledge base has a close match. If nothing matches, it says it doesn't have confirmed information, offers a contact form and flags your team instead of guessing.

Questions?

Want to talk about this?

Tell us about your site and what your customers ask. A real person replies.

By sending this you agree that we may contact you about your request. We never share your details.

See a chatbot that says it doesn't know.

Try the live demo, or start with your own Q&A pairs, free with no credit card.