Steps
- In your AskAI dashboard, open Install on your website and copy your script line. It already contains your own site key.
- Open your base layout, for example
src/layouts/Base.astro. - Paste the line just before
</body>and addis:inlineto the script tag so Astro leaves it as it is. - Build and deploy your site.
- Open the live site and check that the AskAI button appears. It also works with client-side navigation.
- Back in your dashboard, press Check installation. When it says the line was found, the assistant starts learning your website.
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”.