Skip to content
QwryAI
Documentation
Pages

Integrations

Add an AI agent to your Shopify store

Connect your Shopify store so your AI agent can help shoppers find products, fill their cart, check out, track orders and manage their account

The Shopify integration connects your store to a QwryAI agent, so the agent answers shoppers with your live catalog, cart and order data. It's for Shopify merchants who want one assistant before the purchase (finding products, filling the cart, checking out) and after it (tracking orders, returns and exchanges, account updates). Connecting the store installs the QwryAI app, and its app embed puts the Chat bubble on your storefront. Most Shopify Actions also run on WhatsApp, Instagram, Messenger and email.

What your AI agent can do for your store

You choose what the agent can do by creating Shopify Actions.

Before the purchase

Shopper asksWhat the agent doesAction
"Show me red dresses under $50"Searches your synced catalog and shows matching products with Add to cart buttons. Shoppers can also send a photo to find a similar productRetrieve and display products
"Add two of these to my cart"Adds, removes or changes the quantity of items in the cartUpdate cart
"What's in my cart?"Shows the items, quantities and totalGet cart
"I'm ready to check out"Places the order and sends a Shopify checkout link, or places it as cash on deliveryCreate order

After the purchase

Shopper asksWhat the agent doesAction
"Where is my order?"Looks up the order status, tracking and purchase historyRetrieve and display orders
"I want to return these shoes"Opens a return on the existing order, inside the return window you setCreate return or exchange (same order)
"Can I swap this for a size 10?"Builds an exchange that a teammate approves in a Helpdesk ticketCreate exchange (new order)
"I never got an activation email"Checks whether the shopper is signed in and emails an activation linkCheck account & send activation email
"Update my email address"Changes the signed-in shopper's name, email, phone number or billing addressUpdate shopify customer profile, Update shopify customer billing address

No Shopify Action cancels an order or changes the shipping address on a placed order. Send those requests to your team with Escalations.

Example: from product question to order tracking

  1. A shopper opens the Chat bubble on your store and asks, "Do you have a waterproof jacket under $100?" The agent uses Retrieve and display products and shows matching jackets with Add to cart buttons.
  2. The shopper says, "Add the black one in medium." The agent uses Update cart, then asks whether they want anything else.
  3. The shopper says, "Check out." The agent uses Create order and replies with a Shopify checkout link.
  4. A few days later, the shopper asks, "Where is my order?" The agent uses Retrieve and display orders. A signed-in shopper's orders are found straight away; a guest is asked for the details that verify the order first.

Before you start

  • A QwryAI account with an agent. If you haven't built one yet, follow Your first AI agent.
  • A Shopify store you can install apps on, and its original store name: the part before .myshopify.com. Your Shopify admin shows it under Settings › Domains.

Connect your store

You can start from Integrations or from Channels. Both install the QwryAI app in your store through Shopify's own approval screen.

  1. Select Connect on the Shopify card

    In your agent's sidebar, open Integrations and select Connect on the Shopify card.

    Integrations › Shopify › Connect.
  2. Review Connect Shopify

    The Connect Shopify dialog asks for your Shop name and explains the install flow: you're sent to Shopify to approve access, then returned to Integrations.

    Enter your Shop name, then Connect Shopify.
  3. Enter your Shop name

    Type the subdomain only. For https://your-store.myshopify.com/admin, that's your-store. Then select Connect Shopify.

    Type the subdomain before .myshopify.com.

Approve the app in Shopify

Shopify opens its install screen for the QwryAI app and lists the access it needs. Review it and select Install. You're returned to QwryAI: from Integrations with Shopify connected successfully., and from Channels with Shopify connected and the Shopify page opening.

Manage your integration

  1. Open the Shopify page

    On Channels, select Manage on the Shopify card.

    Channels › Shopify › Manage.
  2. Check the toggle

    Make sure the toggle at the top right of the page is on. It's the Chat bubble's visibility: while it's off, the bubble doesn't show on your store.

    Keep the toggle at the top right on.
  3. Turn on the app embed

    Under How to embed the app in a theme, pick your live theme in Select the theme you want to use, then select Open theme editor. In Shopify's theme editor, open App embeds, switch QwryAI on and select Save.

    Pick your live theme, then Open theme editor.

The page's last two steps link to the actions page, to create your Shopify Actions, and to the Chat bubble page, to change how the bubble looks.

Visibility must be on for the Chat bubble to show.

Setup checklist

Work through these in order to go from a connected store to an agent that's ready for shoppers:

  1. Connect your store and confirm the Chat bubble appears on your storefront.
  2. Train on your store policies, not your product pages. See What to train your AI agent on.
  3. Create Retrieve and display products and sync your catalog. See Sync your products.
  4. Create your first Actions. See Which Actions to turn on first.
  5. Test on your live storefront. The Preview has no signed-in shopper and no storefront cart, so test cart, checkout and account flows from the Chat bubble on your store.
  6. Publish, then add Tests. Tests check your agent with real questions, such as a shopper asking where order #1042 is, with Retrieve and display orders as the Action you expect.

What to train your AI agent on

Shopify Actions give the agent your live products, carts and orders. Data sources give it everything else shoppers ask about: your policies and how your store works.

Train on:

  • Shipping pages: where you ship, delivery times and costs
  • Your returns and exchanges policy: the window, condition rules and who pays return shipping
  • FAQ and help pages, size guides, care instructions and contact details
  • Answers you want worded exactly, added as Q&A Pairs

Don't train on product or collection pages. With Retrieve and display products created, your catalog syncs directly from Shopify and stays current. Scraped product and collection pages go stale and compete with the synced data, which leads to old prices and out-of-stock items in answers. If your website is a data source, exclude its /products and /collections pages.

When you change a data source, such as your returns policy, it shows Training while it trains and Synced once your agent can use it. That usually takes a few minutes.

Which Actions to turn on first

Start with the Actions that answer the most common store questions, then add the ones that change orders once you've decided your rules.

  1. Product discovery and cart: Retrieve and display products, Update cart and Get cart.
  2. Order tracking: Retrieve and display orders, so "where is my order?" is answered without a ticket, for signed-in shoppers and for guests who verify the order.
  3. Returns and exchanges, once your rules are set: the same-order return completes on its own inside the Return window (days) you set, while the new-order exchange always waits for approval in a Helpdesk ticket. To control when either runs, call it from a Procedure. See Keeping high-stakes Actions on rails.
  4. Checkout: Create order, so shoppers can place the order in the chat. Create Update cart too whenever Create order uses the cart, or the cart stays empty.

Limitations

  • One agent on the storefront. Your store shows one agent's Chat bubble. If you connect the same store to another agent, the storefront moves to the agent connected most recently.
  • Placed orders change only through a return. No Shopify Action cancels an order or changes its shipping address.
  • Phone isn't supported. Shopify Actions run on chat, messaging and email channels.

Frequently asked questions

Do I need to add embed code to my Shopify theme?

No. The QwryAI app adds the Chat bubble through its app embed. If you don't see it, check that the toggle on the Shopify Manage page is on and that the QwryAI app embed is on in your theme editor.

Should I train my agent on my product pages?

No. The product sync already covers your catalog. Train on your shipping, returns and FAQ pages instead. See What to train your AI agent on.

Can the agent track orders for shoppers who aren't signed in?

Yes. Signed-in shoppers' orders are found automatically. Guests verify the order first. See Signed-in and guest customers.

Can the agent cancel an order or change a shipping address?

No. Route those requests to your team with Escalations.

Where do I find my store name?

In your Shopify admin under Settings › Domains: it's the part before .myshopify.com, even if your store uses its own domain.

Next steps

Once your store is connected, create the Actions that let your agent search products, look up orders and manage carts.

Explore the documentation