Authentication in Live Chat - Single Sign-On

UseResponse allows transferring user's data to live chat widget once your client is logged in.

You can pass important visitor's information from your site (names, emails, addresses, etc.) to create a context for chat conversations. If your chat operator has a set of information on a specific customer at the beginning of a conversation, each chat can be handled faster and more efficiently.

To add the ability to authenticate users in our chat, please perform the following instructions:

  1. On your server-side, you need to generate dynamically SHA256 hash of the string that includes only the user's email and security token. Example:
    To get a security token, please enable Single Sign-On in Administration » Applications, click Settings, select the OneLogin  method and grab Security Key from Integration Details. If you don't want to use Single Sign-On login, please disable the application.
    Make sure you can pass generated hash and user's details on every page of your site where you embed live chat widget.
  2. Please paste the following script on every page of your website where chat code is located. This script should deliver the hash of user's email and security key along with any user's data you want to send to UseResponse instance.
    <script type="text/javascript">
        window.onload = function () {
                token: 'ee175a021d3649359651b94622348515958ed17a54ef9d93625397cc5e68a966',
                userEmail: '',
                userName: 'Brian C.',
                properties: {
                    property_170: '',
                    property_172: '188'


property_172 is user's field id that can be taken from Administration » Custom Fields » Users or if you want to transfer other custom information to the additional chat fields.

188 is the value of a custom field.

To find out the value of a custom field, please use Inspector tool in your browser.

When you finish the setup, you will be able to recognize your customers, grab their data from your database and show that information in your chat window in UseResponse.

Clear User Session

You can clear user session every time your client or potential customer closes page in the browser or logs out the application where UseResponse chat widget is located.

You need to call JavaScript function  UR.clearChatStorage() on required events to clear user session in chat.

Is this article helpful?
0 0 0