Back to How-to Guides Each channel provides a unique user identity—such as a Twitter handle, Facebook ID, email address, phone number, or customer ID. The platform maps these identities to a consistent internal user record for each AI Agent. When a conversation starts, the platform checks whether the channel-provided identity matches a previous user for that AI Agent:Documentation Index
Fetch the complete documentation index at: https://koreai.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
- Match found — The user is marked as returning:
{{context.BotUserSession.isReturningUser}}is set totrue. - No match — The user is marked as new.
isReturningUser flag to implement different business logic for new versus returning users.