Flow logic
n8n allows you to represent complex logic in your workflows.
In this section
Split with conditionals: route items down different branches with the IF and Switch nodes.
Merge data: combine multiple data streams back into one.
Loop: repeat an action until a condition is met, or until all items are processed.
Wait: pause a workflow's execution and resume it later.
Understand execution order: learn how n8n decides which branch runs first in a multi-branch workflow.
Break workflows into smaller parts: call one workflow from another to build modular, microservice-like workflows.
Convert to sub-workflows: turn part of an existing workflow into a reusable sub-workflow.
Handle errors gracefully: set up an error workflow to respond to execution failures.
Related sections
You need some understanding of Data in n8n, including Data structure and Data flow within nodes.
When building your logic, you'll use n8n's Core nodes, including:
Merging: Merge, Compare Datasets, and Code.
Looping: IF and Loop Over Items.
Waiting: Wait.
Creating sub-workflows: Execute Workflow and Execute Workflow Trigger.
Error handling: Stop And Error and Error Trigger.
Related resources
Last updated
Was this helpful?