Skip to main content

Features & Customization of LiveChatAI

Visitor Identification API

LiveChatAI now offers a powerful new feature - Visitor Identification. With this feature, you can identify your logged-in users without the need for email addresses, allowing you to know that the person you're chatting with is your real customer.

  • Verified & Identified Users: Visitors who are successfully identified will appear as "Verified" in your chat inbox. This makes it easier to differentiate genuine customers and provide them with personalized support.
  • Seamless Cross-Device Experience: With Visitor Identification, your customers can access their chat records across different browsers and devices, ensuring a seamless and consistent experience.

How to Use Visitor Identification

  • To identify your visitors and keep their conversation history when logged, you can use our identify feature.
  • You can set an identity object whenever you want; the script will watch changes made to that object and trigger an update.

window.lc = window.lc || {};
window.lc.debug = true; // add if you want to debug integration, remove on production
window.lc.identity = {
  distinctId: 'unique_id', // required, unique identifier for your user
  email: "john@popupsmart.com", // optional
  name: "John Doe", // optional
  phone: '905054442211' // optional
};

  • If you are using typescript, you can add this to your global namespace to enable types.
interface IdentifyEventData {
  distinctId: string;
  email?: string;
  name?: string;
  phone?: string;
}

declare global {
  interface Window {
    lc: {
      identity?: IdentityData;
      debug?: boolean;
    };
  }
}