An n8n AI agent is a workflow where one node, the AI Agent, reads a task, picks which of your tools to call, and keeps going until the job is done. ZeroCrew lists n8n on its AI automation agents and apps page as workflow automation with AI steps, and this guide builds one agent you can run for real: an inbox agent that drafts replies and asks you before anything goes out.

Founders build agents in n8n because one canvas holds the trigger, the model, the tools, and the approvals, and every step can be opened and re-run. ZeroCrew's n8n page sums up what founders praise in public posts: flexible integrations and custom code, visual debugging, and low-cost self-hosting. The same page lists a steep learning curve among the complaints, so this guide keeps every step concrete.

AI help at work has been measured in real jobs. According to "Generative AI at Work" by Brynjolfsson, Li, and Raymond (NBER working paper, published in The Quarterly Journal of Economics in 2025), customer support agents with an AI assistant resolved 14% more issues per hour on average. ZeroCrew's directory exists so that a founder with zero employees can put the same kind of help to work, one agent at a time.

What is an AI agent in n8n?

An AI agent in n8n is the AI Agent node plus the sub-nodes you attach to it: a chat model that reasons, tools that act, and optional memory. n8n's docs say you must connect at least one tool, and the agent decides which tools to call. ZeroCrew's guide to building an AI agent explains the same model, tools, and instructions pattern in general terms.

Agent loops like the one inside the n8n AI Agent node trace back to research. The ReAct paper by Yao and colleagues (ICLR 2023) showed that a model which alternates reasoning with actions beat imitation and reinforcement learning methods by 34 and 10 points of absolute success on two interactive benchmarks. ZeroCrew marks the tools that run this loop for you as agents across its operations role.

What do you need before you build an n8n AI agent?

An n8n AI agent needs three things before you open the canvas: an n8n account or your own server, a key for a chat model, and logins for the apps the agent will touch. ZeroCrew's AI models page ranks the models founders use, so you can pick one before you start.

ZeroCrew suggests you prepare these items first, so the build itself takes one sitting:

  • A place to run n8n. n8n Cloud starts with a free trial and no credit card, according to n8n's pricing page as of November 2026. You can also self-host the free Community edition with Docker, using the one-line setup in n8n's hosting docs.
  • A chat model. Claude API, OpenAI API, or Gemini API. n8n's pricing page also lists AI models without API keys on its Cloud plans as of November 2026.
  • One job, written as one sentence. For this guide: "Read each new email, draft a reply from our notes, and send me anything you can't answer."
  • Your notes. Answers and policies in Notion or Airtable, so the agent and you work from the same page.

How do you build an AI agent in n8n, step by step?

Building an AI agent in n8n takes eight steps: add a trigger, add the AI Agent node, connect a chat model, write the system message, connect tools, add memory if the agent chats, gate risky tools behind human review, and test before you publish. ZeroCrew names two options wherever a step gives you a choice, so you can match the build to the tools you already use.

  1. Add a trigger. Start with the Chat Trigger while you build, so you can talk to the agent in n8n's chat panel. For the inbox agent, switch to the Gmail Trigger, which polls for new messages and can filter by label or sender. To give the agent an inbox of its own, ZeroCrew's AI email assistants page lists AgentMail; to keep a person-first Gmail inbox with AI drafts, it lists Shortwave.
  2. Add the AI Agent node. Set the Prompt to "Take from previous node automatically" for the Chat Trigger, or to "Define below" and point it at the email's subject and body for the Gmail Trigger, with the trigger's Simplify setting turned off so the full body comes through.
  3. Connect a chat model. Click the Chat Model connector and pick a provider such as Anthropic, OpenAI, or Google Gemini. Pick Claude API, which solo founders say they use most on ZeroCrew's AI models page as of November 2026, or Gemini API when you already work in Google.
  4. Write the system message. Give the agent its role, its steps, its rules, and when to stop and hand the email to you. A coding agent like Claude Code or Cursor can help you draft and tighten it.
  5. Connect tools. Add the Gmail tool set to create a draft, never to send. Add a lookup tool for your notes, such as the Notion or Airtable tool, so the agent answers from your facts.
  6. Add memory if the agent chats. Attach Simple Memory and set how many past interactions it keeps, or Postgres Chat Memory when you want the history stored in a database. An inbox agent that handles each email once can skip memory.
  7. Gate risky tools. Open the Tools panel, add a Human review step, choose Slack, Telegram, Gmail, or n8n Chat as the channel, and connect any tool that sends, changes, or deletes to it.
  8. Test, then publish. Run past emails through the agent, read each draft, then publish the workflow so the trigger runs on its own.

How do you give an n8n agent tools and MCP servers?

An n8n agent gets tools in three ways: app nodes used as tools, the HTTP Request or Call n8n Workflow tools for anything else, and the MCP Client Tool for any service that runs an MCP server. ZeroCrew's MCP servers list shows which tools in the directory have an MCP server, so you can check before you build around one.

App nodes become agent tools with one extra idea: let the model fill in the fields. n8n's docs describe a star button on each parameter, and the $fromAI() function, which tells the model to supply a value such as an email address or a subject line. ZeroCrew's n8n page lists Google Sheets, Gmail, OpenAI, Slack, and Notion among the apps n8n connects with, read from n8n's own site.

The MCP Client Tool node connects an n8n agent to the tools of an external MCP server, and you choose which of those tools to expose: all, selected ones, or all except some. ZeroCrew runs a free, read-only MCP server at https://zerocrew.ai/api/mcp/public, so you can add it as an MCP Client Tool with no sign-in and let your agent search the directory for the right tool for a job.

MCP now has neutral governance. On December 9, 2025, the Linux Foundation formed the Agentic AI Foundation with Model Context Protocol as a founding project. ZeroCrew's guide What is MCP? explains the protocol in plain words, so you know what your n8n agent connects to.

How do you keep an n8n AI agent safe?

A safe n8n AI agent gets only the tools its job needs, and a person approves every action that sends, changes, or deletes. The OWASP GenAI Security Project names three root causes of harmful agent actions: too much functionality, too many permissions, and too much autonomy. ZeroCrew's done-for-you setup follows the same rule: you approve what goes out until you trust it.

Human review in n8n works per tool. According to n8n's docs, when the agent wants to call a gated tool, the workflow pauses and sends the request, with the tool name and its parameters, to your chosen channel, and the reviewer approves or denies it. ZeroCrew suggests you also tell the agent in its system message which tools need approval and what to do after a denial, as n8n's docs recommend.

Hidden instructions are a major risk for an inbox agent, because every email is text the agent reads. NIST's Center for AI Standards and Innovation reported in January 2025 that new attacks raised agent hijacking success from 11% to 81% in its tests. ZeroCrew's advice for an n8n inbox agent follows from that finding: let it draft, never send, and keep sending behind your approval.

How do you test an n8n AI agent before it runs on its own?

Testing an n8n AI agent means running real past inputs through it and comparing each result with what you would have done. n8n's docs describe light evaluations with a handful of examples while you build, and metric-based evaluations once the workflow is live. ZeroCrew's guide to building an AI agent gives the same test order for any builder.

ZeroCrew suggests this test plan for the inbox agent, using the Executions tab in n8n to read every run:

  1. Collect 20 past emails, including the hard ones, the angry ones, and the ones with missing details.
  2. Run each one and compare the agent's draft with the reply you sent.
  3. Try to break it. Send an email that tries to give the agent new orders, and turn off a tool to see how it fails. NIST found that 25 attempts raised the average hijacking success rate from 57% to 80%, so repeat each attack.
  4. Publish with human review on, read every run for a week, then relax approvals one tool at a time.

How much does an n8n AI agent cost?

An n8n AI agent costs the n8n plan plus your model usage, unless you self-host the free Community edition. As of November 2026, n8n's pricing page lists Starter at 20 euros a month billed annually for 2,500 workflow executions and Pro at 50 euros for 10,000. ZeroCrew's n8n page shows what founders say about that price in public posts.

Executions are the number to watch, because n8n bills per workflow run, not per step. n8n's Chat Trigger docs note that every chat message runs the workflow, so a 10-message conversation uses 10 executions. ZeroCrew's n8n vs Zapier vs Make comparison sets n8n next to the two builders founders weigh it against most.

ZeroCrew lists other ways to build the same agent, and the right pick depends on how you like to work. The table shows the main options from ZeroCrew's AI automation agents and apps page:

BuilderPick it when
n8nYou want every step visible, code when you need it, and the option to self-host
ZapierYour apps are already connected there and you want a free plan to start
MakeYou like a visual canvas with managed hosting
GumloopYou want an AI agent without code
Relevance AIYou want several agents for sales, support, and research

How does ZeroCrew help you build an n8n AI agent?

ZeroCrew helps you choose the parts of your n8n agent before you build, so the agent runs on tools other founders already use. The AI automation agents and apps page ranks n8n, Zapier, Make, Gumloop, and Relevance AI three ways: by searches, by what solo founders say they use, and by what founders say about price.

ZeroCrew's public MCP server lets the agent you build find its own tools. Add https://zerocrew.ai/api/mcp/public to an MCP Client Tool in n8n, or as a custom connector in Claude, Cursor, or ChatGPT, and your agent can search the ZeroCrew directory by job, read a tool's page, and list the tools in each role and job, with no sign-in.

ZeroCrew also builds agents for founders who would rather not wire n8n themselves. The done-for-you AI automation service starts with a free discovery call, then ZeroCrew picks the tools, connects them to the ones you already use, and sets up your agents, with projects starting at $1,000 as of November 2026.