Complete guide to adding the AI chatbot widget to your website
Go to your bot's Widget tab in the dashboard, enable the widget, and copy the embed code.
Open your website's HTML file and paste the code right before the closing </body> tag.
Refresh your website and you'll see the chat bubble in the bottom-right corner. Click it to start chatting!
Here's a complete example of a simple HTML page with the SiteBrain widget embedded:
Important: Always place the embed code right before the </body> tag to ensure your page content loads first.
</body> tag</body>For React or Next.js, add the script to your main layout or _document.js file:
You can customize the widget appearance from the dashboard:
Change the header text shown in the chat window
Customize the text shown in the floating chat bubble
Set the first message users see when opening chat
Match the widget to your brand colors
</body>