You will have to specify appropriate conditions inside the condition node for it to work. The condition node helps us specify what the bot should do when a specific condition is satisfied. The two options that are currently available on the Condition node are:
- Define a Function(using Node JS)
- Define a Step Value Rule
The 2nd option would be viable here.
A Step Value Rule allows us to define the condition based on the parent step’s value(Here the parent step would be callFeedback).
To specify a Step Value Rule, click on the Condition upon which this rule is to be applied and click on the ‘Step Value’ icon.
For example, In the image below we can see that there are two Step Value Rules. It checks the value of the rating step based on which it decides the step that it should move to next. Here we’re moving to the ‘reason’ step when the value of the ‘rating’ step is less than or equal to 3 and we move to the ‘response’ node if the rating is greater than 3.
Note: The value of the rating step is decided based on the type of prompt that is used. For example if a quick reply is used as a prompt in the rating step above, When we click on the quick reply button, the value of the step would then be the value specified in the ‘text’ attribute of the quick reply.
When we enter any free text, the value of that step would be the value that was entered in the text box. We generally use Validators to control this kind of input.
I hope this helps.