Set user attribute

Set attributes on your users which will be persisted.

Save an attribute associated to an interlocutor.
This attribute will persist forever, unlike session values which die at the end of the story where they were set.

It can be very useful to transmit valuable information from your database to the bot, and build more intelligent conversations.

Available on :

  • all platforms
AttributeTypeRequiredDescription
typestringalways set_user_attribute_action
keystringattribute name to set (1 <= length <= 100, must contain only letters, digits and underscores)
valuestringvalue to store (1<=length<= 150)
{
    "type": "set_user_attribute_action",
    "key": "name",
    "value": "John Doe"
}