Learning resourcesReviewed · n8n

n8n: Agents vs chains

Agents vs chains is an n8n guide for people learning to build AI chat workflows, but trying its example requires an n8n instance and configured OpenAI credentials. It compares an agent connected to Wikipedia and conversation memory with a Basic LLM Chain that supports neither attachment.

Researched 23 Nov 2026

In short.

Agents vs chains is an n8n tutorial for beginners and developers choosing components for AI chat workflows, but its comparison is limited to one example configuration. It explains how an agent can use a Wikipedia tool and conversation memory while a Basic LLM Chain handles model conversations without either. The page includes an embedded workflow and import instructions. Nothing was executed, and response quality, operating costs and compatibility with current n8n releases are not established.

Researched and written by an AI model and checked by a second AI model. How it works

Covers the complete documentation page at [https://docs.n8n.io/build/integrate-ai/understand-ai-components/agents-vs-chains.md], including its embedded workflow, Sticky Notes, import instructions, footnotes and related-resource references. Linked documentation, the documentation index and the separately hosted workflow file are excluded. No explicit licence notice appears in the supplied page. The workflow was not run; model responses, Wikipedia retrieval, memory behavior, costs and current compatibility were not assessed.

The overview

Identity

Agents vs chains is an n8n documentation page containing an explanation and an example chat workflow. Its source address is [https://docs.n8n.io/build/integrate-ai/understand-ai-components/agents-vs-chains.md]. The page teaches the roles of agents and chains through connected workflow components.

Assessment

The guide is useful for understanding two concrete differences in n8n: whether a model can call a connected tool and whether it can access earlier chat messages. Its embedded configuration makes those differences inspectable. The page's description of agents as more powerful is illustrated by additional capabilities, without measurements showing better accuracy, speed or value.

Users

Beginners can use the chat examples to understand tools and memory in practical terms. Developers already using n8n can inspect the branch routing, model connections and agent attachments before adapting the design. Readers seeking a comparison across agent frameworks, production deployment guidance or a multi-step chain tutorial will need additional material.

Capabilities

A Chat Trigger provides the chat entry point. A Switch node directs input to either the AI Agent or Basic LLM Chain. The agent has connections to an OpenAI Chat Model, Simple Memory and a Wikipedia tool. The chain has its own OpenAI Chat Model connection and no memory or tool connection.

The intended demonstrations are requesting a Wikipedia article and asking about an earlier question. These illustrate configured capabilities; the supplied page contains no recorded successful responses.

Using it

Requirements

Using the example requires an n8n instance with the included node types and OpenAI credentials configured for both chat model nodes. The Wikipedia demonstration also depends on access to Wikipedia through the connected tool. The page does not specify a minimum n8n release, an exact OpenAI model, account entitlements or deployment requirements.

Mechanism

The Switch checks the chatInput field for the substrings agent and chain without requiring matching capitalization. This routing happens before either AI branch receives the query. Within the agent branch, the model can decide whether to use the connected Wikipedia tool, and Simple Memory provides access to earlier chat context.

The chain branch sends the conversation to its connected model without those attachments. Although the page describes chains generally as sequences of component calls, this example contains one Basic LLM Chain node rather than a demonstrated series of chain steps.

Setup

The page instructs readers to download the workflow JSON, open a new workflow in n8n, and paste the JSON or choose Import from file through the Workflow menu. Sticky Notes identify guidance, required changes and features; the model nodes have notes asking readers to set their credentials.

The original workflow download address is [https://raw.githubusercontent.com/n8n-io/n8n-docs/refs/heads/main/docs/_workflows/advanced-ai/examples/agents_vs_chains.json]. A workflow definition is embedded in the page; the separately linked file's current contents are not established by the supplied evidence.

Example

The embedded instructions suggest asking “Please show me a Wikipedia article about cats (agent)” and then making the equivalent request with “(chain)”. They also suggest “What was my last question? (chain)” and the corresponding agent query.

The intended comparison is that the agent can use Wikipedia and earlier conversation context through its connected components. The chain lacks those connections. These are suggested demonstration queries, not observed outcomes or guarantees about the answers.

Assessment & evidence

Limitations

The comparison concerns the n8n components and connections shown here. It does not establish that every system described as a chain lacks memory or external information. Tool access alone also does not establish answer accuracy.

The page does not explain handling for queries containing both routing words or neither. Memory window size, retention, session handling, failure recovery and response latency are not documented here. Nothing was executed, so runtime behavior remains unassessed.

Reasoning

The example supports a practical design choice: use the agent arrangement when a task requires tool access or continuing conversation context; consider the shown chain arrangement when those features are unnecessary. This conclusion follows from the documented connections. The evidence does not establish which arrangement produces better answers or lower costs for a particular workload.

Alternatives

The two alternatives directly illustrated are an AI Agent with memory and a Wikipedia tool, and a Basic LLM Chain with a connected chat model. The page also links to explanations of chains, agents, memory, tools, vectors and context retrieval. Those linked pages are outside the supplied scope, so their contents and alternative implementations are not assessed.

Evidence

The evidence consists of the complete documentation page, including explanatory text, import directions, footnotes, related links and an embedded workflow definition. The node settings and connections support the account of its intended design. No execution traces, response transcripts, benchmarks or independent measurements are supplied.

Access & freshness

Costs

Costs are unknown. The page supplies no n8n pricing, hosting costs, OpenAI rates, credits, token counts or cost per conversation. Both branches use OpenAI Chat Model nodes, but their presence does not establish any particular charge. Confirm the applicable n8n and model-provider costs before running the example.

Rights

The page explicitly describes downloading and importing the example, but supplies no explicit licence or redistribution terms for its text or embedded workflow. Permission to redistribute or commercially reuse those materials is therefore unknown from this evidence. Separate terms for n8n, the model service and Wikipedia content are not assessed.

Freshness

The documentation snapshot was captured on 23 November 2026 at 01:30:59 UTC. The page itself supplies no publication or last-update date. Its embedded definition records AI Agent node typeVersion 1.5, Basic LLM Chain 1.4 and Simple Memory 1.2; these are node configuration versions, not n8n release numbers. Compatibility with current releases is unknown.

Actions

To use the example, import the workflow and configure your own OpenAI credentials on both model nodes. Start with the supplied queries, keeping one routing word in each request, and inspect the tool and memory connections when comparing the branches.

Before adapting the workflow to a real task, confirm node compatibility, model settings, applicable costs and memory behavior in your environment. Check what happens when routing keywords are missing or ambiguous.

Evidence for this report

selected-page.txtselected · checked 2026-11-23