Visual Customization
Colors
Set the primary color using a hex code:Position
Place the widget on the left or right:Behavior Customization
Auto-Open
Automatically open the widget after a delay:JavaScript API
Control the widget programmatically using the globalChatoura object.
Opening and Closing
Sending Messages
Event Listeners
Setting User Data
Pre-fill user information:Custom Triggers
Open the widget from custom elements:Conditional Loading
Load the widget based on conditions:Hiding the Default Button
If you want to use only custom triggers:Mobile Considerations
Full-Screen Mode
On mobile devices, the widget can open full-screen:Responsive Triggers
Advanced Configuration
Multiple Agents
Load different agents on different pages:Passing Context
Send page context with messages:Testing Customizations
- Make changes to your embed code
- Clear browser cache or use incognito mode
- Verify changes on your site
- Test on multiple devices and browsers
- Check that all custom triggers work
Troubleshooting
API methods not working
API methods not working
- Ensure script has finished loading
- Use
window.Chatouraafter load event - Check for JavaScript errors in console
Styles not applying
Styles not applying
- Verify hex color format is correct
- Clear browser cache
- Check for CSS conflicts (rare with Shadow DOM)
Events not firing
Events not firing
- Verify event names are correct
- Ensure listeners are added after script loads
- Check for duplicate event listeners

