CustomGPT.ai Blog

How do I Connect Shopify to my Chatbot?

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:
  1. In Shopify Admin you set variant title, SKU, price, inventory count.
  2. Your middleware or product-catalogue sync task picks up the change (via webhook or periodic refresh).
  3. The CustomGPT.ai agent’s database is updated (or live API access will auto-fetch when queried).
  4. 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?”
  5. 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.”
  6. 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.

Frequently Asked Questions

Can you connect Shopify to a chatbot without coding?

Yes. You can use an off-the-shelf integration path (for example, Zapier), connect Shopify, and complete authorization in the integration tool. For new custom app setups, create and manage the app in the Shopify Dev Dashboard, install it on your store, and then connect your chatbot.

Does a Shopify chatbot need full store permissions?

No. Start with only the minimum scopes required for your use case. A common starting point is access limited to the data needed for chatbot responses, such as products and orders, then expanding only if necessary.

Will the chatbot show up on my storefront automatically after installation?

Not always. Installing the integration is only part of setup. You also need to embed or link the chatbot on your store and then test live queries to confirm customers can use it.

Can I keep using a legacy custom app to connect Shopify to a chatbot?

Yes, existing legacy custom apps can continue to work. But for new integrations, Shopify’s default path is to create and manage custom apps in the Shopify Dev Dashboard and then install the app on the store.

How do you reduce wrong chatbot answers after connecting Shopify?

Focus on data access and freshness: enable the correct Shopify data scopes, make sure the chatbot can fetch or receive product and order updates, and run live query tests after setup. This helps responses stay aligned with current store data.

How can you connect Shopify order checks without overexposing customer data?

Use the least-privilege approach: grant only the scopes required for the chatbot workflow and avoid broad permissions by default. For API-based setups, use a Shopify Admin API access token and keep access limited to necessary order-related use cases.

What should you check first if your Shopify chatbot is not working after launch?

Check these in order: the app is installed on the store, required Shopify authorization/scopes are granted, the chatbot is embedded or linked on the storefront, and live queries can retrieve current Shopify data (such as product or order updates).

3x productivity.
Cut costs in half.

Launch a custom AI agent in minutes.

Instantly access all your data.
Automate customer service.
Streamline employee training.
Accelerate research.
Gain customer insights.

Try 100% free. Cancel anytime.