Branches with conditions
A branch splits the flow into two paths based on a condition: if it is met, one set of steps runs; if not, another. Conditions compare data from previous steps, for example {{trigger.amount}} greater than 1000, {{find_contact.id}} exists or {{trigger.country}} equals ES. You can combine several conditions with AND and OR.
Typical case: if an order exceeds 1,000 euros, it goes to a manager approval; otherwise, it is invoiced directly.
Router for multiple paths
When there are more than two options, use the router. Each route has its own condition and you can define a default route for anything that does not match. For example, a support flow can classify incoming messages and send invoices to accounting, technical issues to the support team and sales inquiries to the CRM, leaving everything else in a review queue.
Combined with an AI classification step, the router becomes a very powerful triage system: the AI decides the category and the router acts on it.
Loops over lists
Many steps return lists: the lines of an order, the new rows in a sheet, the contacts from a search. A loop goes through each item and runs the inner steps for each one. Inside the loop, you can access the current item through the data selector.
Example: every morning a scheduled flow fetches overdue invoices from the ERP and, in a loop, sends each customer a personalized reminder with the amount and due date.
- A flow with a 50-item loop is still a single run: it uses 1 base credit, not 50.
- If the list can be very long, filter it before looping to save time and API calls.
- Keep the target app's rate limits in mind; a short delay inside the loop can prevent errors.
Delays
A delay pauses the run for a period of time or until a specific date, then continues with the same data. It is perfect for follow-up sequences: a new sign-up receives a welcome email, the flow waits three days and, if the user has not completed their profile, sends a reminder.
While it waits, the run shows as paused in the run history. You do not need to keep anything open: flooows is 100% serverless and resumes the run when the time comes.
Common errors
- Conditions comparing text with a number, for example "1000" versus 1000. Check the data type.
- Forgetting the default route in the router, leaving cases unhandled.
- Loops that modify the same record that triggers the flow, causing infinite runs.
- Using data from a step in a branch that did not run.