How to add an AI chatbot to Shopify (3 ways)

How to add an AI chatbot to Shopify in three ways: Shopify Inbox, a Shopify App Store app embed, or a custom script in theme.liquid, plus mobile testing.

By Matt · · 7 min read

How to add a chatbot to Shopify

  1. Pick your chatbot path: Shopify Inbox (free built-in), a Shopify App Store chat app, or a hosted custom AI chatbot script.
  2. Install the app or duplicate your theme. If using an app, click Install from the Shopify App Store. If pasting a custom script, duplicate your live theme first as a backup.
  3. Switch it on in your theme. For apps, open Online Store > Themes > Customize > App embeds and toggle the chatbot on. For a custom script, paste the snippet before </body> in layout/theme.liquid and click Save.
  4. Connect your catalogue, policies, and hand-over email. Sync products, shipping rules, returns policies, and where complex chats should go.
  5. Turn off any old chat widget so shoppers never see two overlapping chat icons.
  6. Test it on a real phone against sold-out sizes, shipping rules, and your Add to Cart button.
  7. Done! Your AI chatbot is live on your Shopify store.
Online store owner in a linen shirt setting up Shopify chat on a laptop at a timber packing bench surrounded by shipping boxes
Switching the widget on takes five minutes. Making sure it reads live stock and stays out of the way on mobile is what counts.

Adding an AI chatbot to Shopify takes less than ten minutes technically, whether you use Shopify’s own free app, a third-party app from the Shopify App Store, or a one-line custom script. The catch is that most setup tutorials stop the second the chat bubble appears in the bottom corner.

A chat bubble that covers your Add to Cart button on an iPhone, recommends a sold-out size, or sits on top of an old Shopify Inbox icon hurts conversions instead of helping them. In our Matey Store Chat Audit (November 2026) of 4,842 online stores across five countries, 65.6% of real shopper chats arrived on mobile and 58.6% arrived outside business hours, which means your mobile layout and after-hours accuracy matter more than anything else.

If you are still deciding which platform to choose, start with our full comparison of Shopify AI chatbot options. Once you know what you are installing, here are the exact steps for all three ways to add an AI chatbot to Shopify, plus how to verify it before shoppers see it.

3 ways to add an AI chatbot to Shopify

The three ways to add an AI chatbot to Shopify are enabling Shopify Inbox, installing a third-party app via Shopify App Embeds, or pasting a hosted script tag into theme.liquid. Each path fits a different level of control and customisation.

MethodTime to installTouches theme code?Best for
Shopify Inbox5 minutesNo (App Embed)Free built-in chat for simple FAQs and basic order lookups
Shopify App Store app10 to 30 minutesNo (App Embed)Self-serve DIY chat apps and helpdesk widgets
Custom script in theme.liquid5 minutesYes (1 line before </body>)Custom AI chatbots built on your full catalogue and rules

Way 1: How to add Shopify Inbox (free built-in chat)

To add Shopify’s built-in AI chatbot, install the free Shopify Inbox app from the Shopify App Store, switch on the Online Store Chat app embed in your theme editor, and enable instant answers in your Inbox settings.

Shopify Inbox is included free on Shopify’s Basic, Grow, Advanced, and Plus plans, and connects automatically to your store’s products and policy pages (Shopify Help Center).

  1. Install Shopify Inbox. Open the Shopify App Store, search for Shopify Inbox, and click Install.
  2. Open your theme customiser. In your Shopify admin, go to Online Store > Themes, then click Customize on your active theme.
  3. Enable the App Embed. Click the App embeds icon in the left sidebar, find Shopify Inbox, and toggle it On.
  4. Adjust placement and colour. Click the arrow beside Shopify Inbox to match your brand colour, pick left or right corner placement, and choose your greeting text.
  5. Click Save in the top-right corner of the theme editor.
  6. Turn on instant answers. Open Sales channels > Inbox > Chat settings in your Shopify admin, add your common FAQs, and enable automated responses.
  7. Done! Shopify Inbox is live on your storefront.

Shopify Inbox is the fastest free way to get started, though it offers limited control over nuanced sizing advice, multi-product bundles, or custom sales logic. If you outgrow it later, we have a separate guide on how to turn off Shopify Inbox cleanly without losing your chat history.

Way 2: How to add an AI chatbot from the Shopify App Store

To add a third-party AI chatbot app to Shopify, install the app from the Shopify App Store, connect your product catalogue and policy pages inside the app’s dashboard, and turn on its App Embed block in your Shopify theme editor.

Modern Shopify Online Store 2.0 themes use App Embeds, which means you do not have to edit Liquid code manually and removing the app leaves no stray script tags behind (Shopify Help Center).

  1. Install the app. Find your chosen chatbot app in the Shopify App Store, click Install, and approve the requested store permissions (typically read access for products, orders, and storefront pages).
  2. Sync your store data. Inside the app’s onboarding screen, connect your Shopify catalogue, shipping page, returns policy, and FAQ pages.
  3. Set escalation rules. Enter your support email address or connect your helpdesk so chats that need a human do not dead-end.
  4. Activate the App Embed. Go to Online Store > Themes > Customize, click App embeds on the left, and switch the chatbot’s embed toggle On.
  5. Click Save and preview your storefront in an incognito window.
  6. Done! Your third-party Shopify chatbot is live.

Check how the app bills before turning it on for high-traffic sales periods. Many App Store chatbots charge per AI conversation or resolution in US dollars, so a Black Friday or holiday spike can multiply your monthly bill. You can model peak-month costs across major platforms in our chatbot cost calculator.

Way 3: How to add a custom chatbot script to Shopify

To add a custom AI chatbot to Shopify, duplicate your live theme as a backup, open layout/theme.liquid in the Shopify code editor, paste your asynchronous embed script directly above the closing </body> tag, and save.

This is the cleanest route for a bespoke or hosted AI chatbot that is not packaged as a public App Store listing, and it works on every Shopify theme (Shopify Help Center). It's how every chatbot from our AI chatbot development for Australian stores goes live.

  1. Duplicate your live theme first. Go to Online Store > Themes, click the ... menu beside your current theme, and click Duplicate. That gives you a one-click rollback if anything looks off.
  2. Open the code editor. Click the ... menu beside your active theme and select Edit code.
  3. Open layout/theme.liquid. Look under the Layout folder in the left sidebar and click theme.liquid.
  4. Scroll to the bottom and locate the closing </body> tag.
  5. Paste the script tag directly above </body>. Confirm the snippet uses async or defer so it loads without blocking your product images or Add to Cart button.
<!-- Custom AI chatbot embed -->
<script src="https://your-chatbot-host.example/widget.js" async></script>
</body>
  1. Click Save in the top-right corner.
  2. Open your live store on desktop and mobile to confirm the widget loads cleanly.
  3. Done! Your custom chatbot script is installed across your store.

With Matey, you do not have to edit theme.liquid yourself unless you prefer to. We handle the installation free on your Shopify store, connect it to your nightly catalogue and live stock levels, and can hand complex chats straight into your existing Shopify Inbox or support email.

Retail store owner holding a smartphone and a pen beside a timber counter with folded apparel, testing her Shopify store chat on mobile
Always test the chat bubble on a real phone next to your Add to Cart and express checkout buttons.

How to check your Shopify chatbot before shoppers see it

To verify a new Shopify chatbot before sending traffic to it, remove any old chat bubble, test mobile button overlap, check page load speed, and run 20 real customer questions against your live website.

Do not skip these five post-install checks:

  • Remove duplicate chat bubbles: If you switched from Shopify Inbox or another app, confirm the old App Embed is toggled Off in Customize > App embeds. Two stacked widgets on a phone screen look broken immediately.
  • Check mobile thumb zones: Open a product page, the cart drawer, and a collection page on both iPhone and Android. Confirm the chat icon never covers sticky Add to Cart, Shop Pay, Apple Pay, or cookie banners.
  • Test sold-out variants and live stock: Ask the chatbot for a specific product in a size or colour that is currently out of stock. Many DIY apps read static page text and recommend sold-out items anyway.
  • Run the Matey break-it test: Ask 20 real questions covering sizing, shipping zones, returns fine print, fake discount codes, and requesting a human. Our full checklist in how to test a chatbot gives you all 20 prompts.
  • Test human hand-over after hours: Send a complex order complaint and verify where the notification lands (your inbox, Shopify Inbox, or helpdesk) and how fast a shopper gets a clear expectation on reply times.

Want your Shopify store chat built and installed for you?

If you would rather skip configuring apps, editing theme.liquid, and spending weekends fixing wrong product answers, send us your Shopify store URL. We build a working custom AI chatbot on your real catalogue, stock, and policies, usually within 24 hours, with free installation and a 14-day free trial.

FAQs

How do I add an AI chatbot to my Shopify store?

There are three ways to add an AI chatbot to Shopify: switch on Shopify’s free built-in Shopify Inbox app, install a third-party chat app from the Shopify App Store and toggle on its App Embed in your theme editor, or paste a custom chatbot script tag into layout/theme.liquid right before the closing body tag.

Does Shopify have a free built-in AI chatbot?

Yes. Shopify Inbox is free on Shopify’s Basic, Grow, Advanced, and Plus plans and includes Shopify’s built-in AI agent, which reads your store’s products, pages, and policies. It is a good starting point, though it gives you limited control over sizing advice, product recommendations, and custom sales rules.

Where do I paste a custom chatbot code snippet in Shopify?

In your Shopify admin, go to Online Store, then Themes, click the three dots beside your live theme, choose Duplicate to back it up, then open Edit code. Open layout/theme.liquid, paste your chatbot’s script tag directly above the closing </body> tag, and click Save.

Will adding a chatbot slow down my Shopify store?

A well-built Shopify chatbot loads asynchronously after your main page content renders, so it has minimal impact on page speed. Heavy chat widgets that load large scripts synchronously can hurt mobile load times, so always test your live product page on a phone after installing.

How do I avoid having two chat bubbles on my Shopify store?

Before switching on a new AI chatbot, turn off Shopify Inbox or any older chat app in Online Store, Themes, Customize, App embeds. Leaving two chat embeds active stacks two icons on top of each other on mobile screens.

What should I test after adding a chatbot to Shopify?

Test it on a real phone first to confirm the chat icon does not cover your sticky Add to Cart or express checkout buttons, then ask 15 to 20 real shopper questions covering sold-out sizes, shipping costs, returns, and speaking to a human.