How to Add an AI Assistant to Shopify
Last updated: July 2026 · No coding required
You can add an AI assistant to your Shopify store by pasting one line of code into your theme — no paid app required. Here’s the step-by-step.
First, get your code. Log in to your dashboard → Overview to copy your install code (your unique key is already filled in). The example below uses a placeholder
YOUR_PUBLIC_KEY.Step-by-step
- 1In your Shopify admin, go to Online Store → Themes.
- 2On your live theme, click the “⋯” menu → Edit code.
- 3Under Layout, open theme.liquid.
- 4Paste your code just before the closing </body> tag, then click Save.
Your install code
<script src="https://api.askleya.io/widget/loader.js" data-key="YOUR_PUBLIC_KEY" async></script>
Prefer the full-page AI window?
Ask Leya also offers a full, ChatGPT-style assistant you can embed directly in a page. The steps on Shopify are identical — just paste the “window code” from your dashboard wherever you want it to appear.
Guides for other platforms
Add an AI assistant to WordPress→Add an AI assistant to Wix→Add an AI assistant to Squarespace→Add an AI assistant to Webflow→Add an AI assistant to Google Tag Manager→Add an AI assistant to Any HTML Website→
Ready to try it?
Start free and add your AI assistant to Shopify today — or email support@askleya.io if you’d like a hand.
Ask Leya