The Condition block allows you to specify conditions that will determine the behavior of the robot and define the direction of the scenario based on the dialogue state. It is used to create complex decision-making chains.
Arrows can be drawn from the Condition block to any number of other blocks.
| Property | Description |
¶ Basic |
|
| Label | The name of the block, displayed in the script editor but not used in the client dialogue. It is for the convenience of the user creating the script. |
| Marker | Arbitrary text used as a marker for the block. It can be used in analytics reports as a marker for block progression, allowing tracking of which blocks the robot has traversed. |
| Property | Description | |
¶ Basic |
||
| Data type | Specifies the decision-making method. Transition to the next scenario block occurs when the condition is met (AND / OR) or by default. The following fields will be displayed depending on the selected type. | |
| Default | Used to transition to a branch in case the conditions in all other arrows of this block are not met. | |
| Condition AND / Condition OR |
Transition through the branch will occur if the specified condition is met.
Condition parameters and variables are entered manually or importing conditions from a template is used. |
|
¶ ConditionsParameters (expressions) within the condition are specified. Each parameter is added in a separate field using the +Add button and removed using the minus button. In the Conditions section:
Example:
|
||
¶ VariablesEach variable is added in a separate field using the +Add button and removed using the minus button. |
||
| Name / Response field |
Variable names without curly braces and values to assign to the variables. In variable names it is allowed to use: Cyrillic letters, Latin letters, digits, dot (.), underscore (_), hyphen (-), square brackets ([]). Space is not recommended. |
|