n8n or Agent: The Difference Lies in Operations, Not in Capability

n8n or Agent: The Difference Lies in Operations, Not in Capability

“n8n is now an agent harness. This is not for building workflows, this is to BE your agent.” That is how n8n promoted a feature on X in August 2026 that moves the workflow tool into agent territory. The same movement runs in the opposite direction. Claude Code, an agent for programming, now runs tasks on a schedule, connects to other services through connectors and writes a script for any automation on request. On paper, both sides can do almost the same things.

Concluding from this that one of the two tools has become redundant means comparing capabilities. The differences lie elsewhere, namely in who decides the next step, what a run costs, who waits for something to happen, and what you see when things go wrong.

The same input in three runs: the workflow delivers the same result three times along the same path, the agent reaches partly diverging results with three, five and two tool calls

Workflow and agent reach the result by opposite routes

The clearest distinction comes from Anthropic’s essay Building effective agents from December 2024:

“Workflows are systems where LLMs and tools are orchestrated through predefined code paths.”

“Agents, on the other hand, are systems where LLMs dynamically direct their own processes and tool usage, maintaining control over how they accomplish tasks.”

In a workflow, a human sets the path at build time. In n8n that path is the canvas, and every line between two nodes is a decision that has already been made. A language model can contribute at individual points, for example by classifying a text, but it does not determine what happens next. A workflow with five model calls remains a workflow as long as the order is fixed.

In an agent, the model makes that decision at runtime. In the same essay, Anthropic describes agents as “just LLMs using tools based on environmental feedback in a loop”. The model receives a goal and tools, calls one, reads the result and then chooses the next step, until it considers the task done. We built such a loop ourselves in the apfel series.

Control flow compared: in the workflow the path is set in advance on the canvas, in the agent the model chooses the next step after each tool result

Everything the model needs around it for this loop to run is called the harness. That includes the loop itself, the tools, the memory, the permissions and the stop conditions. Claude Code is such a harness for programming work. Anthropic calls it “an agentic coding tool that reads your codebase, edits files, runs commands, and integrates with your development tools” (documentation).

The third option is a script the agent writes

Setting a fixed workflow against a freely deciding agent leaves out a third variant. A coding agent can write a script that afterwards runs without it. That script is just as deterministic as an n8n workflow. The agent was then merely the designer.

For a recurring task there are therefore three routes:

n8n workflowScript from the agentAgent at runtime
Who sets the pathHuman, on the canvasAgent once, in codeModel, anew on every run
Same inputsame pathsame pathpossibly a different path
Model cost per runonly for built-in AI stepsonly for built-in AI callsfor every step of the loop
Run logbuilt inhas to be builtsession history
Who can read itanyone who opens the canvasanyone who reads codeanyone who can interpret the history
Strengthrepeatable processes across many systemsspecial logic no node coverstasks without a fixed path

The middle column looks the least like AI, yet it is n8n’s real competitor, not the right-hand one. On cost, workflow and script are level, and both are far ahead of the agent. What separates the two is operations, debugging and handover.

A workflow costs almost nothing per run, an agent costs every time

A form is submitted, the entry lands in a customer list, someone gets a message. This process needs no language model and therefore consumes no tokens. Add a free-text field that should be recognized as a project inquiry, a job application or advertising, and the workflow gets exactly one model call, after which everything runs according to plan again. That is how we built the alert classification in the n8n series, with a simple LLM chain instead of an agent.

This frugality follows Anthropic’s own recommendation. “We recommend finding the simplest solution possible, and only increasing complexity when needed”, the essay says, and continues: “This might mean not building agentic systems at all.” For many applications, a single, well-prepared model call is enough.

The agent does the math differently. Every pass through the loop sends the entire history so far to the model again. A run with ten tool calls therefore pays for the beginning of the conversation ten times, and the cost grows faster than the number of steps. Prompt caching lowers the price of the repeated part, but it does not change the shape of the curve.

Input per model call in the agent loop: each call resends the history so far, six calls add up to 21 units of input instead of 6; in the workflow a single AI step occurs

n8n, by contrast, counts executions. In the cloud, according to the price list, the Starter plan costs 20 euros a month for 2,500 executions and the Pro plan 50 euros for 10,000, billed annually. That is 0.8 and 0.5 cents per execution (own calculation), regardless of how many nodes the workflow has. For interactive work with Claude Code, Anthropic’s cost documentation gives an average of around 13 dollars per developer per active day. The figure describes programming work rather than a single automation, but it shows the currency in which agents are billed.

Then there is the choice of model. In a workflow, every AI step can address a different model: a small one for classification, a large one for the text, a local one for confidential data. In article 6 of the series, two local models with 7 and 8 billion parameters correctly assigned 97 and 98 percent of a hundred test tickets without a single ticket leaving the machine (own measurement, at around eleven seconds per ticket). Claude Code works with Claude models.

Always-on operation: a service versus a scheduled agent run

An automation tool spends most of its time waiting. n8n runs as a service on a server and reacts to a webhook, an incoming email or a schedule the moment the event occurs. How to run it yourself is covered in article 2 and article 5 of the series.

Claude Code can now also work unattended. The documentation describes scheduled tasks in the cloud, formerly called Routines, as “a saved Claude Code configuration: a prompt, one or more repositories, and a set of connectors, packaged once and run automatically”. They run on Anthropic’s infrastructure, even with the laptop closed, and can be triggered by a schedule, an HTTP call or GitHub events. At the top of the page sits a notice that concerns only this one feature and not Claude Code as a whole: “Scheduled tasks are in research preview. Behavior, limits, and the API surface may change.”

They differ from a workflow in these ways:

  • Every run is an agent run. It is driven by a prompt, and the documentation spells out what that means: “the task runs autonomously, so the prompt must be self-contained and explicit about what to do and what success looks like”. The path is therefore created anew on every run.
  • The cadence is coarse. Schedules that fire more often than once an hour are rejected.
  • The location is fixed. Code tasks require a GitHub repository, and the data passes through Anthropic’s cloud or a specially connected company environment.

Local schedules exist as well. According to the documentation, they only start while the computer is awake: “If your computer sleeps through a scheduled time, the run is skipped.”

That is enough for a Monday report. For a webhook that accepts an order a hundred times a day and has to respond within seconds, it is the wrong tool. Even when triggered via HTTP, every order starts a full agent run, with model costs and a path that is created anew each time.

Debugging: execution log versus session history

The most important difference only shows up when something fails, and it separates the n8n workflow from the script as well.

n8n keeps a record of every execution. According to the documentation, a failed execution can be opened with “Debug in editor”. n8n then copies the run’s data into the workflow, so you can fix it and run it again “with the previous execution data”. For notifications there is the error workflow, which starts as soon as an execution fails. What you can build from it is covered in article 7 of the series.

A script has none of this unless someone builds it in. It runs on some server, at best writes a log file, and whether it ran last night is something you find out by checking. All of this can be programmed, and an agent will program it along with the rest on request. In the end you have a small, home-built n8n without a user interface.

The agent at runtime leaves behind a session history. It shows which tools the agent called, but it is a record of decisions, not a circuit diagram. This is where the risk Anthropic calls “compounding errors” lies. An error in step three of a workflow produces an error message in step three. A mistake in step three of an agent becomes the basis for step four, and the end result can look plausible and still be wrong.

The agent world knows the problem and builds determinism back in at the edges. Claude Code has hooks for this, fixed commands at fixed points in the process. The documentation justifies them with a sentence that could just as well appear in an n8n manual: “certain actions always happen rather than relying on the LLM to choose to run them”. More on this in article 9 of the agentic series.

In a company, handover comes on top of that. A canvas can be read by a colleague who does not program, and a managing director can follow which data flows where. A script can be read by anyone who knows the language. An agent prompt can be read by anyone, but it does not tell you what the agent will do on its next run.

Credentials and approvals

Both sides have safeguards; they just apply them at different points.

n8n encrypts credentials before they reach the database (documentation). A node or an agent tool is assigned a credential and works with it without the key appearing in the workflow. For sensitive tools there is human approval. “For sensitive tools, the agent pauses and asks for approval before running the tool”, the agent documentation states. The pending approval stays in the session until someone accepts or rejects it.

Claude Code handles the same thing through permission modes. In manual mode, according to the documentation, “Claude Code stops and asks you before most actions that edit files, run shell commands, or reach the network”. That protects the developer’s machine during a session. For an unattended run over the weekend, a prompt in the terminal does little good, because nobody is sitting in front of it.

The approvals differ in granularity. In n8n, an approval is tied to a specific step of a specific process, such as sending an email. In the coding agent, it is tied to classes of actions, such as running shell commands.

n8n now builds agents itself

Until now, an agent in n8n was a node in a workflow, the AI Agent node. The documentation describes it like this: “Connect a chat model and one or more tools, and the agent decides which tools to call to complete a task.” Anyone who needed the same agent in three places built it three times.

Since version 2.32.3, agents exist as objects in their own right, announced on August 5, 2026. The documentation lists the building blocks:

Building blockMeaning
Modelthe language model, freely selectable by provider
Instructionsthe system prompt with role, tone and limits
Toolsworkflows, custom code, built-in integrations, MCP servers
Skillsreusable instructions for a task
Sub-Agentsother published agents to delegate to
Memorymemory per session, optionally across sessions
Schedulestime-triggered runs
ChannelsSlack, Telegram, Linear, Microsoft Teams
Knowledge baseuploaded files as a knowledge base

Anyone who knows Claude Code will recognize the list. Skills, subagents and MCP are the same concepts we described in the agentic series. n8n carries the design pattern of coding agents over to business processes and keeps the operational properties of the workflow tool. The agent is set up once and is then reachable in chat, through a channel and via the “Message an Agent” node in any number of workflows. A change applies everywhere.

n8n bills an agent run like any other execution. “One turn with an agent counts as one execution”, no matter how many tools the agent calls in that turn. On the n8n invoice, an agent therefore looks as cheap as a form workflow. The cost of the loop shows up with the model provider.

Alongside this, n8n introduced the Assistant and Nod:

  • The n8n Assistant builds, modifies and tests workflows from a description in chat and sets up agents. According to the documentation, it also runs self-hosted, in which case it needs its own model key and a sandbox. By n8n’s own classification, the bundled sandbox is “for development and testing only” and has “weak isolation”.
  • Nod is a personal agent from n8n Labs, introduced on November 10, 2026 as a research preview under the Apache 2.0 license. It runs on your own computer in a virtual machine with its own browser and is explicitly “a separate app from n8n and from the agents you can build inside n8n”. n8n is meant for “multiplayer”, Nod for “a single player”. The approval check before sensitive actions is itself a model and, according to n8n, can get it wrong.

For the n8n agents, the vendor names the limits itself. They are a preview: “They can make mistakes, and their behavior may change while the feature is in development.” For self-hosting: “Queue mode isn’t supported for agents yet.” Anyone who has spread their instance across workers following article 11 of the series cannot run agents there for now.

The best division of labor: the agent builds, the workflow runs

The two worlds can be connected in both directions.

Within n8n, an agent calls workflows directly as tools. n8n writes in the announcement: “Your workflows become tools the agent can call.” According to the release notes, such a workflow runs exactly as it was built, “with its own credentials”. The agent takes over the open part, that is, understanding the request and choosing the tool. The workflow takes over the fixed part with tested steps.

From the outside, an agent accesses n8n via MCP. The instance comes with a built-in MCP server that clients such as Claude or ChatGPT connect to. They can search for and trigger exposed workflows and, since version 2.13.0, also “create and edit workflows and data tables”. Access is granted twice, once for the instance and once per workflow via the “Available in MCP” switch. According to the documentation, this setting does not apply per client (“not scoped to each MCP client”). Exposing a workflow to Claude exposes it to every other connected client as well.

This results in a clear division of labor. The agent builds the workflow, once, in conversation. A human reviews the canvas. After that, the workflow runs without the agent, the same way every Monday, and the only thing that still costs tokens is the one step that genuinely needs a model. The intelligence lies in the construction, not in the operation.

Three connections between agents and n8n workflows: external agent via the MCP server, n8n agent calls a workflow as a tool, workflow addresses an agent via the Message an Agent node

Decision aid: if the process can be drawn, it becomes a workflow; if only part of it is fixed, an agent calls that part as a tool; if a tool changes data, it gets an approval step

Tasks and their tool

TaskToolReason
Form, invoice, data reconciliation with fixed stepsWorkflow without AIno model needed, no tokens
Classify free text, then fixed stepsWorkflow with one AI stepflexibility in one place, reliability in the rest
Responding to events around the clockWorkflowservice waits for webhook or trigger
Process that others should understand and take overWorkflowcanvas and execution log
Special logic for which there is no nodeScript from the agent or Code nodecode is shorter than a canvas here
Request in free language with an open pathAgent, in n8n or outsidethe path depends on the intermediate result
Building software, developing a conceptCoding agentn8n is not a programming tool
One-off taskAgent in conversationa workflow is not worth it

Anthropic recommends agents for “open-ended problems where it’s difficult or impossible to predict the required number of steps”, and specifically in “trusted environments”. An agent with write access to the accounting system and an open channel to the outside does not meet the second condition.

As a rule of thumb, in this order:

  1. Can the process be drawn as a flowchart? Then it becomes a workflow, with or without a model call. An agent may build it.
  2. Can only part of it be drawn? Then that part becomes a workflow and the rest an agent that calls it as a tool.
  3. Does a tool change data or trigger something outside? Then it gets an approval step.
  4. Does the task only need to be done once? Then a conversation with the agent is enough.

The state of things in November 2026

For unattended production processes, the workflow remains the safe choice. That is not down to the models, nor to agents as such, but to the maturity of precisely those features that let an agent run without supervision. The vendors label them themselves:

FeatureStatus according to vendor
n8n AgentsPreview, self-hosted without queue mode
n8n Assistantbundled sandbox “for development and testing only”
Nod“research preview from n8n Labs”
Claude Code, scheduled tasks in the cloud“Scheduled tasks are in research preview”

None of these notices concerns the respective product as a whole. Claude Code as an interactive tool is no more a preview than n8n as a workflow platform. The caveats are attached to the new modes of operation, and we would not yet put a process that bookings depend on, like the series’ SAP bridge, on a feature carrying such a notice.

The question of whether n8n is still needed now that agents write automations has thus been turned on its head. The better agents get, the cheaper it becomes to build workflows, and the fewer reasons there are to have a model decide a recurring process anew every time. The agent is the designer and the point of contact. The machine that runs at three in the morning should not have opinions of its own.

Sources