token
required
The only required option; your organization’s widget token. you can find it in Dashboard / Widget.
language
ar | de | es | en | fr | nl | pt
default:"en"
The language of the widget’s interface.
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.
persistentInitialMessages
string[]
default:[]
Similar to initialMessages, but these messages will persist at the top of the chat session.
initialQuestions
string[]
default:[]
Suggested initial questions that the contact sees in a new chat session. If a user clicks on one of the suggested questions, the widget will send it as the user’s first message.
initialQuestionsPosition
above-chat-input | below-initial-messages
default:"above-chat-input"
Where to display the suggested initial questions.
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.
isOpen
boolean
default:false
Whether the widget is open or not.Can be used to have the widget open by default (useful when embedded in a webview for a mobile app). Also useful to open and close the widget programmatically.
openAfterNSeconds
number
default:"undefined"
Automatically open the widget after N seconds.
cssOverrides
string
default:"undefined"
A custom vanilla stylesheet to override the default styles.You will need to use the selectors to target the elements you want to override. Inspect the DOM and look for things that look like data-component="chat/input_box/root".If you want to customize a component and it doesn’t have a selector, let us know and we’ll add it.
theme
object
Theme customization options.
router
object
Customize routing rules between screens.
anchorTarget
_top | _blank
default:"_top"
The target attribute for all links in the AI or human agents responses.
  • _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.
bodyProperties
Record<string, string>
default:{}
Custom body properties to be sent with each AI action called.
context
object
default:{}
Dynamic context to be sent with each send-message request from the widget.
messageCustomData
object
default:{}
Dynamic custom data to be sent with each contact message. This custom data is intended for human use only; the AI will not see it and it will not affect the AI’s response.