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

Attribute

Type

Required

Description

type

string

always set_user_attribute_action

key

string

attribute name to set (1 <= length <= 100, must contain only letters, digits and underscores)

value

string

value to store (1<=length<= 150)

{
    "type": "set_user_attribute_action",
    "key": "name",
    "value": "John Doe"
}