Type identifier:
ai:routerCategory: AI Operations
The AI - Router node evaluates input variables and configured route options, then chooses a single option to continue the run. Each option can optionally define a structured output schema for AI-generated data when that option is selected.
Handle | Type | Description |
|---|---|---|
|
| Starts routing evaluation. |
|
| Appears when the model is configured as dynamic. |
| schema-defined | One input handle is created for each configured variable. |
Handle | Type | Description |
|---|---|---|
|
| Triggered when routing fails. |
|
| The model's reasoning for the route. Appears when Show Model Reasoning is enabled. |
|
| Zero-based selected option index. Appears when Show Selected Option Details is enabled. |
|
| Selected option label. Appears when Show Selected Option Details is enabled. |
|
| Trigger for each configured option. |
| schema-defined | Output for selected option when that option has an output schema. |
Option | Type | Default | Description |
|---|---|---|---|
Model |
|
| LLM model used for routing. When dynamic, the |
Instructions |
| - | Router guidance passed to the model. |
Variables | array of schema |
| Input variable definitions exposed as target handles. |
Options | array of objects |
| Candidate routes. Each has a |
Show Model Reasoning |
|
| Adds the |
Show Selected Option Details |
|
| Adds the |
New AI - Router nodes start with a query string variable and two options:
General queryContact form with an object output named contactThe default contact output object includes these required string fields:
nameemailphonemessageselectedOptionIndex and selectedOptionLabel. If Show Model Reasoning is enabled, emits reasoning.option-<id>:output.error handle.