Set user attribute
The ‘Set User Attribute’ node allows you to set values for user attributes. These attributes can be used to track and identify users across different channels and devices.
The Set Attribute node allows you to assign values to attributes within the chatbot flow. Attributes act like variables to store information that can be reused.
Some example uses cases for Set Attribute:
- Save a user's name or email after collecting it
- Set a flag after an action is completed
- Store a support ticket number
- Remember user preferences
Adding a set attribute node is simple, just follow the steps below:
Step 1: In the builder, click "+Add Node".
Step 2: Select the Set Attribute node under Process and Flow.
Step 3: Specify the attribute name and value to set.
- Name : You can select a pre-existing attribute or create a new attribute by clicking on create ‘attribute name’.
- Type : This represents the type of attribute and the format it will support, meaning if the type is Text then it will take any text input. If the type is Number then it will accept only Number types, and you can use attributes of the same type itself. An attribute having the type Text cannot be used for storing values from an attribute that has a Number type.
- Set Value : You can add values manually into it to be updated into the corresponding attribute or you can update them via another attribute.
- Clear Attribute Value : This option will clear or empty out the above attribute.
Step 4: Click "Save" when done.
The Set Attribute node will assign the value to the attribute when executed. The variable can then be referenced anywhere later in the conversation flows.
Attributes enable information persistence and reuse throughout the bot!
If you face any issues or queries please reach out to us at [email protected].