Set Attributes Action
The Set Attributes action allows you to perform an action that will set the value of one or more attributes.
There are a number of reasons you may want to explicitly set some attribute values. For example:
Setup some test data at the start of your conversation without calling out to APIs or other complex scenarios.
Initialise attributes during the conversation so that they can be reused.
The Set Attributes action is available through the Custom Actions Component ID dropdown.
It is configured by configuring it's JSON structure.
The attribute value map identifies the name of the attribute and the value it should have, while the context attribute map tells us in which context should that attribute be set to the specific value.
The example below shows how we would set the value of two attributes starter_bot_global_no_match_count and starter_bot_chat_started to specific values within the User context.
Last updated