Skip to main content
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:
  • Match found — The user is marked as returning: {{context.BotUserSession.isReturningUser}} is set to true.
  • No match — The user is marked as new.
Use the isReturningUser flag to implement different business logic for new versus returning users.