Skip to main content
The component takes the init options, except target, plus three of its own. React is an optional peer dependency of @concatflow/embed: only this entry point needs it.

Door

string
A session token from your server. A new value is passed to the running assistant with setSession.
string
The public site token. Pass exactly one of session and siteToken.

Options

"bubble" | "bar"
default:"bubble"
With "bar", the component renders a <div> and the bar inside it. With "bubble", it renders nothing in place.
"auto" | "light" | "dark"
default:"auto"
string
string
string
() => Promise<string>
The latest function is always used: an inline arrow function does not restart the assistant.

Component props

(error: Error) => void
default:"console.error"
Called when widget.js fails to load or the options are invalid.
string
Applied to the bar’s container. launcher="bar" only.
CSSProperties
Applied to the bar’s container. launcher="bar" only.

Lifecycle

When the logged-in customer changes, change the component’s key. See When the customer changes.

Type