To connect Shopify, you need install or configure your chatbot integration in the admin settings, enable the correct data scopes (products, orders), then embed or link your chatbot (for example via CustomGPT.ai) on your store and test live queries so it can access/store live Shopify data via API or embed code.
Connect your Shopify store
Prepare your Shopify admin
As of January 1, 2026, you can’t create new legacy custom apps from the Shopify admin. Create and manage new custom apps in the Shopify Dev Dashboard, then install the app on the store. Existing legacy custom apps can continue to work, but the default setup path for new integrations is Dev Dashboard → install on store.
For example, when you use an API-based chatbot, you’ll need a Shopify Admin API access token. Tip: Only grant minimal required scopes to reduce risk.
Install or configure your chatbot integration
Once the app is created, install it to your store. If you’re using an off-the-shelf chatbot integration (via Zapier or similar), select Shopify and grant the authorization within the integration tool. For example, there is an integration path between Shopify and CustomGPT.ai via Zapier.
Then ensure the chatbot can fetch or receive Shopify events or data (e.g., new orders, product updates).
Configure product and data sync
Enable product catalogue and order data access
You must decide which Shopify data your chatbot needs to access. Typical use-cases: product catalogue (titles, images, SKUs), order status, customer info (within privacy rules).
When using CustomGPT.ai for “order lookup”, you create a middleware that queries Shopify via GraphQL and passes non-sensitive order data as “custom_context” to the agent.
Ensure that you only expose data the chatbot truly needs, avoid exposing full PII unnecessarily.
Configure sync rules and data mapping
Decide how product/ order data should be mapped into your chatbot’s knowledge base or real-time flows. Options:
- Pre-load product catalogue into the agent so it can answer “What colours do you have?”
- Use live API queries for “Where’s my order?” so data stays current.
- Example: With CustomGPT.ai, orders are fetched in real time by your middleware and injected as ephemeral context rather than permanently stored in the knowledge base.
- Also set up triggers for product updates: if a product is added/removed, the agent’s catalogue may need to be refreshed or the integration should handle it.
Test and activate the integration
Verify live store behaviour
Perform test queries in your store’s chat window:
- Ask about a newly-added product, verifying title, variant, price show correctly.
- Ask about a test order (if implemented) and verify the chatbot returns correct tracking or status information.
- Monitor logs in Shopify Admin / API logs to ensure there are no permission errors or 403 responses.
Validate chatbot responses & error-handling
Test edge-cases: product out of stock, order cancelled, user asks unsupported question. Ensure the chatbot gracefully handles:
- “Sorry, I don’t have that product”
- “I’m checking your order, can you confirm your email?”
- Also test embedding: On Shopify, after installing the chat widget, view your store in incognito to ensure the chat loads and behaves on mobile and desktop.
- When using CustomGPT.ai embed, follow their theme instructions.
Troubleshoot using your integration/middleware logs
In your middleware (or serverless function), log the Shopify API response status and key headers so you can quickly spot:
- 401 Unauthorized: missing/invalid access token
- 403 Forbidden: missing scope (common when you forget read_products / read_orders, or when read_all_orders isn’t approved)
- 429 Too Many Requests: rate limit throttling → backoff/retry
Then re-check your app’s configured access scopes and reinstall/reauthorize if scopes changed.
How to do it with CustomGPT.ai
Create a CustomGPT.ai agent and select Shopify
Build your AI assistant and link it to your shop’s data in just a few clicks.
- In the CustomGPT.ai dashboard (see “Getting Started” guide), create a new agent and choose or configure the Shopify integration.
- You’ll input your Shopify store domain and the API token (for middleware use) or embed context as appropriate.
Embed the agent on your Shopify store
Make your chatbot live so it can start helping your customers immediately.
- Go to your Shopify Admin → Online Store → Themes → Customize.
- Add a Custom Liquid section: paste the snippet provided by CustomGPT.ai. Save and publish.
- Ensure the chat widget appears and test a product-query live.
Use the CustomGPT.ai API for live order lookup
If you want the chatbot to answer “Where is my order?” you’ll build a small middleware:
- Create a Shopify custom app (read_orders scope) and obtain a token.
- Middleware receives user requests, verifies identity, queries Shopify GraphQL, builds minimal summary, then calls CustomGPT.ai Conversations API injecting custom_context.
- The agent uses that context to answer.
- This lets you keep PII out of the knowledge base and only pass needed info at runtime.
Example: syncing a new product
Imagine you just added a new variant “Blue & Gold Limited Edition” to a product in Shopify:
- In Shopify Admin you set variant title, SKU, price, inventory count.
- Your middleware or product-catalogue sync task picks up the change (via webhook or periodic refresh).
- The CustomGPT.ai agent’s database is updated (or live API access will auto-fetch when queried).
- In your store’s chat widget you type: “Do you have the Blue & Gold Limited Edition?” The chatbot looks up the variant and responds: “Yes, the Blue & Gold Limited Edition is in stock, price $X, SKU Y. Would you like to add it to your cart?”
- You test by changing the inventory to zero in Shopify and then asking again; the bot should say “Currently out of stock, but I can notify you when available.”
- This workflow completes the end-to-end connection from Shopify store edit → chatbot availability.
Conclusion
Connecting your chatbot to Shopify is ultimately a choice between static catalog sync and real-time order intelligence, and the right setup hinges on how fresh and actionable you need store data to be.
CustomGPT.ai streamlines both paths with direct embeds, Zapier integrations, and runtime custom_context injection for live product and order lookups without exposing unnecessary data.
Open your agent in CustomGPT.ai and connect your Shopify store to test product queries and order flows in minutes.