token
required

The only required option; your organization’s widget token. you can find it in Dashboard / Widget.

language
enum
default:"en"

The language of the widget’s interface.

Available options: en, fr, nl, de, pt, ar

initialMessages
string[]
default:["Hello, how can I help you?"]

Initial messages that the user sees in a new chat session. These messages will disappear once the user sends their first message.

collectUserData
boolean
default:false

If turned on, the widget will have a login-like screen to collect user’s name and email. A non-verified contact will be created based on the provided information.

extraDataCollectionFields
string[]
default:[]

Extra data collection fields besides name and email. For this setting to take effect, collectUserData must be set to true.

prefillUserData
object
default:{}

Provide initial values for the name and email inputs in the welcome screen. For this setting to take effect, collectUserData must be set to true.

bot
object

Name and avatar of the bot.

user
object
default:{}

Verified or non-verified contact data. If no data is provided, an anonymous contact will be created.

For more details and recipes, check the Authentication page.

assets
object
default:{}
textContent
object
default:"language-specific"

Custom text content to override the defaults in the widget.

theme
object

Theme customization options.

router
object

Customize routing rules between screens.

anchorTarget
enum
default:"_top"

The target attribute for all links in the AI or human agents responses. Available options: _top, _blank

  • _top opens links in the same tab.
  • _blank opens links in a new tab or window.
headers
Record<string, string>
default:{}

Custom headers to be sent with each AI action called.

queryParams
Record<string, string>
default:{}

Custom query params to be sent with each AI action called.

context
object
default:{}

Dynamic context to be sent with each send-message request from the widget.