How user records are created through conversations & unified in User 360?
This article provides complete information on how user records are automatically created in User 360 and unified based on AI-agent conversations.
AI-agent users are classified into the following categories:
- Unidentified user - A user whose userId is not known or captured by the AI-agent yet.
- Identified user - A user whose userId has been captured by the AI-agent.
How are unidentified records auto-created from AI-agent conversations?
When a user starts a conversation with the AI-agent and starts capturing user properties, it automatically creates a new unidentified record in User 360. A record for which the userId is unknown is considered as an unidentified record. The ongoing session is always mapped to the record in user 360 and user properties captured will be stored in that record.
The following table summarizes the behavior of userId capturing in User 360.
UserId captured for the first time | Effect |
---|---|
userId is new | The current session record will be updated with the provided userId without altering the details captured during the session. |
userId exists | The mapping switches to the existing record, and any new properties captured during the session are merged. |
UserId recaptured | Effect |
---|---|
userId is new | A new record is created using the provided userId . |
userId exists | The mapping switches to the respective record. |
What happens when a userId is captured for the first time?
In a AI-agent conversation, a user is identified through the userId and can be captured through Prompt or Variables nodes. A userId is a unique indetifier such as mobile number, email address, or any other identifier such as driving livence number.
For more details, see How to capture userId in AI-agent conversations.
The following sections explain how the current record is affected based on the provided userId.
When a new userId is captured
If the provided userId does not exist in User 360, the current record will be updated with the userId without affecting the details captured during the session.
When an existing userId is captured
If the provided userId already exists, it switches the mapping to the existing record and merges new details, without overriding the existing data. It then deletes the unidentified record.
These are the steps that take place:
It Switches to the existing record.
It then Merges the details that are not available in the existing record. For more information, see Effects of merging on user properties.
It deletes the unidentified record after merging. However, if either country or timezone is already captured in the existing record, no changes will be made to both the values as shown in the following.
Effects of merging on user properties
The following are the effects of account merging:
- Properties with single values:
- The user properties that are not present in the identified record will be obtained from the unidentified record. For example, refer to
WhatsAppOptIn
. - User properties that already exist in the identified record will be ignored and no changes will be made to them. For example,
firstName
in the above table.
- The user properties that are not present in the identified record will be obtained from the unidentified record. For example, refer to
- Auto-captured property values:
- If the existing record has blank values, the country and timezone in the existing record will be updated with the auto-captured values.
- If the existing record has some value for timezone or country, the system will skip those values without making any changes.
- Properties with list values: These values will be unified. Example:
labels
in the above table. - The Unidentified record will be deleted post-merging.
Scnerios where a user record with the same userId exists in User 360
- The client created the user record via CSV import or API.
- The same user was already identified once on a different channel.
What happens when the userId is recaptured?
There are situations where a userId may be recaptured. This can occur when a user logs out and then logs back in, or when the user interacts with the AI-agent using a different userId.
When the recaptured userId does not exist
The AI-agent will create a new record with the provided userId. This means that the AI-agent will treat the user as a new user and will not have access to any previous information or conversation history associated with that user. However, the AI-agent can still capture new information about the user's preferences and behavior going forward, which can be used to personalize future interactions.
When the recaptured userId already exists
When a user provides a new userId that already exists in User 360, the AI-agent will switch the current record mapping to the respective record that already exists. It uses information associated with that userId to personalize conversations.