Set Variables

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

Using the Set Variables action, you can:

Some examples of using the Set Variables action are:

  • Setting the values of a formula to evaluate data.
  • Setting the values 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 Variables action to a botflow

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

  3. Click the plus sign (+) to add additional variables and values.
  4. Select the variables and values that you want to include in the action when it is run.
  5. If needed, adjust the Run Switch setting to create the action without running it.
  6. Optionally, add an action note.
  7. Click OK to add the Set Variables action to the botflow. When the action is run in the botflow, all of the variables selected are set to the assigned values.