Getting the Embed Code
Installation
- HTML
- React / Next.js
- WordPress
Paste the embed code just before the closing
</body> tag in your HTML:Verifying Deployment
After adding the embed code:- Visit your website in a browser.
- Look for the chat bubble icon in the bottom-right corner.
- Click the bubble to open the widget and send a test message.
- Verify the bot responds using your configured knowledge sources.
Troubleshooting
Widget doesn't appear
Widget doesn't appear
- Verify the embed code is placed before
</body>, not inside<head>. - Check that the
data-bot-idvalue matches your bot’s ID. - Disable ad blockers or browser extensions that may block third-party scripts.
- Ensure your site’s Content Security Policy (CSP) allows scripts from
widget.botric.ai.
Bot doesn't respond
Bot doesn't respond
- Confirm your bot has at least one Knowledge Source linked.
- Check that the knowledge source has been fully crawled and indexed.
- Test the bot in Botric’s built-in preview before checking the live widget.
Widget styling looks wrong
Widget styling looks wrong
- Your site’s CSS may conflict with the widget. The widget uses an iframe to isolate styles, but some global styles can still affect the bubble icon.
- Re-check your widget customization settings.
Next Steps
Customize Widget
Adjust the widget’s appearance.
View Leads
See leads captured by your bot.
Knowledge Sources
Manage what your bot knows.
Chat Agent Overview
Return to Chat Agent overview.