- Home
- Resources
- Integrations
- Model Selector
n8n Model Selector nodeConfigure Model Selector in n8n.
One agent, several language models, and a rule that decides which one answers. The n8n Model Selector node is a sub-node, a helper block that plugs into a bigger node instead of running on its own. It carries 2 parameters and accepts up to 10 chat models on its inputs.
Verified Trustpilot reviews · AI, automation & growth agency
What does the n8n Model Selector node actually do?
It picks one language model out of several at the moment a workflow runs. You connect two or more chat models to its inputs, you write rules on the data flowing through, and the node hands the matching model to whatever root node it feeds. A root node is the node that owns the execution, such as AI Agent; the Model Selector sits beside it as a sub-node and never runs alone.
First scenario, routing by how hard the request is. A support automation receives tickets of very different weight. A rule reads a field from the incoming item, something like {{ $json.category }}, and sends short password resets to the first model input while contract questions go to the second. The rule set lives in one node, so changing the split later means editing a condition, not rewiring the workflow.
Second scenario, a fallback path. The node evaluates its rules in order and stops at the first match, so the last rule can act as a catch-all that points at a model you keep for anything the earlier conditions did not describe. That ordering is the whole behavior worth remembering: two rules that both match never both apply.
Third scenario, matching the model to the task inside one agent. A workflow that summarizes long documents and also classifies incoming mail does not need two separate branches. One AI Agent with a Model Selector in front of it covers both, with a condition on the task field choosing between the model you connected for classification and the one you connected for long text.
When to skip this node: if the workflow only ever calls one model, connect that chat model straight to the root node. The Model Selector earns its place when the choice depends on the data. It also has no main input, so it cannot sit in the middle of a chain of regular nodes, and it does nothing to the prompt itself.
The models you connect stay ordinary sub-nodes, with their own credentials and their own providers, whether that is OpenAI, Anthropic or Google Gemini. If you are still weighing the platform itself before building any of this, the n8n review covers that ground.
Where does the Model Selector plug in?
n8n splits its AI nodes in two: a root node receives the workflow items and does the work, while sub-nodes attach to its ports, one kind of sub-node per port. Model Selector is a sub-node, and it occupies the port a chat model would normally take.
Output (what it plugs into)
- Chat Model
ai_languageModel
01Chat Model
This is the port the node connects to on the root node above it. The root node asks for a language model and receives the Model Selector instead, which resolves to one of its own models at execution time.
Key parameters
- Required: the root node above it asks for one chat model to run at all, and refuses to execute while that port sits empty.
- AI Agent and Basic LLM Chain: the two most common places to attach it, one for tool-using agents, one for a single prompt and answer.
- Question and Answer Chain and Summarization Chain: both accept it too, which is how a document pipeline switches models per run.
Which parameters does the node expose?
The Model Selector node has 2 parameters. For each one: the node as you configure it in n8n, what the parameter changes, and our field notes.
Parameters index
Number of Inputs
numberInputsWhat you see in n8n
Notes & use cases
Sets how many model connections the node shows on its left side. Raise it and new input sockets appear, ready for another chat model; lower it and you give up the sockets you are not using.
Key parameters
- Number of Inputs: a dropdown running from
2to10, the number of data inputs you want to merge, and the node waits for all connected inputs to be executed.
2 for a primary model and a fallback, then move up as you add a model per task. Set it before writing rules, since each rule points at an input by its position.Rules
rulesWhat you see in n8n
Notes & use cases
Holds the logic that maps workflow data to a specific model. Each entry pairs a condition with one of the connected inputs, and n8n reads them from the top, stopping at the first one that matches.
Key parameters
- Rules: the collection itself, filled one entry at a time with
Add Rule. - Model: required inside a rule, chosen from the list of model inputs, which is why Number of Inputs comes first.
- Conditions: the conditions that must be met to select this model, built with
Add Conditionon fields such as{{ $json.category }}.
Need help automating Model Selector with n8n?
A person reads every message.
Questions people ask about this node
01Is the n8n Model Selector node included with n8n?
02What do you need to set up before it works?
03What are the limits of the Model Selector node?
04What do you have to connect at minimum to use it?
05n8n or Make for this kind of model routing?
Get our weekly integration tips.
No spam. Unsubscribe anytime.

