Branching by rules without cluttering the canvas
The Router (action_router) sends the flow down different branches based on rules: variables, comparisons, placeholders. Instead of many small check nodes, you define conditions in one place.
How modes work
- first_match — the first matching rule wins; execution follows that branch.
- all_match — several rules may apply (see the UI and router parameters).
Rules and the canvas
Rules in the inspector map to outputs on the node: each rule connects to its next node. You can add a default branch if nothing matches.
Example uses
- Different paths by language or channel.
- Branch on a variable set earlier in the flow.
- «If A — path X, if B — path Y» without custom code.
Add a router
- Add Router from logic / templates.
- Choose mode (first_match / all_match).
- Add rules with conditions and branch ids.
- Enable default_branch if needed.
- Wire outputs on the canvas.
Field details: Router parameters.