Embed Code
Add this snippet before the closing</body> tag of your website:
YOUR_WIDGET_ID and YOUR_CONFIG_TOKEN with the values from the widget configuration page. The exact snippet with pre-filled tokens is available under Chat Widgets > Installation.
For authenticated users, see Identity Verification.
Content Security Policy (CSP)
If your site uses a Content Security Policy, add the following directives to allow the widget:- script-src — allows loading the widget script.
- frame-src — allows the widget iframe to load.
Display Modes
Control how the widget appears using thedata-display-mode attribute:
| Mode | Description |
|---|---|
floating (default) | Chat popup in the corner of the screen. |
push-sidebar | Full-height sidebar that pushes page content to the left. |
overlay-sidebar | Full-height sidebar on the right that overlays page content. |
Hiding the Launcher Button
Hide the default launcher button withdata-hide-button:
Decimal.show() and Decimal.hide() to control visibility. Useful for custom trigger buttons or embedding in iframes.
Customization
Customize colors, position, and sizing withDecimal.theme(). Can be called before or after the widget loads.