Logic Nodes
Logic nodes control the flow of your workflow. Use them to create branches based on conditions, enforce rate limits, and explicitly terminate execution paths.logic.switch
Deterministic branching based on conditions. The Switch node evaluates a set of conditions and routes execution to the matching branch. It works like a series of if/else-if checks with a default fallback.Configuration
Outputs
Each condition creates a labeled output handle on the node, plus a default handle for messages that match no condition.Connections
- Inputs: Single input handle from the previous node
- Outputs: One handle per condition + one default handle
Example Use Case
After an AI Router classifies a message as “billing,” “support,” or “sales,” use a Switch node to route each category to a different AI Respond node with a specialized system prompt. The default branch can route to a generic help response.logic.rate_limit
Spam and cost prevention with built-in counters. The Rate Limit node tracks message frequency and throttles processing when limits are exceeded. This protects your AI token budget and prevents abuse.Configuration
Outputs
Connections
- Inputs: Single input handle from the previous node
- Outputs: Two handles:
allowedandrate_limited
Example Use Case
Place a Rate Limit node after the trigger to cap each contact at 20 messages per hour. Connect theallowed output to your AI processing flow, and the rate_limited output to a polite “please slow down” message or a logic.end node.
Rate limits use atomic counters, so they work correctly even under high concurrency with multiple messages being processed simultaneously.
logic.end
Explicitly terminate a workflow run. The End node stops execution of the current branch. Use it to cleanly terminate paths that don’t need further processing.Configuration
No configuration options. This node simply marks the end of a branch.Outputs
None. This is a terminal node.Connections
- Inputs: Single input handle from the previous node
- Outputs: None (terminal node)