User types

|

View as Markdown

Anyone who interacts with your business through Live Chat is a user. By default, Live Chat users are unauthenticated and have limited access to features and chat history. You can authenticate users by providing a unique identifier, such as an email address or phone number.

Leads and customers [#leads-and-customers]

Live Chat automatically tracks each user in Customer Profiles (People), which distinguishes between two user types: Leads and Customers.

All unauthenticated users get a Lead profile. After authentication, Live Chat automatically promotes them to Customer.

The following table compares unauthenticated and authenticated users:

CapabilityUnauthenticated user (Lead)Authenticated user (Customer)
Chat historyLimited access to chat historyPersistent chat history
IdentificationNo unique user identifierUnique user identifier, such as an email address or phone number
Multiple devicesNo access to chat history across devicesAccess to chat history across multiple devices
NOTE

Chat history retention is subject to the Data retention settings of your account. Mobile users with a profile in Customer Profiles (People) keep their chat history regardless of their Lead or Customer status. For details, see Authenticate mobile users.

To keep authenticated users as Leads, configure your widget to prevent the automatic promotion.



Chat history [#chat-history]

Live Chat shares chat history differently for each user type:

  • Leads: Live Chat shares the chat history of leads automatically across multiple tabs of the same browser. The Unauthenticated chat history retention setting controls how long the widget retains the history of leads. By default, the widget stores the session of a lead and its history for 24 hours.
  • Authenticated users: Live Chat shares the history of authenticated users across all sessions of the customer. For example, a customer can be logged in to the mobile app and have a session on the website. Live Chat syncs all messages in real time.


User authentication [#user-authentication]

Live Chat supports authentication before a user starts a chat session or after the user begins chatting. If you authenticate a user who already has a chat history, the authenticated user inherits that chat history.

When you authenticate a user for the first time, Live Chat automatically creates a profile with the provided unique identifier. This happens only if a Person profile with that identifier does not already exist in Customer Profiles (People).

The authentication method depends on where the user chats:

  • Website: Live Chat uses a personalization token, a JSON Web Token (JWT) signed with the secret key of your widget. See Authenticate web users.
  • Mobile app: Live Chat uses the Mobile SDK to manage users in Customer Profiles (People). See Authenticate mobile users.


User de-authentication [#de-authenticate-users]

Typically, you authenticate users with Live Chat when they log in to your platform. Always de-authenticate users when they log out of your website or app, and before you authenticate a different user. Otherwise, the session and chat history of the previous user stay in the widget. On a shared device, the next user can see them. If you call auth while a user is still authenticated, the command fails with the ALREADY_AUTHENTICATED error.

Use one of the following methods to de-authenticate users:



Related pages

Authenticate web users
Generate a personalization token and submit it to the web widget.

Authenticate mobile users
Manage mobile users with the Mobile SDK and add token-based security.

Installation and security
Manage secret keys, mobile authentication, and lead settings for your widget.


Was this page helpful?