Connect your Shopify store
Connect your Shopify store so your AI chatbot can recommend products with live prices and stock, let shoppers add them to the cart from the chat, and answer from your store's policies. For products and the cart you connect with your store's address alone. Order status, the card below them on the same page, reads orders through the Shopify app, which this page doesn't cover yet.
You need an agent, and your store must be live: a store behind a password can't be read. Only owners and admins can connect or change the store.
Which plans include it
Shopify is on the Starter, Pro and Business plans, and on their free trials. On the Free plan you can still put the chat on your store; it answers from your pages, but without products or Add to cart.
Connect your store
- Open your agent and go to Actions (under Train).
- Click Connect on the Shopify card.
- Under Your store's address, type your shop's web address (like
example.com) or itsmyshopify.comaddress. - Click Connect store.
ReplyBash reads your store's public products and policies. It never changes anything in your store, and it can't see orders or customers.
If your store's product list isn't public, or the address isn't a Shopify store, you'll see a message saying so. Check the address, or try the myshopify.com one.
What the agent can do
- Go to Actions › Shopify (click Configure on the Shopify card).
- Turn on Products and recommendations.
- Under When should the agent use it?, say when products should come up, or keep the suggested text.
- Click Turn on (later, Save changes). The agent uses it from the next message.
Then the agent can:
- Find products by what the shopper needs, such as "a gift under fifty dollars", using price, stock and type.
- Recommend the best few, each with a short reason. Prices and stock are checked live before they're shown, and sold-out products are left out.
- Answer from your policies. Your refund, shipping, privacy, terms and contact policies are added to what the agent knows, and it links to them as sources.
The store is connected once for the whole workspace. Turn on Products and recommendations in each agent that should use it.
Your products are read again every day on the Pro and Business plans. After a big change, or on a plan without the daily read, open Manage on Actions › Shopify and click Sync now.
Product cards and add to cart
Products show in the chat as cards. Choose a Card style on Actions › Shopify: Carousel, List or Tiles. The preview beside it shows how each one looks.
Each card has the product's photo, price and option buttons, such as size or colour. Sold-out options are struck out.
When the chat runs on your store itself, Add to cart puts the exact size and colour the shopper picked into their real cart, and prices show in the shopper's own currency. The shopper then pays at your normal checkout. On the hosted chat page, Add to cart isn't offered, because Shopify only lets your own store change its cart.
To track it in your analytics, listen for the cart-added event with the JavaScript API.
Add the widget to your theme
Connecting the store doesn't put the chat on it. Add the script to your theme once:
- Copy the script tag from Website widget in your agent.
- In your Shopify admin, go to Online Store › Themes, open the ⋯ menu beside your theme and choose Edit code.
- Open
layout/theme.liquidand paste the script just above</body>. Click Save. - Open your store and ask about a product.
If the store's address isn't your agent's website, add it under Allowed domains on Website widget. Install the widget covers this and the chat's look.
Disconnect
On Actions › Shopify, click Manage, then Disconnect. The store, its products and its policies are removed from every agent in the workspace, and the agent stops offering products. The chat itself stays on your store until you remove the script from your theme.