Iterate: continue
Breaks out of the iteration and continues the flow with the next node after the Iterate node
Last updated
Breaks out of the iteration and continues the flow with the next node after the Iterate node
Last updated
To break out of an iteration node this Continue node can be used. It will stop the iteration and invokes the next node after the iteration. See this example:
The flow will iterate the "What can I do for you" until the user responds with "Done" in this particular example. When the user responds with "Done", the Iterate: Continue step will simply break the iteration cycle and executes the next step after the "Iterate: iterate" node, which in this case is the right hand flow that starts with saying Bye and then closes the conversation.
You could also have bot the Bye and close steps directly at the "Done" response flow. That would have worked perfectly fine too. However, when using multiple Iteration nodes in your Smart App, you might want to consider this Continue step. The continue will then break the current iteration and falls back automatically to the iteration that triggered this one in the first place. For instance when you designed a nested menu structure like this: