HTML website
- 1Open the HTML file or template used by every page.
- 2Paste the snippet just before the closing </body> tag.
- 3Save and publish. Reload your site to see the chat button.
Add AI Global Assist to any website with one script tag. Replace YOUR_BOT_ID with the ID shown in your dashboard under Installation.
<script
src="https://aiglobalassist.com/widget.js"
data-bot-id="YOUR_BOT_ID"
async>
</script>For security, the widget only loads on domains you add to the allowlist in your dashboard.
import Script from "next/script";
export default function RootLayout({ children }) {
return (
<html lang="en">
<body>
{children}
<Script
src="https://aiglobalassist.com/widget.js"
data-bot-id="YOUR_BOT_ID"
strategy="afterInteractive"
/>
</body>
</html>
);
}