Shopify integration
Add an AI assistant to your Shopify store in 5 minutes, no app required
LLMGraph's chat widget is a single script tag. Paste it into your theme and your storefront gets an AI assistant grounded in your own FAQs, policies, and product content. No App Store install, no theme rebuild, works with any Shopify plan.
Three steps to live
Build and deploy a workflow in LLMGraph
Create a workflow on the LLMGraph canvas (or describe it in chat), ground it in your store's FAQs and policies, and deploy it. On the deployment page, copy the endpoint URL and generate a publishable key (pk_live_...).
Add your store domain to the allowed origins
On the same deployment page, add your storefront origins to the allowed origins list, for example https://your-store.myshopify.com and https://www.your-store.com. The publishable key only works from origins on this list; requests from anywhere else are rejected.
Paste the snippet into your theme
In Shopify admin, go to Online Store > Themes > (your theme) > Edit code, open layout/theme.liquid, and paste the snippet just before the closing </body> tag. Or add a Custom Liquid section in the theme editor and paste it there. Save, and the chat bubble appears on your storefront.
The snippet
Replace YOUR_DEPLOYMENT_ENDPOINT with the endpoint URL from your deployment page and pk_live_YOUR_PUBLISHABLE_KEY with your publishable key. The dashboard generates this exact snippet for you, with your values baked in and optional title and brand-color attributes.
<script
src="https://llmgraph.ai/widget.js"
data-endpoint="YOUR_DEPLOYMENT_ENDPOINT"
data-api-key="pk_live_YOUR_PUBLISHABLE_KEY"
data-input-name="user_input"
data-output-name="response"
data-title="Ask us anything"
defer
></script>Shopify storefronts don't give you a server to hide a key behind, which is exactly what publishable keys are for: they are safe to ship in page source because they only work from your allowlisted origins and can carry a daily budget cap.
Frequently asked questions
Does it slow my store down?
No. The widget is a small dependency-free script loaded with defer, so it never blocks your page from rendering. It mounts inside a shadow root after the page has parsed, so your theme's CSS and the widget's CSS cannot interfere with each other.
Is my API key safe in the storefront?
Yes, because the snippet uses a publishable key (pk_live_...), not a secret key. Publishable keys carry no account authority: they only work from the origins you allowlist on the deployment, and you can set a daily budget cap per key. Never paste a secret key (sk_live_...) into a theme.
Can it answer product questions?
Yes, if you ground the workflow in your own content. Upload your FAQs, shipping and returns policies, sizing guides, and product docs, and the workflow answers from them via retrieval instead of guessing.
What does it cost?
It's included in every LLMGraph plan, and every plan starts with a 14-day free trial. There is no separate Shopify app fee because there is no app: the widget is part of your LLMGraph subscription.
Want the long version, with details on grounding the assistant in your store content? Read the full walkthrough