Shopify logo

Connect Shopify to Centillion Labs AI agents

Let your agents show products, fill the cart, look up orders and handle returns from your Shopify store, through the native connection or an MCP server.

Let your Centillion agent work from your store

  • Connect your store in a few clicks, and your agent answers shoppers from live Shopify data: products, prices, stock, carts and orders.
  • Product cards with an Add to cart button appear inside the chat, and the cart ends at your own Shopify checkout.
  • A guest gets an order’s status and tracking after giving its number and the email or phone used at checkout.
  • If your store already runs an MCP server, connect it instead, with its key in a workspace secret or a sign-in that renews its own token.

Features

Set up in minutes

  • Enter the store’s original myshopify.com domain and approve the Centillion Labs app in Shopify
  • One store connects to one agent, and setup reads Connected to your store when it’s done
  • Turn on each Shopify tool on its own, with its channels and a note on when to use it

Products and cart inside the chat

  • Searches your published products with live prices and stock, and can leave sold-out items out
  • Shows product cards with the price and an Add to cart button
  • Adds, changes and removes items, then gives the shopper the Shopify checkout link to pay

Order status for the right person

  • A guest gives the order number and the email or phone used at checkout
  • A shopper signed in on your storefront sees their own recent orders
  • Status, fulfillment and tracking links come from the order itself

Delivery to an address

  • Answers “do you deliver to 94107?” from your store’s own shipping and local delivery rates
  • Checks the product the shopper picked, or what’s in their cart, without changing the cart
  • Gives only the options and prices Shopify returns, such as delivery with installation if your shipping settings offer it

Returns, exchanges and account changes

  • Checks delivery, your return window and the quantities left before it opens a return
  • Exchanges for a new order wait for your team’s approval in Centillion
  • Asks the shopper to confirm before any order, return, exchange, profile or address change

Or bring your own MCP server

  • Point the agent at a Streamable HTTP MCP server for your store and choose which of its tools it may call
  • Send its API key from a workspace secret, or sign in with an auth connection that fetches and renews the token
  • Its tools work in chat and on calls, as plain tool calls without product cards

Credentials stay out of the conversation

  • Shopify credentials never reach the chat widget, and a signed request from your store says who the shopper is
  • An email typed into the chat doesn’t count as signing in
  • A key or token that an MCP server repeats back is masked before the agent sees it

Use cases

Questions before buying

  • Answer “does this come in medium?” with the sizes and stock the store has now
  • Compare two products from their descriptions and prices
  • Answer shipping and returns questions from your policy pages

Buying in the chat

  • Show matching products as cards and add the one the shopper picks
  • Change a quantity or remove an item when asked
  • Send the Shopify checkout link when the shopper is ready to pay

Where is my order

  • Find the order from its number and the checkout email or phone
  • Give the fulfillment status and the tracking link
  • Pass a late or damaged parcel to a person on your team

Delivery and installation

  • Check that you deliver to the shopper’s ZIP or postal code before they buy
  • Offer the options your shipping settings name, such as local delivery or delivery with installation
  • Quote the price Shopify gives for each option

Returns and exchanges

  • Check whether an order is inside your return window
  • Open an eligible return against the original payment
  • Send an exchange for a new order to your team for approval

Installation

Configuration

  1. 1

    Open Shopify setup

    In Centillion, open your agent’s Channels and choose Setup on the Shopify card. Install → Shopify on the same page, and Integrations, open the same setup.

  2. 2

    Connect the store

    Enter the store’s original domain, such as your-store.myshopify.com from Settings → Domains in Shopify, and choose Connect Shopify. Approve the Centillion Labs app in Shopify. Back in Centillion, setup reads Connected to your store.

  3. 3

    Show the chat on your storefront

    Optional. Choose Open theme editor, or open Online Store → Themes in Shopify and edit the live theme. Under App embeds, turn on Centillion chat and save. The chat bubble appears on your store and works with the shopper’s own Shopify cart. There is no theme code to edit.

  4. 4

    Turn on the Shopify tools

    Open the agent’s Tools, choose Add tool, New tool, Integration and Shopify. Pick a tool, check its When to use and its channels, and choose Save & enable. Repeat for each tool you want:

    • Retrieve and display productsProduct cards with prices, variants and Add to cart, from your published catalog
    • Update cartAdds items, changes quantities and removes lines
    • Get cartThe items, the totals and a Shopify checkout link
    • Retrieve and display ordersStatus and tracking, for a guest with the order number and the checkout email or phone
    • Check delivery to an addressDelivery options and prices for a ZIP or postal code, from your store’s shipping rates
    • Create orderA checkout link, a cash-on-delivery order, or a free order inside a procedure
    • Create return or exchange (same order)A return checked against delivery, your return window and the quantities left
    • Create exchange (new order)A replacement request your team approves first; needs Helpdesk
    • Update customer profileChanges a signed-in shopper’s name, email or phone
    • Update billing addressChanges a signed-in shopper’s default address, not the addresses on past orders
    • Check account & send activation emailGives the store’s login link, and can ask Shopify to invite an eligible customer
    • Tag an orderAdds only the tags you choose to a signed-in shopper’s order

    Product, cart, delivery and order tools run in the chat bubble, the help page, WhatsApp, Instagram, Messenger and the API. Returns and account changes run in the chat bubble, the help page and the API.

  5. 5

    Give it your policies

    Add your shipping and returns pages under Knowledge base. In the agent’s instructions, or by asking Mastermind, say what it may settle on its own and what goes to a person.

Or connect through an MCP server

Use this when your store already has an MCP server, one you host or one a Shopify app provides. Its tools reach the agent as plain tool calls: the agent answers in words, without product cards, the storefront cart or the guest order check, and the server decides what it returns.

  1. 1

    Keep the credential in the workspace

    Under Workspace settings → General, add the server’s API key as a Secret. If the server signs in with OAuth 2.0 client credentials or another token that expires, add an Auth connection instead. Nobody can read either back once saved.

  2. 2

    Add the server

    Open the agent’s Tools, then the MCP tab, and choose Add server and New custom MCP server. Give it a name and enter its Server URL. The server must speak Streamable HTTP, with JSON or SSE responses.

  3. 3

    Send the credential

    For an API key, choose Add header under Headers, set Type to Secret, type the header name the server expects, such as X-Shopify-Access-Token or Authorization, and pick the secret. For a token that expires, choose the connection under Authentication instead: Centillion fetches the token, reuses it and renews it before it runs out.

  4. 4

    Choose the tools

    Save the server and choose Discover tools. Tick only the tools the agent needs, such as product search and order lookup, and save again.

  5. 5

    Tell the agent when to use them

    In the agent’s instructions, or by asking Mastermind, say which tool answers which question, what to confirm with the shopper first, and when to hand over to a person.

  6. 6

    Know what Shopify’s own endpoint needs

    Every store also answers MCP at https://{store-domain}/api/ucp/mcp, Shopify’s endpoint for shopping agents. Read Shopify’s rules before you plan on it:

    • Without a token it offers catalog and cart tools at the lowest rate limits, and Shopify says not to use that for production. A password-protected storefront refuses these requests.
    • A token comes from https://api.shopify.com/auth/access_token with client credentials and expires after 60 minutes, so it belongs in an auth connection, not a fixed secret.
    • With a token, every tool call must also carry the shopper’s IP address in a Shopify-Buyer-IP header, or Shopify answers 422. Centillion doesn’t send that header, so for conversations with shoppers use the native connection or a server of your own.

Requirements

  1. 1

    A Shopify store on a plan that allows apps

    And a staff account that can install apps and edit the theme. Use the store’s original myshopify.com domain, not a custom domain.

  2. 2

    A Centillion workspace

    The Owner or Member role, to connect the store and add tools.

  3. 3

    For exchanges and account changes

    Helpdesk turned on for exchanges that create a new order, and the chat on your storefront for changes that need a signed-in shopper.

  4. 4

    For an MCP server

    Its Streamable HTTP address, and its credential stored as a workspace secret or an auth connection.

Testing

  1. 1

    Ask the agent in Preview

    Open the Debugger and turn off Mock all tools so the tools reach your store. Ask for a product the way a shopper would; product cards with prices appear in the reply.

  2. 2

    Fill a cart and open checkout

    Add a product from its card, ask for the cart, and open the checkout link. Shopify’s checkout shows the same items.

  3. 3

    Look up an order

    Give the number of a test order and the email used at checkout, and check the status and tracking. Then try a wrong email: the agent shouldn’t show the order.

  4. 4

    Test on the storefront

    With the app embed on, repeat on your store. Sign in to a customer account to try profile, address and order-tag changes, which Preview can’t, since it has no store session.

  5. 5

    Add simulation tests

    Under Tests, write a simulation test for each of these conversations and set Expected tools under Advanced settings, so a test fails when the agent answers without looking the order up.

  6. 6

    Publish

    Publish the branch so new conversations use the tools.

Troubleshooting

Setup no longer shows the store as connected, or the tools stopped working

Likely causes

  • The Centillion Labs app was uninstalled in Shopify
  • Shopify was paused or turned off for the agent
  • A custom domain was entered instead of the original myshopify.com one

Fix

  1. Open Channels, choose Setup or Manage on the Shopify card, and connect the store again
  2. Turn on Shopify enabled in the same window
  3. Enter the domain from Settings → Domains in Shopify, such as your-store.myshopify.com
Product search finds nothing

Likely causes

  • The product isn’t active, or isn’t published to your online store
  • Exclude out-of-stock products is on and the product is sold out
  • The shopper’s words aren’t in the product’s title or description

Fix

  1. In Shopify, check the product’s status and its sales channels
  2. Turn the setting off in the tool if sold-out products should show
  3. Search is live text search: use the words shoppers use in your product titles and descriptions
The checkout link opens a password page or doesn’t load

Likely causes

  • The store is password-protected, as development stores are
  • The cart was already checked out or has expired

Fix

  1. Enter the storefront password first, or remove it when the store goes live
  2. Build the cart again in the chat for a fresh link
The agent can’t find an order

Likely causes

  • The email or phone isn’t the one used at checkout
  • The order number has a typo
  • The order is older than Shopify’s standard 60-day window

Fix

  1. Ask for the exact email or phone on the order
  2. Read the number from the order confirmation, such as #1001
  3. Look older orders up in Shopify: the integration doesn’t ask for access to them
No delivery options come back for an address

Likely causes

  • Your store has no shipping or local delivery rate for that ZIP or postal code
  • Your store uses only carrier-calculated rates, which the check doesn’t read
  • The product isn’t available for sale

Fix

  1. Add a rate or a local delivery zone in Shopify’s shipping settings
  2. Add a flat or local delivery rate beside the carrier rates
  3. Check the product’s stock and sales channels
An MCP server refuses the request with 401 or 403

Likely causes

  • The secret holds an old or incomplete key, or the header name isn’t the one the server expects
  • The auth connection’s client ID, secret or token URL is wrong
  • Shopify’s storefront endpoint is behind a storefront password, or needs a token

Fix

  1. Update the secret under Workspace settings → General → Secrets: tools send the new value on their next call
  2. Edit the connection, then choose Discover tools again
  3. Remove the storefront password, or use a server that takes a key
Shopify answers 422 or 429 to MCP calls

Likely causes

  • 422: a call with a token reached Shopify’s storefront endpoint without the Shopify-Buyer-IP header
  • 429: the store’s rate limit was reached; Shopify limits each store separately

Fix

  1. Use the native connection, or a server of your own, for conversations with shoppers
  2. Wait the seconds Shopify’s Retry-After gives, then cut repeated calls: allow fewer tools and tell the agent to search once, then narrow down
MCP replies are slow, or say “Tool output exceeds 20 KB”

Likely causes

  • Each call opens a session with the server, so a slow server slows every turn, and a request that takes over 12 seconds fails
  • The agent has many tools to choose from
  • A tool returned more than 20 KB, such as a whole page of products

Fix

  1. Check how fast the server answers on its own: each tool call opens and closes a session with it
  2. Allow only the tools the agent needs
  3. Ask for fewer results per call, or use a tool that takes a limit

Still stuck? Send us the conversation link and we’ll look at it with you.

Contact support

Resources

Put Shopify to work on every conversation

Most teams are live in a day, on the number they already have.