How can you use a loop within your automation workflow

Our platform's Automation allows you complete flexibility, enabling you to design the most effective workflows, in the quickest and easiest way possible. Sometimes, it may be useful for you to create a loop between two steps in your workflow, in order to further optimize the way in which it operates. 


Let's see how you can do that:

1. Click and hold the arrow icon at the bottom of the step in your workflow which you wish to link to an earlier step in order to create a loop.create_loop_within_automation_1.png



2. Keeping the icon clicked, drag your cursor back in your workflow, and release it (drag and drop) onto the earlier step to which you wish to link the end of your workflow.create_loop_within_automation_2.png


3. In the pop-up window which appears, set the duration of your loop.create_loop_within_automation_3.png


You have two options:

i. Click on the Stop looping when tab (the default option) and type in the number of minutes, hours, days, or months (select the appropriate option from the drop-down menu) that you wish the loop to continue for.create_loop_within_automation_4.png


ii. Alternatively, click on the Loop for at most tab, and then, in the appropriate field, type in the maximum number of times that you wish the loop to occur.create_loop_within_automation_5.png


4. Click on the Save button to save the loop you just created.


Note that hovering your cursor over the looped step at the end of your workflow, colors the loop bright green, so that it may be more easily discerned within your workflow.create_loop_within_automation_6-new.png


You have now created a loop between these two steps of your automation workflow, which means that the steps included between them, will repeatedly run for each user, for as long as you have set them to do so. In our example, the loop will run for 15 minutes and will check if the recipient performing the action is Verified for double opt-in.
Don't forget to check out the easy way to merge two of the steps contained within an automation workflow, as well.