How to Connect BotForge to Your Website
Adding BotForge to your website takes less than 2 minutes. Here's how:
Option 1: Chat Widget (Recommended)
The widget appears as a floating chat button in the corner of your screen.
- Go to Dashboard → Your Bot → Embed
- Copy the embed code
- Paste it just before the closing
</body>tag on every page
<script src="https://botforge.me/widget.js"></script>
Option 2: Popup Chat
Want the chat to open automatically? Add this instead:
<script>
window.BOTFORGE_CONFIG = { popup: true };
</script>
<script src="https://botforge.me/widget.js"></script>
Option 3: Specific Pages Only
Only want the chat widget on certain pages? Use conditional logic:
<?php if (is_page('contact')) { ?>
<script src="https://botforge.me/widget.js"></script>
<?php } ?>
Where to Paste the Code
- WordPress: Appearance → Theme Editor → footer.php
- Shopify: Online Store → Themes → Actions → Edit Code → theme.liquid
- Squarespace: Settings → Advanced → Code Injection → Footer
- Wix: Settings → Tracking Tools → Add Tool → Body
💡 Pro Tip
Test on mobile! Most website visitors chat from their phones. Make sure the widget doesn't block important content.
Troubleshooting
Widget doesn't appear? Check that your ad blocker isn't blocking the script. Try in incognito mode.
Wrong bot showing? Make sure you're using the correct embed code for that specific bot.
Questions? Chat with us or email support.