Learn how to identify end users in your agent
endUserId
field. At the moment, this field is only set if you have created a custom client and passed in the userID when starting a new session. So in most cases, this field will be empty.
For existing integrations that we have, the channel
property in the JSON object will contain the user’s email or user ID (for example, slack user ID), using which you can identify the user reliably.
email
and a endUserId
in the JSON payload, regardless of communication channel being used.sessionId
sessionId
to your agent, you can use this to identify the user. This is especially useful if you have a multi user agent system. You can call the following API to get the user information based on the sessionId
: