Widget Apps
Widget Apps are embeddable chat interfaces that you can add to any website or application. Customize the appearance, behavior, and functionality to match your brand and use case.Creating a Widget App
Every agent in ChatterMate has an associated widget that can be embedded on your website.Create or Select an Agent
Navigate to Agents in the dashboard and create a new agent or select an existing one.
Chat Styles
Choose the chat style that best fits your use case:- Chatbot Style
- Ask Anything Style
Traditional Support Interface
The classic customer support chat experience with agent branding.Features:- Email collection before chat starts
- Agent avatar and name displayed
- Formal, business-focused layout
- “Powered by ChatterMate” branding
- Standard greeting message
- Customer support portals
- E-commerce websites
- Service-based businesses
- Help desk interfaces
Integration Methods
Script Integration (Recommended)
Simple, lightweight integration with a single script tag. Automatically handles updates and optimizations.
iFrame Integration
Embed as an iframe for more control over placement and dimensions. Useful for specific layout requirements.
Script Integration
Add this code before your closing</body> tag:
iFrame Integration
For iframe embedding:Customization Options
Visual Customization
Customize your widget’s appearance in the Chat Customization tab:| Option | Description |
|---|---|
| Background Color | Main background of the chat interface |
| Chat Bubble Color | Color of message bubbles |
| Accent Color | Buttons, links, and interactive elements |
| Font Family | Typography (Inter, system-ui, sans-serif) |
Welcome Messages (Ask Anything Style)
| Field | Description | Max Length |
|---|---|---|
| Welcome Title | Main greeting headline | 100 characters |
| Welcome Subtitle | Descriptive text about capabilities | 250 characters |
CSS Variables
The widget uses CSS variables for consistent theming:Widget Events
The widget communicates viapostMessage events:
Listen for Events
Send Commands
Domain Restrictions
Protect your widget from unauthorized embedding:Mobile Responsiveness
The widget automatically adapts to different screen sizes:Mobile Features
- Full-screen chat interface on mobile devices
- Touch-optimized buttons and inputs
- Smooth animations and transitions
- Keyboard-aware input positioning
Widget Features
Real-time Chat
Instant messaging with typing indicators and read receipts
File Attachments
Share images and documents in conversations
Markdown Support
Rich text formatting in messages
Emoji Support
Full emoji picker for expressive conversations
Message History
Persistent conversation history across sessions
Human Handoff
Seamless transfer to human agents when needed
Best Practices
-
Placement
- Add script just before closing
</body>tag - Ensure no conflicting CSS styles
- Test on multiple pages
- Add script just before closing
-
Performance
- The widget loads asynchronously
- Minimal impact on page load time
- Consider lazy loading on high-traffic pages
-
User Experience
- Test on both desktop and mobile
- Verify email collection flow (Chatbot style)
- Check conversation history persistence
- Test offline/reconnection behavior
-
Branding
- Match colors to your brand
- Use consistent typography
- Customize welcome messages for your audience
Troubleshooting
Widget not appearing
Widget not appearing
- Verify widget ID is correct
- Check browser console for JavaScript errors
- Ensure script is placed before
</body>tag - Check if ad blockers are interfering
Styling conflicts
Styling conflicts
- Widget uses scoped CSS to minimize conflicts
- Check for global CSS rules affecting the widget
- Use browser DevTools to identify conflicting styles
Mobile display issues
Mobile display issues
- Ensure viewport meta tag is present:
<meta name="viewport" content="width=device-width, initial-scale=1"> - Check for CSS that might affect fixed positioning
- Test in actual mobile devices, not just browser emulation
Token not persisting
Token not persisting
- Verify localStorage is available and not blocked
- Check if cookies/storage are being cleared
- Ensure same widget ID is used across pages
What’s Next?
After deploying your widget:- Configure authentication for secure access
- Enable file attachments if needed
- Set up human agent handoff
- Monitor conversations in the dashboard
Authentication
Learn how to secure your widget with token authentication