How to Connect BotForge to Your Website

Last updated: March 2026 • 4 min read

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.

  1. Go to Dashboard → Your Bot → Embed
  2. Copy the embed code
  3. 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

💡 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.