Skip to content
Docs/shopify

Shopify

Add your AskGPT chatbot to a Shopify store by editing the theme layout file.

Edit theme.liquid

The embed script needs to be added to your main theme layout file so it loads on every page.

  • Shopify Admin → Online Store → Themes
  • Click 'Customize' → then '…' → Edit code
  • Find layout/theme.liquid
  • Paste the embed script before </body>
  • Save the file

Verify the install

After saving, visit your live Shopify store URL (not the editor preview) and confirm the chat widget appears in the corner.

<script src="https://askgpt.ai/widget.js" data-bot-id="YOUR_BOT_ID" defer ></script>

Need more help?

Contact support and we'll get back to you within 24 hours.