Skip to main content

End Users

End users are the people who interact with your embedded Char AI widgets.

User Tracking

Char AI automatically tracks end users to:
  • Maintain conversation history
  • Provide personalized responses
  • Enable analytics and insights

User Identification

You can identify users to maintain context across sessions:
const widget = new CharWidget({
  apiKey: 'char_sk_live_...',
  user: {
    id: 'user_123',
    email: '[email protected]',
    name: 'John Doe'
  }
});

Anonymous Users

When no user ID is provided, Char AI creates anonymous sessions using browser fingerprinting.
Anonymous sessions persist within the same browser but don’t sync across devices.

User Data

Track custom attributes to enhance AI responses:
widget.setUserData({
  plan: 'premium',
  company: 'Acme Inc',
  role: 'Developer'
});