Set Variable

The Set Variable action An instruction within a botflow. stores a value in a specific variable. To set the values of multiple variables in a single action, see the Set Variables action.

Using the Set Variable action, you can:

Some examples of using the Set Variable action are:

  • Setting the value of a formula to evaluate data.
  • Concatenating together text.
  • Setting the value of a set of tokens to aggregate data.

Note: The Actions Quick Reference provides a complete list of actions that you can print for easy reference.

Add a Set Variable action to a botflow

  1. On the Actions list, click Data and then select Set Variable from the Variables list.
  2. Record the Set Variable settings.
    • Variable: Type a variable in the Variable field.
    • Value: Type a value in the Value field.

  3. If needed, adjust the Run Switch setting to create the action without running it.
  4. Optionally, add an action note.
  5. Click OK to add the Set Variable action to the botflow. When the action is run in the botflow, the value is stored in the specific variable.