Now inviting automation leaders: publish your playbook as a skill, under your own name. Publish yours →
Automation Skills
All skills/n8n node configuration official/AI_NODES
Reference · n8n node configuration official

AI_NODES

Part of n8n node configuration official. Install the skill and your agent reads this page when it needs the depth.

AI Agent node: configuration gotchas

The AI Agent node (@n8n/n8n-nodes-langchain.agent) is the load-bearing node for AI features in n8n. For design depth, read the n8n-ai-nodes-official skill first. This file only covers Agent-node-configuration knobs and runtime gotchas not in that skill.

For Read
When to use Agent vs other AI nodes n8n-ai-nodes-official SKILL.md
Sub-node pattern (model, memory, tools, outputParser) n8n-ai-nodes-official SKILL.md
System prompt design n8n-ai-nodes-official SYSTEM_PROMPT.md
Tool design and the four tool types n8n-ai-nodes-official TOOLS.md
Sub-workflow as tool n8n-ai-nodes-official SUBWORKFLOW_AS_TOOL.md
Memory backend choice and sessionId n8n-ai-nodes-official MEMORY.md
Structured output: parser + autoFix n8n-ai-nodes-official STRUCTURED_OUTPUT.md
Human review on tools n8n-ai-nodes-official HUMAN_REVIEW.md
Slack / Discord / Teams / Telegram surfaces n8n-ai-nodes-official CHAT_SURFACE_PATTERNS.md
RAG primitives n8n-ai-nodes-official RAG.md
Binary in agent tools n8n-binary-and-data-official AGENT_TOOL_BINARY.md

Always inspect the node first

get_node_types([{ nodeId: '@n8n/n8n-nodes-langchain.agent' }]). The Agent's parameter shape evolves often (new sub-node slots, new option fields, new built-in tools). Build against the live shape.

Streaming

n8n streams Agent responses end-to-end when the trigger and responder both support it:

When all three are aligned, tokens flow to the caller as the agent generates them.

Vision / multimodal

options.passthroughBinaryImages: true (default) lets the model see uploaded images as image-type messages. Pair with a vision-capable model.

Only the model can see binary. Tools cannot receive it. For tools that need uploaded files, see n8n-binary-and-data-official AGENT_TOOL_BINARY.md.

Iteration cap

options.maxIterations defaults to 10, which is low for modern agents with flexible tool sets. Raise it (30-50+) for any non-trivial multi-tool agent. Hitting the cap throws a workflow error (Max iterations (N) reached).

Deterministic tasks

Set temperature: 0 on the model sub-node for extraction, classification, or any deterministic task. Defaults introduce variability that's annoying in production. Leave higher for creative or open-ended generation.

Cost control

For high-volume workflows:

Publish your skill

Copy this prompt into Claude Code, Codex or any agent. It walks you through your first skill in about 20 minutes, with you as the author.

Click to copy.