Decimal object with the following methods.
Decimal.boot(options)
Manually initializes the widget. Required when usingdata-disable-autoboot.
Decimal.show(options)
Opens the chat widget programmatically. Equivalent to clicking the launcher button.Decimal.hide()
Closes the chat widget programmatically. Equivalent to clicking the launcher button again.Decimal.showButton() / Decimal.hideButton()
Show or hide the launcher button without removing the widget. Unlike thedata-hide-button attribute (which hides the button for the entire session), these toggle it at runtime — for example, hiding the launcher on certain pages or revealing it after a user action.
Decimal.show().
Decimal.shutdown()
Removes the chat widget completely. CallDecimal.boot() again to restart from scratch.
Decimal.update(options)
Updates widget metadata after initialization. Merged with existing metadata and included when escalating to a human._pageUrl and _pageTitle (query strings are stripped to avoid leaking tokens or PII). Single-page-app navigations are detected and synced automatically — you don’t need to call update() on route changes.
Decimal.theme(options)
Customizes widget appearance. Can be called before or afterDecimal.boot(). To reset to defaults, call Decimal.theme(Decimal.DEFAULT_THEME).
Colors
Pass
null for any color to reset it to the component default.
Position & Size
These options only affect the widget container in floating mode, designed for use withdata-hide-button. All values are CSS strings (e.g. '20px', '50%').
Button Position
Position the launcher button independently from the widget container.Content
theme() also accepts content overrides for the widget’s header and greeting. These can be set here or via data attributes on the script tag.