Loop

Repeat actions in a controlled way using the Loop flow component:

You can select the Loop Type and the Data you want to loop over, mapping it from previous flow steps.

  • Loop N times: Run a block a fixed number of times.

  • Loop over data: Iterate through each item in a list.

  • While loop: Keep looping as long as a condition is true.

Use End Loop to mark where the loop finishes.

In the example shown, the Loop Type is set to Loop over data, and the Loop Data field is mapped from a previous step:

{{steps.sendMessage.output.message.blocks}}

This means the loop will go through each block inside the message output from the sendMessage step, allowing you to process every block one by one.

Last updated

Was this helpful?