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.

The exit survey will be displayed after the chat has ended if one was configured for the account.




Value Description Type Required Notes
surveyName A specific survey for which the name is known. string Optional Otherwise the server will determine the appropriate survey.
surveyApiId A specific survey ID you know on the server. string Optional  

Sample code

var failedRequest = myChat.getExitSurvey({
    success: myChat.handleExitSurvey,
    error: myChat.noSurveyRecieved,
    context: myChat

if (failedRequest && failedRequest.error) {