Please note that this SDK relates to LivePersons legacy chat product which receives limited support and will be deprecated in the future.
It is recommended to build future integrations on top of the corresponding messaging SDK instead.
This sample app includes information on how to work with the SDK. There are two flows:
Download the Sample App from the following GitHub repository.
Unmonitored flow
Prerequisites for un-monitored flow
- An existing Conversational Cloud site — click here to create a site.
- An existing API-based engagement window configured in Conversational Cloud.
- An existing External engagement configured in Conversational Cloud, which refers to the above API-based engagement window.
- An available user (agent) who is logged into Conversational Cloud.
Note: Please contact your LivePerson representative (other contact options: chat with us on this page, or message Support) in order to create your API-based engagement window and External engagement.
Launch your API-based window in an unmonitored flow
- From the Sample App project, open the "index.html" file in the browser.
- Once open in the browser add the following query params
/index.html?site={siteId}&lptag=false
. - An engagement button should be displayed on this page.
- Click the chat button to start a chat.
Monitored flow
Prerequisites for monitored flow
- An existing Conversational Cloud site — click here to create a site.
- An existing API-based engagement window configured in Conversational Cloud, with the context:
window
and methodName:externalJsMethodName
.
Note: Please contact your LivePerson representative (other contact options: chat with us on this page, or message Support) in order to create your API-based engagement window. - An existing Website engagement configured in Conversational Cloud, which refers to the above API-based engagement window.
Note: This is configured in the Engagement template gallery. - An available user (agent) who is logged into Conversational Cloud.
Launch your API-based window in a monitored flow
- From the Sample App project, open the "index.html" file in the browser.
- Once open in the browser add the following query params
/index.html?site={siteId}&lptag=true
. - An engagement button should be displayed on this page.
- Click the chat button to start a chat.
Authenticated users flow
Prerequisites for the authentication flow
- In our Sample App project there is an example of using Auth0 with Conversational Cloud authenticated visitors flow.
- Inside script.js you find two parameters: AUTH0_CLIENT_ID, AUTH0_DOMAIN; fill them with your own data.
- Fill the correct data in the Data Sources section in the Conversational Cloud.