User attributes enable bot personalization, advanced flows, subscriptions to broadcasts and much more in your bot. They are a simple, but very powerful tool to bring your bot to the next level.

You can use the system attributes available in every bot like {{first name}} or {{gender}} to greet users or to segment them in the user filter for broadcasting, but you can also create your own custom attributes using plugins like User Input, Set Up User Attribute and more.

Generating User Attributes

System Attributes

System attributes are available in every bot and contain all the info the bot receives about a user from Facebook, which you can't modify. They show up as purple, while the attributes you create yourself, and which you can modify, are brown.

System attributes can also be generated by plugins like the Share Location Plugin on plugin usage. As soon as a user uses these plugins the user attributes will be available in your bot's dashboard.

Custom Attributes

You can create your own attributes using plugins like the User Input or Set Up User Attribute, JSON API plugin, but also by having a user select a quick reply.
You can overwrite existing values of an attribute by assigning another value to it.

Please note that user attributes can not contain multiple values. An exception from this is the system attribute {{rss and search subscriptions}} which contains all RSS feeds and Google/Bing searches a user is subscribed to.

Utilising User Attributes

Cards

You can access a list of all user attributes available in your bot by typing {{ in any text, gallery and list cards and show the value of an attribute to a user.

Broadcasts

The user filter in broadcasting enables you to broadcast only to users who have a particular value set for an attribute e.g. {{gender}} is "female", or {{subscribed}} is "true".

You can also create sequences based on user attributes which trigger at a specific time interval after a specific value was assigned to an attribute for a user. 

Plugins

You can use attributes in many different plugins and in many different ways. E.g. You can utilise user attributes to

Did this answer your question?