Blocks
Blocks are the steps of an automation between the trigger and the end. After the trigger fires, add blocks to query data, compute values, branch, loop, run code, or execute actions.
Click Add Condition, Record or Action below any block to open the block menu.
The block menu
The menu groups the blocks you can add:
| Group | Blocks |
|---|---|
| Logic | If, Else If, Else, Loop |
| Data | Variable, Record |
| Operation | Action, Code |
Else If and Else appear only right after an existing condition chain that doesn't already have an Else.
Type to search the menu, or use the keyboard — / opens it, ↑ ↓ navigate, ↵ adds, and each block has a letter shortcut: I L V R A C.
Conditions
Branch the flow with If / Else If / Else
Learn moreRecords
Query data from your collections
Learn moreVariables
Declare values to reuse later
Learn moreLoop
Iterate over a list of items
Learn moreCode
Write custom TypeScript logic
Learn moreActions
Send email, call a webhook, mutate records
Learn moreData flow
Blocks run top to bottom. A block can reference data only from blocks above it:
- The trigger record (via its alias)
- Any Record blocks queried above it
- Any Variables defined above it
- Any webhook or on-demand responses captured above it
Nesting
Condition branches and loops are containers — each has its own Add Condition, Record or Action button, so blocks nest inside them and run only when that branch matches or that loop iterates.
Nesting is limited to one level deep. Inside a container, adding another If or Loop shows a warning that it would create the deepest allowed nesting. To go deeper, pre-filter data with a Record block or split the work into a separate automation.
Related
- Conditions — Branch with If / Else If / Else
- Records — Query your collections
- Variables — Reusable computed values
- Loop — Iterate over lists
- Code — Custom TypeScript
- Actions overview — Do the work