When conversations are complex and responses to questions depend on attributes in external information we can make use of rules to navigate the user to the right conversation response.
Rules allow you to define segmented conversation responses based on a defined criteria.
- Rules can be authored by dragging the Rule node on to the flow builder.
- On the right panel you can add a rule by entering a name for your rule.
- Once you add the rule click on the name of the rule you added to define the criteria for it.
Authoring Rule Criteria
Each rule criteria is composed of one or more conditions and for each of the conditions you can do the following:
- Check all of the conditions (AND operation) - In this mode all conditions need to hold true for the rule to be true
- Check any of the conditions (OR operation) - In this mode any of the condition needs to be true for the rule to be true
The rule condition is composed of three parts:
- Parameter Field Name
- Field Value
|Not Equals||Number, Text, Boolean|
|Equals||Number, Text, Boolean|
|Is Not Empty||Text, List|
|Is Empty||Text, List|