How Gateways Work
A gateway node has:- Input ports that receive data
- A default output port
- Branch output ports that you define
Defining a Gateway Node
Adding Branches in the Editor
When a user clicks on a gateway node, the configuration panel shows a Branches section:- Click Add Branch
- Enter a branch label (e.g., “Yes”, “No”, or “Question”, “Task”)
- Each branch creates a new output port on the gateway node
- Connect each branch output to the appropriate downstream node
If/Else Pattern
For simple true/false routing:Switch/Case Pattern
For multi-way routing:Backend Implementation
Your backend decides which branch to activate. The workflow JSON stores branches in the node’s data:Connection Validation
Gateway branch outputs use the same data type as the gateway’s input. FlowDrop validates that downstream nodes have compatible input ports.Next Steps
- Node Types — all 7 built-in node types including gateway
- Edge Structure — how edges reference branch ports
- AI Agent Workflow — full example using gateway routing