Configuration Reference#
This page lists the options of initNeoSdk() and NeoSdk.mount(). On a <neo-chat> element, each option except onWarning and items is a property of the same name. On <neo-items>, set filters, sort, initialFilters, and onFiltersChange as properties of the element. For the attributes of <neo-chat>, see the Element Attributes section. For how each option fits into a page, see the Embedding Neo Chat in Your Own App or Site page.
Options#
Option |
Description |
|---|---|
|
The URL of your proxy, including its mount path. Required. |
|
The Squirro project to answer from. Required. |
|
|
|
Returns your session token, as a string, as |
|
How long a token without an expiry is trusted, in milliseconds. Defaults to five minutes. |
|
The colors, corner rounding, font, mode, and preset of the chat. |
|
|
|
The page context for answers: |
|
|
|
Lifecycle notifications, such as |
|
|
|
Replacement text for the labels of the chat, for another language or your own wording. The defaults of the welcome are |
|
Replacement text for the document view of this instance: the overlay that its citations or search results open, and a |
|
Hooks into the chat, for example |
|
Turns optional chat features on or off.
|
|
The defaults for every search widget of this instance: |
|
Receives the warnings of the SDK, such as a refused download. Defaults to |
|
|
Theme Keys#
The theme option takes the following color keys. For mode, dark, fontFamily, fontSize, and preset, see the Colors and Fonts section of the Add the Chat to Your Page page.
Key |
What it sets |
|---|---|
|
Buttons, links, and highlights. |
|
Text on |
|
The surface and the body text of the chat. |
|
Secondary surfaces and quieter text. |
|
Borders, hover surfaces, and errors. |
|
Corner rounding, for example |
Events#
The events option reports the following events:
Event |
Fires when |
|---|---|
|
The first question of a new conversation is sent. |
|
A question is sent. |
|
An answer is final. It carries the answer text and its sources, and a |
|
An answer ends in an error. |
|
The agent is waiting for the reader to approve an action. |
|
The floating panel opens or closes. |
Element Attributes#
The <neo-chat> element supports these attributes:
Attribute |
Description |
|---|---|
|
The URL of your proxy. Required. |
|
The Squirro project to answer from. Required. |
|
|
|
|
|
|
|
|
|
How long a token without an expiry is trusted, in milliseconds. The |
|
|
|
Space-separated origins or URL prefixes that count as your site. See the Links in Answers section of the Connecting the Chat to Your Page page. |
|
|
|
|
|
When present, or set to |
|
The heading of the empty chat and the line under it. See the Welcome the Reader section of the Add the Chat to Your Page page. |
|
Questions that the empty chat offers, separated by |