The more you collect and save information about your users, the more you can customize and personalize their experience by tracking and segmenting them, enabling text personalization, or customizing advanced flows.
You can do this and much more using user attributes.
What are User Attributes?
User Attributes, in the simplest definition, is a user’s data that you save. You can later use this data to better target your users and make their experience even more personalized, such as using an attribute to greet users with their first names.
There is data that we automatically receive from Facebook about users once they start using the chatbot. This data is usually their first name, last name, profile photo, locale, timezone, and gender; however, if your chatbot registers users through phone numbers, such as WhatsApp bots, you may not receive this data.
Other than the data that Facebook provides you, you can also define your attributes using the Set Attribute button that is in the flow-building area in the playground.
These are all the existing attributes that you can readily use. The conditions help you when you're using the attributes to filter users or define the conditions for user inputs.
Once you define a user attribute, you can set values for these attributes according to user input, quick replies input, or set an attribute by yourself.
You can set value for a user attribute anywhere in the flow.
Just select your user attribute or create one with any of the mentioned attribute types and set a value for it.
For example, suppose you want to label users who have checked out a specific product (flow of product) so that you can re-target them later with an offer relevant to this product. In that case, all you have to do is define a text attribute called “last_checked_product” and set its value “watches” (or whatever the product is).
Keep in mind: you can only set values for defined attributes; you can’t change values for system attributes such as first_name and so on.
What happens after setting values for attributes?
Now that you’ve collected information about your users, you can start personalizing their experience with your chatbot.
You can use these attributes, whether system or defined, to customize go-to flow conditions, customize dynamic text, or customize JSON API requests.
You can also use them to segment users in broadcasting or customize your bot Analytics.
You can redirect your users' segments to a specific flow to personalize the conversational experience for them using go-to flows.
All you need to do is select the flow you want to redirect the user to and apply personalization conditions.
To add a condition to your attribute:
Please select the attribute you want to add a condition to, how the condition is defined, and what is the condition itself.
Select “Any” to redirect your user to the flow if any of your user attributes apply
Select “All” to make sure all conditions are valid to redirect the user to the flow