Iterate
To ask the user recurrently for their intent
Last updated
To ask the user recurrently for their intent
Last updated
The iterate node is a special kind of ask. Where a normal ask continues the flow after a satisfied answer is given, the iterate will always return and ask the user again.
So in the following example, when the user answers "Choice A" to the question "What can I do for you?", the Smart App will answer "Choice A" and then return to the Iterate note to ask the user again.
Because of this returning behaviour, this node can be used as a menu to the different user intents this Smart App can perform.
Every time the user returns in the Iterate node the user will be asked again using a preconfigured "Repeat (1)" or "Repeat (2)" text. After the last one it will re-iterate the last question over and over again.
When providing only one text, or only two texts, it works the same way. It will simply re-iterate the last text you provided.
Other than that, this node type works exactly the same as the ask: choice.
Create a new node on your canvas of type "Iterate" by right clicking your canvas and select Iterate (default)
Provide at least one text by entering the question in the Question field, like: "What can I do for you today?
Optionally provide repeat questions in Repeat (1) and (2) that will be used to ask the user after a turn
Optionally add an __unknown__ dialog trigger to respond to the situation where none of the links match the user message
Question
The initial question
Repeat (1)
The text to use when asking the user a second time
optional
Repeat (2)
The text to use when asking user a third time. The system will keep on using this text for all following turns
optional