Widget Configuration
Customize the customer-facing support widget.
Widget Overview
The widget provides:
- Contact form for customers
- Self-service article search
- Availability indicator
- Branded experience
Accessing Widget Settings
- Go to Settings → Widget
- Configure options
- Preview changes
- Save and publish
Appearance
Branding Colors
| Setting | Description |
|---|---|
| Primary Color | Button background, header |
| Text Color | Text on primary color |
| Widget Icon | Launcher icon color |
Position
Choose widget location:
- Bottom Right (default)
- Bottom Left
Size
| Setting | Options |
|---|---|
| Launcher Size | Small, Medium, Large |
| Chat Window | Standard, Large |
Custom Icon
Upload custom launcher icon:
- Format: PNG or SVG
- Size: 64x64px recommended
- Background: Transparent
Text & Language
Welcome Message
Customize greeting:
Hi there! 👋
How can we help you today?
Form Labels
Customize field labels:
- Name field: "Your name"
- Email field: "Email address"
- Message field: "How can we help?"
Button Text
Customize buttons:
- Send: "Send message"
- New conversation: "Start new chat"
Language
Select widget language:
- English
- Spanish
- French
- German
- More available
Multiple Languages
For multilingual support:
- Auto-detect browser language
- Or set specific language
Pre-Chat Form
What is It?
Form customers complete before messaging:
- Collects information upfront
- Routes to right team
- Qualifies requests
Default Fields
- Name (required)
- Email (required)
- Subject (optional)
- Message (required)
Custom Fields
Add your own fields:
| Field Type | Use Case |
|---|---|
| Text | Order number, account ID |
| Dropdown | Category, product |
| Checkbox | Consent, urgency |
Adding Custom Fields
- Go to Widget → Form
- Click + Add Field
- Select type
- Set label and options
- Set required or optional
- Save
Article Suggestions
Enable Search
Let customers search your knowledge base:
- Toggle "Show article search"
- Articles display in widget
- Customers can self-serve
Suggested Articles
Show relevant articles:
- Based on customer message
- Before sending to agent
- Reduces ticket volume
Configuration
| Setting | Description |
|---|---|
| Show search | Enable article search |
| Suggest articles | AI-powered suggestions |
| Max articles | Number to display |
Availability Display
Online/Offline Status
Widget shows team availability:
- Online: "We're here to help"
- Offline: "We're away right now"
Based On
Status determined by:
- Business hours
- Agent availability
- Manual override
Offline Message
Customize offline experience:
We're offline right now.
Leave a message and we'll reply
by 9 AM EST tomorrow.
Offline Form
Optionally hide form when offline or show reduced form.
Installation
Getting the Code
- Go to Settings → Widget → Installation
- Copy the code snippet
- Paste before
</body>tag
Code Snippet
<script>
window.RelaySettings = {
orgId: "your-org-id"
};
</script>
<script src="https://widget.relay.help/widget.js" async></script>
Platform-Specific
Instructions for:
- WordPress
- Shopify
- Squarespace
- Custom HTML
Advanced Settings
Domain Whitelist
Restrict where widget appears:
- List allowed domains
- Widget won't load elsewhere
- Prevents unauthorized use
Custom CSS
Advanced styling:
.relay-widget-launcher {
bottom: 30px;
right: 30px;
}
JavaScript API
Control widget programmatically:
Relay.open(); // Open widget
Relay.close(); // Close widget
Relay.identify({ email: 'user@example.com' });
Event Callbacks
Listen to widget events:
Relay.on('open', function() {
// Widget opened
});
Relay.on('messageSent', function(message) {
// Customer sent message
});
Testing
Preview Mode
- Make changes in settings
- Click "Preview"
- See live preview
- Iterate until satisfied
Test in Staging
Before production:
- Install on staging site
- Test full flow
- Verify appearance
- Check article suggestions
Incognito Testing
Test as new customer:
- Open incognito window
- Visit your site
- Interact with widget
- Verify experience
Performance
Load Time
Widget optimized for speed:
- Async loading
- Lazy initialization
- Minimal impact on page
Mobile Optimization
Widget adapts to mobile:
- Responsive design
- Touch-friendly
- Full-screen on small devices
Troubleshooting
Widget Not Showing
- Verify installation code
- Check domain whitelist
- Clear browser cache
- Check for JavaScript errors
Styling Issues
- Check for CSS conflicts
- Use more specific selectors
- Contact support for help
Messages Not Sending
- Check API connectivity
- Verify form validation
- Check browser console
Best Practices
Keep It Simple
- Minimal pre-chat fields
- Clear, friendly language
- Easy-to-find launcher
Match Your Brand
- Use brand colors
- Consistent voice
- Professional appearance
Test Regularly
- After site updates
- After widget changes
- On different browsers
Monitor Usage
Review in analytics:
- Widget submissions
- Article searches
- Conversion rates