AI Chat AssistantSite owners and developers
Install and secure the AI chat widget
Allow the website domain, copy the bot-specific snippet, and diagnose a missing widget.
In the app→My Bots → select bot → Widget, then Embed
Install
- 1
Add the exact website domain to Allowed Domains. Include a wildcard only when subdomains should also load the widget.
- 2
Open Embed and copy the script containing the bot public token.
- 3
Paste the script immediately before the closing body tag on the required pages.
- 4
Clear site and CDN caches, then test in a private browser window.
<script
src="https://app.k2mailer.com/widget/assistant.js?v=3"
data-bot="YOUR_BOT_PUBLIC_TOKEN"></script>If the widget does not appear
- Confirm the bot is active.
- Confirm at least one file or URL has completed indexing.
- Confirm the page hostname matches an allowed domain.
- Check that a content-security policy is not blocking the widget script or API requests.
- Check the browser console and network panel for domain, token, CORS, or rate-limit errors.
Was this guide enough?
Contact support if your screen or result is different.