Set Up WebChat
Add a chat widget to your website to enable customer conversations through Cloodot.
Add a WebChat widget to your website to enable real-time customer support directly from your site. All conversations will appear in your Cloodot inbox alongside messages from other channels.
What is WebChat?
WebChat is a customizable chat widget that you can embed on your website. It allows visitors to:
- Start conversations directly from your website
- Chat with your team in real-time
- Get instant support without leaving your site
- Access conversation history
Prerequisites
Before setting up WebChat, ensure you have:
- ✅ A website where you want to add the chat widget
- ✅ Access to your website's HTML code
- ✅ Your Cloodot workspace is set up
Step-by-Step Setup Guide
Step 1: Access WebChat Settings
You can start the WebChat setup in two ways:
Option A: From Inbox (When No Channels Connected)
- Navigate to your Cloodot dashboard
- Go to the Inbox or Conversations section
- You'll see "No channels connected" message
- Click the "Connect WebChat" button (purple icon)
- The Channel Connection Wizard will open
Option B: From Settings
- Navigate to Settings → Organization → Channels
- Click "Add Channel" or the "+" button
- In the Channel Connection Wizard, select "WebChat"
Step 2: Configure WebChat Widget
- Widget Name: Enter a name for your WebChat widget (e.g., "Main Website Chat")
- Customize Appearance (optional):
- Choose widget colors to match your brand
- Set widget position (bottom-right, bottom-left, etc.)
- Configure welcome message
- Set business hours
Step 3: Get Embed Code
- After configuration, you'll receive an embed code snippet
- Copy the provided JavaScript code
- The code will look something like this:
<script>
(function() {
// Your WebChat widget code
})();
</script>Step 4: Add to Your Website
Option A: Add to All Pages (Recommended)
Add the embed code to your website's main template or header file so it appears on all pages:
- Open your website's HTML template
- Paste the embed code just before the closing
</body>tag - Save and publish your website
Option B: Add to Specific Pages
If you only want the widget on certain pages:
- Open the HTML file for the page where you want the widget
- Paste the embed code just before the closing
</body>tag - Save and publish the page
Step 5: Test the Widget
- Visit your website
- Look for the chat widget icon (usually in the bottom-right corner)
- Click the widget to open the chat
- Send a test message
- Verify the message appears in your Cloodot inbox
:::success Your WebChat widget is now live! Visitors can start conversations directly from your website. :::
Customizing Your Widget
Appearance Settings
You can customize:
- Widget Color: Match your brand colors
- Position: Choose where the widget appears (bottom-right, bottom-left, etc.)
- Icon: Customize the chat icon
- Size: Adjust widget size
Behavior Settings
Configure:
- Welcome Message: Set a greeting message for visitors
- Business Hours: Show availability based on your business hours
- Offline Message: Message shown when your team is offline
- Auto-open: Automatically open chat for new visitors (optional)
Advanced Settings
- Pre-chat Form: Collect visitor information before starting chat
- Chat History: Allow visitors to see previous conversations
- File Attachments: Enable file sharing in chat
- Typing Indicators: Show when you're typing
Managing WebChat Conversations
View WebChat Messages
All WebChat conversations will appear in your unified inbox alongside messages from other channels. You can:
- Filter by channel to see only WebChat messages
- View visitor information and page context
- See which page the visitor was on when they started the chat
- Access full conversation history
Responding to WebChat Messages
- Open your Cloodot inbox
- Find the WebChat conversation
- Type your response
- Click send - the message will appear in the visitor's chat widget
Multiple Websites
You can set up WebChat widgets for multiple websites:
- Each website gets its own widget configuration
- All conversations appear in the same inbox
- You can filter by website to see which site each conversation came from
Best Practices
Widget Placement
- Bottom-right corner: Most common and user-friendly position
- Visible but not intrusive: Don't block important content
- Mobile-friendly: Ensure the widget works well on mobile devices
Response Times
- Quick responses: WebChat visitors expect fast responses
- Set expectations: Use auto-responses to let visitors know when you'll respond
- Business hours: Clearly communicate your availability
Welcome Messages
- Be friendly: Use a warm, welcoming message
- Set expectations: Let visitors know response times
- Provide value: Offer helpful information upfront
Troubleshooting
Widget Not Appearing
Problem: The chat widget doesn't show up on your website.
Solutions:
- Verify the embed code is correctly placed before the closing
</body>tag - Check that your website allows JavaScript execution
- Clear your browser cache and refresh the page
- Check browser console for any JavaScript errors
- Ensure your website isn't blocking the Cloodot domain
Messages Not Sending
Problem: Messages from the widget aren't appearing in Cloodot.
Solutions:
- Verify the embed code is correct and complete
- Check your internet connection
- Ensure WebChat channel is still connected in Cloodot
- Check browser console for errors
- Try disconnecting and reconnecting the WebChat channel
Widget Looks Wrong
Problem: The widget appearance doesn't match your customization.
Solutions:
- Clear your browser cache
- Verify customization settings in Cloodot
- Check if your website's CSS is interfering with the widget
- Try re-embedding the widget code
Not Receiving Messages
Problem: You're not receiving WebChat messages in your inbox.
Solutions:
- Verify the WebChat channel is connected
- Check your notification settings
- Ensure you have the correct permissions
- Refresh your Cloodot dashboard
Next Steps
After setting up WebChat:
- Customize your widget appearance
- Configure business hours
- Set up automated responses
- Invite team members to help manage conversations
Need help? Check our troubleshooting guide or contact support.