Parallel branches, loops and sub-workflows

Parallel branches, loops and sub-workflows

Do several things at once, repeat steps for each item in a list, and reuse one workflow inside another — with approvals and limits intact.

All plans Open in TR-AI4 min read
  1. 1
    Run branches at the same time
    Add a Parallel step, choose where each branch starts and the step to continue at. Each branch ends when it reaches that step, and the workflow waits for all of them.
  2. 2
    Repeat for each item
    Add a For each step, name the list (for example steps.lookup.items), the first step to repeat and where to continue. Use {{loop.item}} in the repeated steps.
  3. 3
    Reuse a workflow
    Add a Run a workflow step, choose the workflow and pass values as name=value lines. Its values come back as {{steps.<id>.vars.name}}.
  4. 4
    Follow a run
    The run’s detail lists its branches and sub-workflows with their status; open any of them to see its steps.
Tips & tricks
  • A failing branch fails the step; Retry starts fresh branches.
  • High-risk steps inside branches and loops still need an approval before them.
  • Loops can’t be nested and take up to 50 items.