Overview
The Shopify integration connects a Shopify store to an IrisAgent account and records which existing chatbot is associated with that store. In the initial release, you install the chatbot on the storefront by copying its JavaScript embed code into the Shopify theme. The integration supports:- Connecting one Shopify store to an IrisAgent account
- Associating an existing IrisAgent chatbot with the Shopify connection
- Viewing the connected store and granted Shopify permissions
- Changing the associated chatbot or disconnecting the store later
- Answering live product, pricing, and inventory questions
- Looking up order status and shipment tracking after matching an order number and email address
Product and order information is read live from Shopify and is not synchronized into the IrisAgent knowledge base. Refunds, cancellations, returns, and other write actions are not included.
Before you begin
You need:- IrisAgent administrator access
- Shopify administrator access for the store
- At least one chatbot configured in IrisAgent
- The permanent
*.myshopify.comdomain for the store
Connect Shopify
- Log in to the IrisAgent dashboard.
- In the left navigation, open Data Sources → E-commerce.
- Select the Shopify card.
- Enter the permanent Shopify domain, such as
your-store.myshopify.com. - Choose the IrisAgent chatbot to show on the store.
- Click Connect Shopify.
- Review and approve the requested permissions in Shopify.
Stores connected before read-only order lookup was introduced must click Reconnect Shopify and approve the
read_orders permission. Without that permission, product search remains available but order status and shipment tracking are disabled.Configure commerce capabilities
After connecting the store, use Read-only commerce capabilities on the Shopify configuration page to enable or disable:- Product search, pricing, and inventory availability
- Order status and shipment tracking
read_orders permission covers orders from the most recent 60 days. Access to older orders requires Shopify’s separately approved read_all_orders permission, which this integration does not request by default.
Add the chatbot to the storefront
Connecting Shopify does not publish the chatbot. Install it using the embed code available from the chatbot configuration in IrisAgent.- In IrisAgent, open Manage Chatbot → Configurations.
- Open the chatbot configuration that you want to install.
- Click Get Code.
- Click Reveal API Key, then copy the complete embed-code snippet.
- In Shopify Admin, open Online Store → Themes.
- For the published theme, click the … menu and select Edit code.
- Under Layout, open
theme.liquid. - Paste the copied IrisAgent snippet immediately before the closing
</body>tag. - Click Save.
- Open the storefront and confirm that the IrisAgent chat widget appears.
Change the chatbot
To use a different chatbot on the connected store:- Open Data Sources → E-commerce → Shopify in IrisAgent.
- Select another option under Chatbot shown on this store.
- Open that chatbot under Manage Chatbot → Configurations and copy its code using Get Code.
- In the published Shopify theme’s
layout/theme.liquidfile, replace the previous IrisAgent snippet with the new snippet and click Save.
Disconnect Shopify
- Open Data Sources → E-commerce → Shopify.
- Click Disconnect and confirm the action.
<script> snippet from layout/theme.liquid and save the theme.
Troubleshooting
The chatbot does not appear
- Confirm that the complete IrisAgent
<script>snippet appears immediately before</body>inlayout/theme.liquid. - Confirm that you edited and saved the published theme.
- Confirm that the snippet contains the token revealed for the intended chatbot configuration.
- Make sure the snippet was added only once.
- Test the published storefront in a new browser tab.
The Connect Shopify button is disabled
- Confirm that you are an IrisAgent administrator.
- Enter the permanent
*.myshopify.comdomain, not a custom storefront domain. - Select a chatbot.
- If the page says Shopify is not configured for the environment, contact IrisAgent support.