See how to create a loop in your flow. It can restart the flow from its very beginning or from a chosen action.
In this article, you'll learn:
Create a loop in your flow
If you have a flow (an FAQ flow, for example - for more information, see our article on how to create one) that you'd like to run again every time an action is finished - you can create a loop that will restart the flow from the very beginning.
Right now, this feature is available in the flow editor directly. You don't even need to follow the manual instructions below to create a loop; you can do that straight from your flow's editing map.
To do that, choose an action - a point from which you'd like to create a loop. Then drag a connection line from that action to an earlier 'Decision' action. (It can also be a different action, such as the 'send a message' one but it needs to have the 'decision' action on its workflow). That way, the user will be able to go back to an earlier step in the decision-making, and perhaps choose a different path.
That's all. You've now created your loop!
Alternative method
Here is a step-by-step guide on how to implement a loop into your existing flow:
Add the 'Visitor clicks the Flow Launcher button' trigger
To add the 'Visitor clicks the flow button' trigger - go to the right side of your flow editor, and open the 'Triggers' section. Drag the 'Visitor clicks the flow button' node onto the map and connect it with the first action in your flow:
Make sure to add an appropriate name as well, as it is going to be used in the Flow Launcher list:
By adding the Visitor clicks the Flow Launcher button trigger - you connect this flow with the Flows Launcher tool. This allows your website visitors to click on the flow and activate it again from the beginning.
Add the 'Flow ended message' action
Now, go to the Actions section on the right and drag the Flow ended message node onto your flow's map. Place it at the very end and connect all the final messages to that action:
The loop is now created! Every time your customer arrives at the end of the flow - it will restart and allow the visitor to see all the possible actions again.
Edit the last message sent by the flow
If you'd like to edit the message sent when the flow is finished, you can change it in the main Flows section. Scroll down to the 'Flow ended chat message' section, found under the 'Flows Launcher' list at the bottom.
All done, now your looped flow is ready to use!
Comments
0 comments
Please sign in to leave a comment.