Numbat has a free plan. Try it free, no card needed. Get started
All install guides

AI chatbot for Shopify: add Numbat to your store

Add Numbat to your Shopify store by pasting one line into your theme. It then answers shipping, returns and product questions from your own store pages, around the clock.

  • Takes about 5 minutes
  • A Shopify plan that lets you edit theme code
  • No coding needed

How to add Numbat to Shopify

<!-- Paste before </body> --> <script src="https://asknumbat.com/widget.js" data-agent="your-agent-id" async></script>

When you sign up, we send you this snippet with your own agent ID filled in.

  1. Back up your theme

    In your Shopify admin, go to Online Store > Themes. Next to your current theme, open the … menu and choose Duplicate, so you have a copy to go back to.

  2. Open the code editor

    On your current theme, open the … menu again and choose Edit code.

  3. Open theme.liquid

    In the Layout folder, click theme.liquid. This is the layout every page of your store uses, apart from checkout.

  4. Paste your code before </body>

    Search the file for </body> (Cmd+F on a Mac, Ctrl+F on Windows). Paste your Numbat snippet on the line just above it.

  5. Save and check

    Click Save. Then open your store in a private or incognito window. The Numbat chat button appears in the corner.

Before you start

  • Trial themes: if you’re trying out a paid theme, Shopify asks you to buy it before you can edit its code.
  • Starter plan: Shopify’s Starter plan has limited theme customisation, so check that Edit code is available on your plan.
  • Checkout: the chat won’t appear on checkout pages. That’s a Shopify rule, not a Numbat one.

Get your store ready for Numbat

Numbat answers from the pages it can read, so a few clear pages go a long way:

  • Shipping: delivery times and costs for each region, in business days.
  • Returns: your window, conditions and who pays postage.
  • FAQ: sizing, materials, stock, discount codes. See the 12 questions every online store should answer.

Then read Numbat for online stores for what it handles and what it always hands to your team.

Not showing up?

  • Check the right theme. Make sure you edited the theme that’s live, not a copy.
  • Look for the code. On your store, right-click and choose View page source, then search for widget.js.
  • After a theme update: paste the snippet into the new version’s theme.liquid again.

Still stuck? Email [email protected] with your store address.

Questions and answers

Is there a Numbat app in the Shopify App Store?

Numbat installs with one line of code in your theme rather than an app. It takes about five minutes, and the steps above work on any theme.

Can Numbat look up a customer's order?

Yes, with an action that calls an order-status endpoint you provide. Numbat also answers from your store's pages and policies, and anything that needs a person goes to your team with the full conversation. Our guide to cutting "Where is my order?" emails explains how to stop most of them.

Will the chat show on my checkout?

No. Shopify doesn't allow third-party code on checkout pages, so the chat appears everywhere else in your store.

What happens when I update my theme?

Shopify tries to copy your code edits to the new version. If it can't, the theme shows "code edits could not be included", and you'll need to paste the snippet again.

Put Numbat on your Shopify site.

Start free and we'll send your embed code.