Decision utility
Use the Decision utility in a Virtual Agent topic to add two or more branches that represent different paths in a conversation.
Use scripts or variable conditions to set decision branches
Each branch below a Decision utility node has a condition property. You can define the condition using the condition builder or a script that returns a value of true or false. A branch that returns a value of true is followed, while a branch returning a value of false is not. When creating these scripts or conditions, ensure that only one branch in each Decision utility node evaluates to true.
For more information, see Branch a Virtual Agent conversation with a Decision utility.
Example Decision utility node with branches
In this example, a static choice control prompts the user to select from three available colors and the selection is stored in a variable. The Decision utility control is configured with a branch for each possible selection. Each branch uses the condition builder, which returns true when the corresponding color is selected. In the example, the condition builder returns true when the choice is Red.
You can also use the Script option for branch conditions. In the following example, the script provides the same functionality as the condition builder.