Add condition node

Using the Add Condition node, you can easily personalize the user experience. When the skill flow reaches the Add Condition node, it checks whether the specified variable value satisfies the condition and branches the skill accordingly.

Nodes and editor

Node icon: Located on the top node bar. Click to create an Add Condition node.

Variables: Shown as a pink box and lets you view the variables used by that node.

Option: The editor displays 'options' that branch the skill according to conditions.

Change option order : Drag the = shaped icon to change the order of options. The Add Condition node checks whether conditions are met from the top option down, so this is an important feature.

Other: Click the (vertical ellipsis) icon to copy or delete that option.

Add option: Press the '+ Add option' button to edit a new option in the editor. An option is a set of specific conditions.

Option Menu

Go back: Click the < shaped icon to return to the editor main screen without saving.

Select variable: In the first box, select the variable whose value will be checked.

Condition type: In the second box, select the type of condition determined by the variable format.

Comparison value: In the third box, enter the value to compare against the variable's value. You can type it directly or specify another variable. Click the gray icon to toggle between direct input and variable selection.

Delete icon: Click the minus icon on the right to delete that condition.

Add condition: Add a new condition to check with 'AND' logic.

Apply: Save and return to the editor main screen.

Example skill flow

Below is a simple example of how to configure and use the Add Condition node in practice.

When the skill reaches the above Add Condition node, the following steps occur in order.

  1. First, it checks whether the @CITY variable's value is 'New York'. If so, it outputs the text 'I love NY!' and proceeds to the Q&A answer node. If not, it checks the next option as shown in #2. If not, it checks the next option as shown in #2.

  2. It checks whether the @CITY variable's value is 'Los Angeles' and at the same time whether the @CUSTOMER_AGE variable's value (numeric type) is less than 25. If both are satisfied, it outputs 'Welcome young Angeleno!' and proceeds to the Q&A answer node. If not, it proceeds to #3.

  3. Follow the 'Other' path, display the text 'Welcome!', and then proceed to the Q&A answer node.

The options of the Add Condition node can use any variable, including System variablesarrow-up-right, so get creative to highly personalize the skill flow — be sure to try it out.

Update on 6/4/2020

  • You can specify a variable as the comparison target value. Click the icon to the left of the comparison value input field to switch between constant and variable.

  • A new condition 'Similar to' has been added. You can adjust the similarity value to determine how similar it must be.

Last updated