Newer Version Available
Bootstrap Embedded Chat
The Bootstrap API allows you to load all the necessary dependencies, bootstrap, and
open the chat sidebar on your website with a single function call. Use the Embedded Service code
snippet version 5.0 and later. The APIs are not available in Communities with Lightning Locker
enabled.
embedded_svc.bootstrapEmbeddedService(attributes);
Use the attributes JSON object parameter to pass information to the Embedded Chat Bootstrap API to launch the sidebar for a chat visitor. This function loads necessary scripts and dependencies and creates the Embedded Chat application.
Your attributes parameter should include the attributes from the table.
| Name | Type | Description |
|---|---|---|
| baseCoreURL | string | The URL path for an organization’s instance. |
| communityEndpointURL | string | The string representing a community endpoint. |