Automation
n8n AI Agents in 2026: How to Build One, What It Costs, and When to Use the New Agents Tab
The short answer: an n8n AI agent is a chat model plus tools: you give it a goal, and it decides which tools to call to get there. In n8n you can build one two ways: the AI Agent node inside a workflow (stable, needs a chat model and at least one tool), or the Agents tab added in n8n 2.40 on September 21, 2026 (still in Preview). On n8n Cloud, a workflow run counts as one execution whatever its length, and each turn of a new-style agent counts as one execution; Starter is €20/month (billed annually) for 2,500 executions, plus what the AI model costs.
How do you build an AI agent in n8n, and should you? Those are the two questions I get most from teams that already use n8n. This page answers both, with what n8n's own docs say and what we've learned building on it.
Quick context first. We build most client automations on Make, and switch to n8n when workflows get long, run at high volume, or the data must stay on the client's own server. If you're still choosing between the two, start with n8n vs Make, with real prices: it explains why n8n's way of counting usage suits agents so well.
Below: the one choice to make before you build, 6 steps to a working agent, and the cost math for 2,500 conversations a month.
What is an n8n AI agent?
An n8n AI agent is an AI model that can use your tools on its own. n8n's docs put it simply: connect a chat model and one or more tools, "and the agent decides which tools to call to complete a task" (n8n docs).
A normal workflow follows the path you drew: step 1, step 2, step 3. An agent gets a goal ("answer this customer", "qualify this lead") and picks its own steps: look up the order, check the calendar, write the reply. That freedom is the point, and also the risk.
Three pieces make an agent:
| Piece | What it does | Example in n8n | |---|---|---| | Chat model | The brain that reads, reasons and writes | OpenAI, Anthropic, Google Gemini | | Tools | What it's allowed to do | Google Sheets, your CRM, HTTP Request, another workflow, an MCP server | | Memory (optional) | Remembers the conversation | A memory sub-node attached to the agent |
AI Agent node or the new Agents tab: which should you use?
Use the AI Agent node for anything a business depends on today. Try the Agents tab for internal helpers you can watch.
n8n 2.40 (September 21, 2026) added a second way to build agents: you describe the job, pick a model and give it tools (n8n nodes, MCP servers or your own workflows), from a new Agents tab or by asking n8n Assistant to draft it. These agents can be called from a workflow with the Message an Agent node, connect to Slack, Telegram, Linear or Discord, run on a schedule, and ask for approval before running sensitive tools (n8n release notes).
n8n is clear that they're in Preview: they "can make mistakes, and their behavior may change while they're in development." It also says the AI Agent node "hasn't changed, and everything you've built with it keeps working."
| | AI Agent node | Agents tab (Preview) | |---|---|---| | Status | Stable | Preview since n8n 2.40 | | Where it lives | Inside a workflow, between a trigger and the next steps | Its own object, usable from any workflow or chat app | | Best for | Customer-facing flows, anything tied to money or data | Internal assistants, team helpers, experiments | | Human approval | You build it (for example, a step that waits for a yes) | Built in for sensitive tools | | Plans | All | All (self-hosted needs extra setup) |
My rule: I wouldn't put a Preview feature in charge of a client's orders, payments or customer replies. Behavior that "may change" is fine for a team helper in Slack. It isn't fine for the thing answering your customers at 2 a.m.
One more note if you run older workflows: the old "agent type" setting is deprecated, every AI Agent node now works as a Tools Agent, and version 1 of the node "will be removed from n8n 3.0." Update old agent nodes before that release.
How to build an AI agent in n8n, step by step
Six steps, using the stable AI Agent node. Each one is small; step 4 is the one people skip.
1. Write the agent's job in one sentence
"Answer questions about our opening hours, prices and order status, and hand anything else to a person." If you can't write the job in one sentence, you need two agents, or a normal workflow.
2. Add a trigger
A Chat Trigger to test in n8n's chat window, then the real entry point: a webhook from your website chat, a WhatsApp message, a new email, a new row in a sheet.
3. Add the AI Agent node and connect a chat model
Attach the chat model sub-node and its credentials. On n8n Cloud, since n8n 2.36 you can also pay for models from a prepaid Gateway credits balance instead of adding your own API key; providers include OpenAI, Anthropic and Google Gemini, at rates n8n says aim to match public provider pricing.
4. Give it as few tools as possible
The node needs at least one tool. Start with the one the job needs (read the order sheet, say) and add more only when a real question requires it. Every extra tool is one more way for the agent to do something you didn't expect. Read-only tools first; tools that write, send or pay come last, behind a check.
5. Write the system message and add memory
In the node's options, tell the agent who it is, what it may do, what it must never do, and when to hand over to a human. Add a memory sub-node if it holds conversations, so it doesn't ask for the order number twice.
6. Test with 20 real questions, then watch the logs
Use real messages from your inbox, including the rude, vague and off-topic ones. Check which tools it called for each one. Then go live on a small share of traffic and read the executions every day for the first two weeks.
Next: what this costs, with the math done for you.
How much does an n8n AI agent cost?
Two bills: n8n's (by execution) and the AI model's (by usage). n8n's side is easy to predict.
- Self-hosted Community edition: free, no execution cap; you pay for the server and your time.
- n8n Cloud Starter: €20/month billed annually, 2,500 executions. Pro: €50/month billed annually, 10,000 executions (n8n pricing, checked November 23, 2026).
- How it counts: a workflow run is one execution, whether it has 3 steps or 30. For agents built in the new Agents tab, each agent turn counts as one execution, and calls to workflow tools and sub-agents don't count separately.
So if every customer message triggers one run, Starter covers 2,500 messages a month, about 80 a day. Past that, Pro's 10,000 executions cover about 330 a day.
The model bill depends on the model and how much text goes in and out, so I won't quote one number for everyone. What raises it: long system messages, long conversation memory, and tools that return big blocks of data. Keep tool outputs short and memory windows small, and the model cost stays low. If WhatsApp is the channel, add Meta's message fees; I keep a per-country table of WhatsApp API prices for that.
What can an n8n AI agent do for a small business?
The best first agents read something messy and decide where it goes. A few that pay off quickly:
- Reply sorting. In the lead generation pipeline we rebuilt on n8n for one project, AI sorts the replies by what the person wants and sends the interested ones a booking link. I compare the Make and n8n versions of that pipeline, step by step, in the AI lead generation pipeline we actually run.
- Lead scoring. The same pipeline scores each lead with AI before anyone spends time on it.
- Customer questions. Order status, opening hours, delivery times, answered from your own data, with a hand-off to a person. If that's your goal, compare it first with a full AI customer service agent: what it should handle and what it costs.
- Inbox triage. Read incoming requests, pull out the details, create the CRM record, flag the urgent ones.
When should you not use an AI agent in n8n?
When the path is always the same. If "new order → confirm by message → add row → notify the team" never changes, a normal workflow is cheaper, faster and never improvises. An agent is for steps that need judgment, not for steps you can draw.
Also skip the agent, or keep a human in the loop, when:
- the action moves money, deletes data or sends something you can't take back;
- a wrong answer has legal weight (prices, contracts, health, refunds);
- you can't say in advance what a good answer looks like, so you can't test it.
Most "AI agents" I'm asked to fix didn't need to be agents. They were fixed workflows with one messy input. Put AI on that one step (read the email, extract the fields) and let the rest be plain automation. It's easier to test and much harder to break.
Want an agent that actually ships?
If you want an n8n agent (or a plain workflow, if that's what the job really needs) built and tested on your real data, that's what our process automation service does. Tell me which task you'd hand to an agent and I'll tell you honestly whether it should be one.
Keep reading
Not sure if your content is helping or hurting you?
Get a free content & SEO audit. We'll tell you exactly where you stand — no jargon, no fear-mongering.
Get my free audit