The repeater module in Make (formerly Integromat) lets you repeat actions in your scenario as many times as you specify.
Essentially, itâs a tool for building loops within your scenarios. This could be useful for sending out repeated reminders, creating several similar pieces of data, or any other situation where you need to repeat an action multiple times.Â
If youâre looking to loop through the contents of an array or list, youâll probably want to use the iterator instead. Check out our tutorial on using the iterator in Make here.
Setting up the repeater module
Create a scenario with a trigger and an action
Before you add a repeater, youâll want to build a scenario that has a trigger module and at least one action module.Â
â
In our example, our scenario will run whenever it receives a webhook, and will send two Slack messages. The first will say âFirst repeater messageâ, while the second will say âSecond repeater messageâ.Â
If we run it now, weâll see both of those messages appear in Slack - just one time each.
Add a repeater from âFlow controlâ
To add a Repeater module, click on the green âFlow controlâ icon and select âRepeaterâ from the list.Â
Place your repeater module before all of the actions that you want to repeat. Weâll place ours before both of the Slack modules, so they will both be part of the loop.Â
Click on your repeater module to configure it. Youâll see two options: âInitial valueâ, and âRepeatsâ.
âInitial valueâ is the number the repeater will start at. This defaults to 1, which is what youâll usually want to use.Â
In the âRepeatsâ field, you can set how many times the loop will repeat. The default is 3, but you can choose any number youâd like.Â
(Optional) Adjust the Steps interval under âAdvanced Settingsâ
Thereâs also one more option that you can access by clicking on âShow Advanced Settingsâ.
The âStepsâ field lets you determine how much your initial value will increase each time the loop runs.Â
If you leave your âStepsâ value at the default of 1, then the repeater will generate the number 1 with your first repetition, the number 2 with your second, three with your third, and so on.Â
But by changing the value, you could have the number increase by any amount you want. You could even use negative numbers to subtract from your initial value with each repetition.Â
For instance, you might want to send out reminders at 5 minute intervals. So you could set the initial value to 15, then set the step to -5, and send a message every 5 minutes using those values.Â
Configure and test the repeater
For now, weâll just keep things simple. Weâll start at 1, and increase by 1 each time, with 4 total repetitions. Weâll also add the âiâ value from each repetition into our Slack message, just so we can see how it increases each time.Â
When we run the scenario, we see 8 messages. Both of the Slack messages got sent 4 times, with the âiâ value increasing by 1 in each loop iteration of two messages.Â
That covers all the basic info you need to know about the repeater module itself. But what if you want to include an action in this scenario that doesnât get repeated?
How to add actions outside of the repeater loop
In many scenarios with a repeater, you may also want to include actions that only run once. There are two simple ways to add actions that only execute a single time.Â
Add actions before the repeater
First, you can just add the actions before the Repeater module. Anything thatâs placed before the Repeater in your diagram will only run once.Â
For example, weâll add another Slack message before the repeater that sends the message âThis module runs before the repeaterâ.Â
When we run the automation, we can see that we got our âbeforeâ message only once, while the subsequent messages still repeated as intended.Â
Add actions after the repeater loop with a filter
Your second option is to place the action after your repeated modules, and use a filter to prevent the scenario from executing the action until the repeater has completed. You can check the screenshots below for an example.
Weâll add one last Slack module at the end of the scenario, and the message will simply read âThis module runs after the repeaterâ.Â
Then, weâll add a filter right before this module. Weâll give it a label that says âRepeater Finishedâ. In the âConditionâ section, weâll specify that the i value from the repeater must be equal to 4 for the scenario to continue.Â
In other words, the scenario will only continue past this filter if the repeater has run 4 times, raising the initial value (or i) up to 4.Â
Note: If youâve changed the initial value or the step value, make sure to consider that when youâre setting up a filter like this.Â
Weâll run the scenario one more time, and we can see one âbeforeâ message, 4 repeated pairs of messages, and just one âafterâ message.Â
Build efficient automations with repeater loops
Now you should be all set to start adding repeaters to your Make or Integromat scenarios. Theyâre easy to implement, and theyâre a simple way to add useful loops to any of your automations.Â
If youâd like to learn more about building no-code automations, check out our blog or our YouTube channel. You can also follow XRay on Twitter, Facebook, or LinkedIn.
â