Skip to main content

Shopify

Category: E-commerce. Connect Shopify and your widget can find products and check orders for visitors, right inside the chat.
Integrations are available on the Pro and Business plans. Shopify shares the E-commerce category with WooCommerce, so only one of the two can be active at a time.

What This Bot Can Do

The bot does exactly these actions, nothing more. “Needs sign-in” means the visitor must be identified first; otherwise the bot gives a safe, neutral answer.
ActionWhat it doesNeeds sign-in
Search productsSearch your catalog by keyword and show product cards with price, image, and a buy link (up to 10).No
Check order statusLook up an order’s status, tracking, and delivery by the visitor’s email.Yes

What It Can’t Do

Shopify is scoped to the actions above. It does not:
  • Add items to a cart or check out from the chat (visitors do that on your store)
  • Process returns or change an order from the chat
  • Look up an order without the visitor’s email

Part 1 — Connect Shopify

Shopify connects with OAuth, so you never paste API keys — you just authorize the BestChatBot app on your store.

Open Integrations

In your workspace dashboard, open the Integrations tab and find Shopify.

Connect

Click Connect. A secure popup opens. Sign in to Shopify and authorize access. This installs the BestChatBot app on your store, which also powers the identity proxy used in Part 3. You never type credentials into BestChatBot.

You're connected

Once authorized, Shopify’s actions become available to your widget right away. If WooCommerce was connected, it’s disconnected automatically.
Connecting integrations requires an Editor, Admin, or Owner role. See Members & Roles.

Part 2 — Embed the Widget on Your Store

Connecting Shopify lets the bot read your store. To show the widget on your storefront, paste the standard embed snippet into your theme.
1

Open your theme code

In Shopify admin, go to Online Store → Themes → ⋯ → Edit code and open layout/theme.liquid.
2

Paste the embed snippet

Just before the closing </body> tag, paste your widget snippet (find your data-api-key in Dashboard → Web Widget → Installation):
<script
  src="https://widget.bestchatbot.io/widget/v1/chat.js"
  data-api-key="rk_live_xxxxxxxxxxxxxxxxxxxx"
  defer
></script>
theme.liquid in the Shopify code editor with the BestChatBot widget script before the closing body tag
Save. The chat bubble now appears on your storefront.
BestChatBot widget live on a Shopify storefront

Part 3 — Identity-Aware Order Lookups

By default the bot asks a visitor for their email before checking an order. For logged-in Shopify customers, you can skip that: BestChatBot verifies their identity automatically through a Shopify App Proxy, so “track my order” returns their orders with no email prompt.
1

Create a signing key

In your dashboard, open Web Widget → Security and click Create Signing Key. BestChatBot uses this key to sign each customer’s identity token server-side — you don’t paste it into your theme.
2

Add the identity snippet

In theme.liquid, right after the widget snippet, add:
<script>
  (function () {
    fetch('/apps/bestchatbot/identity', { credentials: 'same-origin' })
      .then(function (r) { return r.json(); })
      .then(function (data) {
        if (data.token && window.BestChatBot) {
          window.BestChatBot.setUserToken(data.token);
        }
      })
      .catch(function () {});
  })();
</script>
On every page load, this asks BestChatBot’s identity proxy who the logged-in customer is. The proxy returns a short signed token (email and Shopify customer ID) only for authenticated customers; anonymous visitors get nothing and simply browse as usual.
Now a logged-in customer can ask “track my order” and get their orders back instantly.
Logged-in Shopify customer seeing their orders in the widget after asking to track an order
For how visitor identity works across platforms, see Visitor Identity.

One per Category

Shopify is in the E-commerce category with WooCommerce. Connecting one disconnects the other, so your bot always has a single, clear tool for e-commerce.
If you connect Shopify while WooCommerce is active, WooCommerce is turned off automatically.

Availability

PlanShopify
Free
Starter
Pro
Business

Next Steps

Visitor Identity

Set up identity verification for personal actions like order lookups.

Agentic Actions

Learn how the bot turns a request into a real action.