Skip to main content
How to Add an AI Chatbot to Your Shopify Store

How to Add an AI Chatbot to Your Shopify Store

A practical guide to adding a Shopify chatbot: train an AI chatbot for your Shopify store on your product pages, then paste one snippet into theme.liquid.

Jul 21, 20267 min readAskvo Team

Shoppers ask the same handful of questions on every Shopify store: "does this ship to my country," "what's your return window," "is this back in stock." A Shopify chatbot answers those instantly, at 2am, without you touching your phone. This guide shows you how to set up an AI chatbot for your Shopify store using your existing product pages and policies as its training material, then embed it with one snippet — no app install required.

You'll learn how the bot gets trained, exactly where to paste the embed code in your theme, and how to keep the answers accurate as your catalog changes.

Why Shopify stores lean on chat more than most sites

A Shopify store is basically a stack of decision points: size charts, shipping zones, bundle discounts, return windows, "is this in stock." Every one of those is a moment a visitor can abandon their cart to go email support instead of buying. Most visitors expect answers in minutes, not hours, and an unanswered question at checkout time is a lost sale, not a delayed one.

An AI chatbot trained on your store's actual pages closes that gap without you staffing live chat around the clock. If you're still deciding whether a chatbot fits your store at all, our overview of what an AI chatbot for your website actually does is a good starting point.

There is no Shopify app — and that's on purpose

If you searched the Shopify App Store looking for "Askvo," you won't find it. Askvo doesn't have a Shopify app, and it doesn't need one. The chatbot's brain and interface run entirely on Askvo's servers; your store only needs to load a small embed snippet in the browser. That snippet is the exact same one used on WordPress, Wix, Webflow, Squarespace, React, or plain HTML — it's a universal snippet, not a platform-specific plugin.

The practical upside: nothing to review or approve through Shopify's app ecosystem, nothing that touches your checkout or theme code beyond one paste, and no app subscription stacking on top of your Askvo plan. If you're comparing this to keeping a human agent glued to a live-chat tab, see AI chatbot vs live chat for where each one wins.

Step 1: Train the bot on your store's content

Before editing any theme file, give the bot something to answer from:

  1. Create a Askvo account. The Free plan gives you one chatbot forever, no credit card needed. If you want to see the idea work before signing up, the homepage demo lets you paste a URL, crawl a few pages, and chat immediately.
  2. Paste your store's URL. The crawler reads your live pages — product pages, collection pages, your shipping and returns policy, your FAQ — and builds the bot's knowledge base from them. Re-crawl anytime you add products or change a policy.
  3. Fill in what the crawler can't see. Wholesale terms, gift-wrapping options, "do you restock this," size guides buried in an image — add these as uploaded documents, pasted text, or direct Q&A pairs. For a deeper walkthrough of what to feed it, read how to train a chatbot on your own data.
  4. Test with real customer questions in the dashboard before going live. In strict mode the bot answers only from your content — when it doesn't know, it says so with a fallback message you write, instead of guessing at a shipping date or a price.

Step 2: Get your embed snippet

Open your bot's install section in the Askvo dashboard and copy the snippet: a custom element (something like <chatbot-widget>) plus two script tags. Before you paste it anywhere, set the widget's color to match your storefront and, if you're on the Business or Agency plan, decide whether to turn on the lead form that collects name and email before the chat opens — handy for capturing shoppers who chat but don't buy yet.

Step 3: Paste the snippet into theme.liquid

Shopify themes render through a shared layout file, so one edit covers every page on your store:

  1. From your Shopify admin, go to Online Store > Themes.
  2. On your live theme, click the menu and choose Edit code.
  3. Under the Layout folder, open theme.liquid.
  4. Find the closing </body> tag near the bottom of the file.
  5. Paste your Askvo snippet on its own line immediately before </body>.
  6. Click Save.

Because theme.liquid wraps every page — home, collections, product pages, cart, even your 404 page — this one edit is enough. There's no separate step for checkout pages on most plans, since Shopify's checkout is a locked-down, separate flow; the widget covers everything up to that point, which is where most pre-purchase questions happen anyway.

If you ever switch or rebuild your theme, remember the snippet lives in that theme's files — copy it into the new theme's theme.liquid too, in the same spot.

Step 4: Verify it before you call it done

Open your storefront in a private/incognito window and check:

  • The widget bubble shows up on your homepage, a collection page, and a product page — themes sometimes override footer content on specific templates, so check more than one.
  • Replies stream in when you ask a real product question, and cite the pages they came from.
  • "Talk to a human" works — tap it, then confirm the conversation lands in your dashboard where you can take over live and the shopper sees your replies in the same window.
  • The fallback message sounds right — ask something the bot genuinely can't know (like a real-time stock count) and confirm it declines gracefully instead of guessing.

Keeping answers accurate as your catalog changes

A Shopify catalog moves fast — new drops, sold-out variants, seasonal policy changes. Re-crawl your store after any meaningful update so the bot's knowledge stays current, and check the Unanswered Questions report weekly: every question the bot couldn't answer is logged there, which is often the fastest way to find a policy page you forgot to write or a product description missing a key detail. If lead capture matters to your store, our chatbot lead generation guide covers how to turn chat visitors into an email list. When you're ready to compare plans and message-credit limits for a store your size, see pricing.

Frequently asked questions

Do I need to install a Shopify app for this?

No. Askvo has no Shopify app in the App Store. You paste one universal embed snippet into theme.liquid, the same snippet used on any other platform. This keeps your app list — and your app subscriptions — shorter.

Will editing theme.liquid break my theme?

Adding a small snippet right before </body> doesn't touch any existing markup, so it's low-risk. If you're nervous about editing theme files directly, duplicate your theme first from the Themes page and test the change on the duplicate before publishing it live.

Does the chatbot work on my checkout page?

Shopify's checkout runs as a separate, locked-down flow on most plans, so the widget appears on your storefront pages rather than inside checkout itself. In practice this isn't a gap: nearly all product, shipping, and policy questions happen before a shopper reaches checkout.

What happens if the bot doesn't know the answer?

It says so, using a fallback message you control, instead of guessing at stock levels or shipping times — and it logs the question in your Unanswered Questions report so you know exactly what to add next. The shopper can also tap "Talk to a human" to reach you directly.

Try Askvo free

Train an AI chatbot on your website in minutes — no credit card required.

Get Started Free

Related articles

← Back to all articles