Web Widget
The web widget adds a chat bubble to your website, allowing visitors to start conversations with your AI agent instantly.
Prerequisites
Before setting up the web widget:
- ✅ Chatwoot is connected (see Chatwoot Setup)
- ✅ Access to your website's HTML or CMS
- ✅ List of domains where the widget will appear
Setting Up the Widget
Step 1: Navigate to Channel Settings
- Go to Integrations → Chatwoot tab
- Find the Web Widget channel card
- Click Configure or Connect
Step 2: Enter Widget Details
| Field | Description | Example |
|---|---|---|
| Website Name | Name for this widget | "Main Website" |
| Authorized Domains | Domains where widget works | example.com, www.example.com |
| Brand Name | Displayed in widget header | "Acme Realty" |
| Welcome Message | First message shown to visitors | "Hello! How can I help you today?" |
Authorized Domains
The widget only works on domains you authorize. Include all variations:
example.comwww.example.comstaging.example.com(if testing)
Step 3: Customize Appearance (Optional)
| Option | Description |
|---|---|
| Widget Color | Primary color for the bubble and header |
| Position | Bottom-right or bottom-left |
| Launcher Icon | Custom icon or default chat bubble |
Step 4: Save and Get Code
- Click Save to create the widget
- The code snippet appears automatically
- Copy the snippet for installation
Installing the Widget
Option 1: Direct HTML
Add the snippet before the closing </body> tag:
<script>
(function(d,t) {
var BASE_URL="https://chat.proppilot.ai";
var g=d.createElement(t),s=d.getElementsByTagName(t)[0];
g.src=BASE_URL+"/packs/js/sdk.js";
g.defer = true;
g.async = true;
s.parentNode.insertBefore(g,s);
g.onload=function(){
window.chatwootSDK.run({
websiteToken: 'YOUR_TOKEN_HERE',
baseUrl: BASE_URL
})
}
})(document,"script");
</script>
Option 2: Google Tag Manager
- Create a new Custom HTML tag
- Paste the widget code
- Set trigger to All Pages
- Publish the container
Option 3: WordPress
- Install a plugin like "Insert Headers and Footers"
- Paste the code in the footer section
- Save changes
Option 4: Other Platforms
| Platform | Method |
|---|---|
| Webflow | Project Settings → Custom Code → Footer |
| Squarespace | Settings → Advanced → Code Injection → Footer |
| Wix | Settings → Custom Code → Body - end |
| Shopify | Online Store → Themes → Edit Code → theme.liquid |
Testing the Widget
After installation:
- Visit your website in a browser
- Look for the chat bubble (usually bottom-right)
- Click to open the chat window
- Send a test message
- Verify the response appears in PropPilot inbox
Incognito Testing
Test in an incognito/private window to see the widget as a new visitor would.
Enabling Your Agent
To have your AI agent respond via the widget:
- Go to Agents → Select your agent
- Navigate to Channels tab
- Enable the bot on Web Widget channel
Customization Options
Welcome Messages
Set up automated greetings:
- Welcome Message: Shown when chat opens
- Away Message: Shown outside business hours (if configured)
Pre-Chat Form
Collect visitor information before chat:
- Name
- Phone number
- Custom fields
Configure in Chatwoot settings if needed.
Troubleshooting
Widget Not Appearing
- Check domain authorization - Is your domain in the authorized list?
- Check code placement - Is the snippet before
</body>? - Check console errors - Open browser DevTools (F12) and look for errors
- Clear cache - Try hard refresh (Ctrl+Shift+R)
Widget Appears But Doesn't Work
- Verify Chatwoot connection status
- Check webhook configuration
- Review channel status in PropPilot
Styling Conflicts
If the widget looks wrong:
- Check for CSS conflicts with your site
- The widget uses an iframe, so most conflicts are rare
- Contact support for custom styling needs
Best Practices
Do's
- ✅ Test on all authorized domains
- ✅ Include mobile-responsive testing
- ✅ Set appropriate welcome messages
- ✅ Monitor conversations regularly
- ✅ Update authorized domains when adding new sites
Don'ts
- ❌ Install on unauthorized domains (it won't work)
- ❌ Use generic welcome messages
- ❌ Ignore the widget on mobile devices
- ❌ Forget to enable the AI agent
What's Next?
Set up additional channels: