Use the identify() JavaScript call to pass us the logged-in user's identity. We then show the agent the visitor's name, their past conversations, their order history (if connected), and any custom traits you pass.
JavaScript example
After login, call window.MessageCom.identify({ id: 'usr_123', email: '[email protected]', name: 'Jane Doe', plan: 'business', lifetime_value: 4200 }). See /developers/widget/identifying-visitors for the full API.
Identity verification
For high-trust workspaces, enable identity HMAC verification. We give you a secret, you HMAC-sign the user_id, and we reject identify() calls without a valid signature. Prevents impersonation in customer accounts.