Steps
- In your AskAI dashboard, open Install on your website and copy your script line. It already contains your own site key.
- In Shopify admin, go to Online Store → Themes. Next to your current theme, open the … menu and choose Edit code.
- Open
layout/theme.liquid. - Paste the line just above the closing
</body>tag and Save. - Open your storefront and check that the AskAI button appears.
- Back in your dashboard, press Check installation. When it says the line was found, the assistant starts learning your website.
Good to know
- If you switch or update your theme, add the line to the new theme too.
- Cart, checkout and account pages are never learned, and the assistant never reads what shoppers type.
- It answers from your public store pages. It cannot see orders or customer accounts.
Updated November 1, 2026. Menus in website builders change from time to time; if a step looks different, look for “custom code” or “code injection”.