Attributes
This page details the possible attributes that can be used when Installing the widget
Last updated
This page details the possible attributes that can be used when Installing the widget
Last updated
These attributes will modify the behaviour of the widget and how the agent will respond to messages.
Attribute | Type | Description |
---|---|---|
These attributes will modify the behaviour of the widget and how the agent will respond to messages.
Attribute | Type | Description |
---|---|---|
These attributes are used to change the behaviour of your widget
Attribute | Type | Description |
---|---|---|
apiKey
string
The API key of your project can be found in your project/implementation page.
language
The current language of your website visitor. Must be ISO 639-1
open
boolean
Standard open the widget
hide
boolean
Hide or show the widget on your website.
config
Widget specific configuration. This will change the behaviour of your widget
context
record<string, Boolean | number | string | undefined>
Extra context that should be used by the agent to provide accurate answers.
customerData
Data to identify the current customer.
apiKey
string
The API key of your project can be found in your project/implementation page.
selector
string
Select the HTML tag where in the widget must be embedded.
Works the same as document.querySelector
language
The current language of your website visitor. Must be ISO 639-1
context
record<string, Boolean | number | string | undefined>
Extra context that should be used by the agent to provide accurate answers. Closed beta feature
customerData
Data to identify the current customer.
notificationsEnabled
boolean
Allow notifications to be shown when widget is closed. Default this is enabled.