- Home
- Resources
- Integrations
- AI Agent Tool
n8n AI Agent Tool nodeConfigure AI Agent Tool in n8n.
An agent that another agent can call. The n8n AI Agent Tool node generates an action plan and executes it, using external tools of its own. It exposes 12 parameters and 4 input ports, and plugs into a parent agent as a tool. For builders splitting one big prompt into specialists.
Verified Trustpilot reviews · AI, automation & growth agency
What does the n8n AI Agent Tool node actually do?
The AI Agent Tool node is an agent packaged as a tool. It takes a prompt, generates an action plan and executes it, and it can call external tools while doing so. Instead of sitting at the root of a workflow, it hangs off the ai_tool port of a parent node, so a bigger agent can delegate a job to it and read the answer back.
A sub-node is a node that never runs on its own: it waits to be called through a port on a root node. That is exactly what this one is. The root nodes that accept it are AI Agent and MCP Server Trigger, and the whole point is separation of duties. One specialist rewrites text, another looks things up, and the parent decides which to call.
First scenario, a research assistant that stops guessing. The parent agent handles the conversation and holds the history. A child AI Agent Tool gets a tight Description like "answers questions about current pricing pages", its own System Message, and a couple of lookup tools on its ai_tool port. Because the parent reads the description before choosing, a sharp description does more for reliability than a longer prompt ever will. Pair it with a research-flavored source like Perplexity on the parent side and the split gets obvious fast.
Second scenario, a support triage chain. The child agent receives a ticket body through Prompt (User Message) as {{ $json.body }}, classifies it, and returns a clean verdict because Require Specific Output Format is on and a parser is wired to the ai_outputParser port. The parent then routes the result to Slack or writes a row to Google Sheets. Structured output is what makes the hand-off survive.
Third scenario, a batch job that respects a rate limit. A list of 150 records arrives, the child agent enriches each one, and Batch Processing caps how many run in parallel with a pause between groups. Without it, a large run hammers the model provider and starts failing halfway through.
When to prefer the alternative: if nothing is being delegated, use the root AI Agent node directly and skip the extra hop. This node earns its place only when a parent agent picks it out of several tools at runtime. Known limits worth knowing before building: it has nothing to authenticate itself, the credential lives on the chat model sub-node, so an OpenAI key or another provider key is still required somewhere. The page describes version 3 of the node, and an older workflow can show fewer options. And nesting agents multiplies model calls, which the provider bills on its own terms.
What do you plug into it?
n8n splits AI work between a root node and sub-nodes: the root receives the workflow items, and each sub-node attaches to one port, one type per port.
Ports (what plugs in)
- Chat Model
ai_languageModelrequired - Memory
ai_memoryoptional - Tool
ai_tooloptional - Output Parser
ai_outputParseroptional
Output (what it plugs into)
- Tool
ai_tool
01Chat Model
This port carries the language model that does the reasoning. Leave it empty and the node cannot run at all.
Key parameters
- Required: the agent has no model of its own, so the sub-node here decides what it can do and who bills the calls.
- OpenAI Chat Model: the usual starting point, one credential and a model picker.
- Anthropic Chat Model: same wiring, different provider account.
- Ollama Chat Model: for a model running on your own machine or server.
02Memory
Memory keeps earlier turns of a conversation available to the agent, so a follow-up question does not start from nothing.
Key parameters
- Optional: skip it for one-shot jobs where every call is independent.
- Simple Memory: stored by n8n, fine for a prototype or a short chat.
- Postgres Chat Memory: survives restarts, the sane choice once the agent goes live.
- Redis Chat Memory: for conversations that churn fast and stay short-lived.
03Tool
Tools are what turn a text generator into something that acts. Each one attached here becomes an option the agent can choose during its plan.
Key parameters
- Optional: an agent with zero tools still answers, it just answers from the model alone.
- Calculator: arithmetic the model should not be improvising.
- Think Tool: gives the agent a step to reason before it commits.
- Vector Store Question Answer Tool: answers from indexed documents rather than memory.
04Output Parser
An output parser forces the answer into a shape the rest of the workflow can read, instead of a paragraph someone has to slice apart later.
Key parameters
- Optional: only consulted when Require Specific Output Format is switched on.
- Structured Output Parser: describe the fields you expect and get them back as data.
- Item List Output Parser: for answers that are naturally a list.
- Auto-fixing Output Parser: sends a malformed answer back to the model for a second try.
Which parameter does what?
The AI Agent Tool node has 12 parameters. For each one: the node as you configure it in n8n, what the parameter changes, and our field notes.
Parameters index
Description
toolDescriptionWhat you see in n8n
Notes & use cases
This is the text the parent agent reads when it decides whether to call this tool. No other field weighs as much on how the whole setup behaves.
Key parameters
- Description: required text. n8n's own guidance is blunt about it, a good specific description lets the model produce the expected result far more often.
Prompt (User Message)
textWhat you see in n8n
Notes & use cases
Whatever goes here is the request the agent works on. It is the equivalent of the message a person would type.
Key parameters
- Prompt (User Message): required text, with a placeholder that shows the tone expected,
e.g. Hello, how can you help me?. Point it at incoming data with an expression such as{{ $json.question }}, the n8n syntax for reading a field off the current item.
Require Specific Output Format
hasOutputParserWhat you see in n8n
Notes & use cases
Switch this on when free text is not good enough and the answer has to come back as fields.
Key parameters
- Require Specific Output Format: a boolean. Turning it on is what makes the node pay attention to whatever sits on its
ai_outputParserport.
Enable Fallback Model
needsFallbackWhat you see in n8n
Notes & use cases
A second model, standing by for the moment the first one refuses to answer or stops responding.
Key parameters
- Enable Fallback Model: a boolean that adds a second chat model slot to fill.
System Message
options.systemMessageWhat you see in n8n
Notes & use cases
Instructions handed to the agent before the conversation starts, setting its role, its tone and what it must refuse.
Key parameters
- System Message: text sent to the agent ahead of everything else.
Max Iterations
options.maxIterationsWhat you see in n8n
Notes & use cases
An agent loops: it thinks, calls a tool, reads the result, thinks again. This caps how many times that loop runs before it stops.
Key parameters
- Max Iterations: a number, the maximum the agent runs before stopping.
Return Intermediate Steps
options.returnIntermediateStepsWhat you see in n8n
Notes & use cases
Normally the node hands back only the final answer. Flip this and the output also carries the steps taken to get there.
Key parameters
- Return Intermediate Steps: a boolean deciding whether the output includes the intermediate steps the agent took.
Automatically Passthrough Binary Images
options.passthroughBinaryImagesWhat you see in n8n
Notes & use cases
Images travelling through the workflow as binary data get handed to the agent as image messages rather than being dropped.
Key parameters
- Automatically Passthrough Binary Images: a boolean controlling whether binary images pass through to the agent as image type messages.
ai_languageModel port actually accepts images.Tracing Metadata
options.tracingMetadataWhat you see in n8n
Notes & use cases
Custom key and value pairs stapled to the tracing events the run produces, so a call can be tied back to the customer or campaign behind it.
Key parameters
- Key: the label under which the value is recorded.
- Type: what kind of value it is, from
stringValue,numberValue,booleanValue,arrayValueorobjectValue. - Value: the content itself, entered in the field matching the chosen type.
Auto-save highlighted data
options.autoSaveHighlightedDataWhat you see in n8n
Notes & use cases
Highlighted data is saved automatically so executions can be filtered on it afterwards in the Executions view.
Key parameters
- Auto-save highlighted data: a boolean that defaults to true. It is available on Pro and Enterprise plans in n8n Cloud, and on Enterprise or registered Community Edition when self-hosted.
Enable Streaming
options.enableStreamingWhat you see in n8n
Notes & use cases
Rather than waiting for the complete answer, the agent streams its response in real time as the text is generated.
Key parameters
- Enable Streaming: a boolean deciding whether this agent streams the response as it generates text.
Batch Processing
options.batchingWhat you see in n8n
Notes & use cases
Batch processing exists for rate limiting: it controls how many items the node works through at once and how long it waits between groups.
Key parameters
- Batch Size: how many items run in parallel. Useful for rate limiting, though it can affect the ordering of the log output.
- Delay Between Batches: a pause in milliseconds between two groups, again for rate limiting.
Need help automating AI Agent Tool with n8n?
A person reads every message.
Questions builders ask next
01Is the n8n AI Agent Tool node included in n8n, on Cloud and self-hosted?
02What credentials does the AI Agent Tool node need?
03What are the limits of the AI Agent Tool node?
04What is the minimum to attach, and which sub-node should you start with?
05n8n or Make for an AI agent setup like this?
Get our weekly integration tips.
No spam. Unsubscribe anytime.


