- Home
- Resources
- Integrations
- Anthropic Chat Model
n8n Anthropic Chat Model nodeConfigure Anthropic Chat Model in n8n.
The n8n Anthropic Chat Model node is the sub-node that hands Claude models to a root node. It has no main input and never runs on its own: it plugs into the Model port of an AI Agent or a chain. Version 2 exposes 10 parameters, from token limits to thinking modes.
Verified Trustpilot reviews · AI, automation & growth agency
What does the n8n Anthropic Chat Model node actually do?
A chat model node hands a large language model to another node. This one does that for Anthropic's Claude family of chat models: it holds the model choice and the sampling settings, then feeds them to whatever root node it is wired to. A sub-node is a node that attaches to a port of a bigger node instead of sitting in the main flow, so this one produces nothing by itself. That surprises people who drop it on a blank canvas and press Test.
The first shape is the one most builders land on. An AI Agent reads an incoming message, decides what to do, and needs a brain to do it with. You wire this node to its Model port, pick a model in Model, and cap the answer with Maximum Number of Tokens so a long reply never blows past what you want to paste back into a Gmail draft. A token is a chunk of text, roughly a short word, and the cap counts the generated ones only.
The second shape is quieter and just as common: no agent at all, a chain that classifies or extracts. Feed it rows read from Google Sheets, set Sampling Temperature low so two runs on the same row give the same label, and the model behaves like a rule you did not have to write. Expressions such as {{ $json.comment }} carry the field from the previous node into the prompt of the root node, not into this one.
The third shape is reasoning that takes its time. Turn Enable Thinking on, leave Thinking Mode on adaptive, and raise Effort when a step keeps going wrong on a hard document. Cost follows: the provider of the model bills its own API calls under its own terms, and n8n adds nothing on top.
When would you pick something else? Any other chat model sub-node fits the same port, so switching to OpenAI is a matter of unplugging one node and plugging another, with the same root node above it. Stay with this one when you want the Claude family and the thinking parameters it exposes.
The limits are worth knowing before you build. This node has no main input, so it cannot be the first node of a workflow, cannot call a tool by itself, and cannot be tested in isolation: you run the root node and read the output there. One port takes one sub-node type, so a root node gets one chat model, not two. Our n8n review covers where the platform as a whole fits.
What do you need to authenticate?
- 01
Create the Anthropic credential in n8n
Open the Credentials menu in n8n and create the credential this node asks for. A credential is the stored login n8n reuses instead of retyping a secret in every node, and this one is created once and reused in every workflow that talks to Claude. The key itself comes from an Anthropic account, on Anthropic's side.
- 02
Or run on Gateway credits instead
On n8n Cloud there is a second route. Select Use Gateway credits in the node's credential field and the node runs without an Anthropic account and without your own Anthropic API key. Handy when you want a workflow running today and the account paperwork is still in progress. Self-hosted instances go the API key route.
- 03
Select the credential, then the model
Back in the node, pick the credential you just saved, then set Model. The field takes a value from the list or a model ID typed by hand, which is what you use when a model is newer than the list in front of you. Nothing else in the node is required for a first run.
What does this node plug into?
n8n splits AI work in two: a root node sits in the main flow and receives the items, and sub-nodes attach to its ports, one type of sub-node per port. This node is a sub-node, so the only question is which port it goes on.
Output (what it plugs into)
- Model
ai_languageModel
01Model
This is the output side of the node: it connects upward, to the Model port of a root node that needs a language model to run.
Key parameters
- Required: the root nodes that expose this port do not run without a model on it.
- AI Agent and Basic LLM Chain: the two starting points, an agent that decides between tools, or a single call with one prompt.
- Information Extractor and Text Classifier: the same port on nodes that return structured output instead of free text.
What can you set in the node?
The Anthropic Chat Model node has 10 parameters. For each one: the node as you configure it in n8n, what the parameter changes, and our field notes.
Parameters index
Model
modelWhat you see in n8n
Notes & use cases
The only required field of the node. It decides which Claude model answers, and it is a resource locator, meaning you either pick from the list n8n loads or paste an identifier yourself.
Key parameters
- Model: required, chosen from the list or given as an ID when the model you want is newer than the list.
Maximum Number of Tokens
options.maxTokensToSampleWhat you see in n8n
Notes & use cases
Sets a ceiling on the length of what the model generates. The count covers the completion, not the prompt you sent, so a long conversation history does not eat into it.
Key parameters
- Maximum Number of Tokens: optional number, the maximum tokens to generate in the completion.
Sampling Temperature
options.temperatureWhat you see in n8n
Notes & use cases
Controls how random the wording gets. Lower values give less random completions, and as the temperature approaches zero the model becomes deterministic and repetitive.
Key parameters
- Sampling Temperature: optional number, the randomness of the sampling process.
Top K
options.topKWhat you see in n8n
Notes & use cases
Trims the tail of the distribution. It removes low probability responses from the choices the model considers for the next token, and it defaults to -1, which disables it.
Key parameters
- Top K: optional number, off at
-1, otherwise the number of token choices kept.
Top P
options.topPWhat you see in n8n
Notes & use cases
Another way to narrow the same choice, by probability mass rather than by count. At 0.5, half of all likelihood-weighted options are considered, and lower values ignore the less probable ones.
Key parameters
- Top P: optional number, the probability mass the completion samples from.
Enable Thinking
options.thinkingWhat you see in n8n
Notes & use cases
A switch that turns thinking mode on for the model. Off, the model answers directly; on, it works through the problem before producing the answer the root node receives.
Key parameters
- Enable Thinking: optional boolean, thinking mode on or off.
Thinking Budget (Tokens)
options.thinkingBudgetWhat you see in n8n
Notes & use cases
Caps the thinking itself. It sets the maximum number of tokens the model may spend before it starts writing, separate from the cap on the answer.
Key parameters
- Thinking Budget (Tokens): optional number, the maximum tokens used for thinking.
Thinking Mode
options.thinkingModeWhat you see in n8n
Notes & use cases
Says how extended thinking is configured, and it is the parameter that decides whether the budget above matters at all.
Key parameters
- Disabled (
disabled): no extended thinking. - Adaptive (Recommended) (
adaptive): Claude decides how much to think, and you steer it with Effort. - Manual (Deprecated) (
manual): the legacy fixed-budget mode, rejected by Opus 4.7 and later.
Effort
options.effortWhat you see in n8n
Notes & use cases
The dial that goes with adaptive thinking. It tells the model how hard to work on the request rather than fixing a number of tokens.
Key parameters
- Low (
low) and Medium (medium): everyday steps inside an agent. - High (
high), X-High (xhigh) and Max (max): the settings you escalate to.
Stream Responses
options.streamingWhat you see in n8n
Notes & use cases
Changes how the answer travels, not what it contains. On, the model streams over Server-Sent Events, a connection the server keeps open to push text as it is written; off, one payload arrives at the end. The final output shape is unchanged either way.
Key parameters
- Stream Responses: optional boolean, streamed or single payload.
Need help automating Anthropic Chat Model with n8n?
A person reads every message.
Questions people ask next
01Is the n8n Anthropic Chat Model node free to use?
02What do you need to authenticate before the node runs?
03What are the limits of this node?
04What is the minimum to plug in, and where do you start?
05n8n or Make for this kind of AI workflow?
Get our weekly integration tips.
No spam. Unsubscribe anytime.
