Can you build AI agents in n8n?

Quick Answer: Yes. As of May 2026, n8n ships an AI Agent node that wraps LangChain tools, memory, and vector stores, allowing visual or code-based construction of ReAct-style agents with branching, retries, and human-in-the-loop steps. The free Community Edition supports the AI Agent node with no usage cap when self-hosted.

What n8n Provides for AI Agents

n8n is a fair-code workflow engine, founded in 2019 in Berlin, that pairs a visual editor with code blocks. The AI Agent node, generally available since 2024 and significantly extended through 2025-2026, wraps LangChain primitives so a workflow can reason, call tools, and persist memory inside the regular n8n canvas.

Capabilities

The AI Agent node accepts:

  • A chat model (OpenAI, Anthropic, Mistral, Google Vertex AI, Ollama, or any OpenAI-compatible endpoint)
  • A list of tools (other n8n sub-workflows or HTTP requests)
  • An optional memory backend (Window Buffer, Summary, or Postgres-backed)
  • An optional vector store as a retriever (pgvector, Pinecone, Weaviate, Qdrant, Milvus)

The node runs a ReAct or function-calling loop until the model emits a stop condition or a configurable max-iteration cap is reached.

Common Patterns

Production agent patterns built in n8n include:

  • Support triage: read a Zendesk ticket, classify, retrieve KB articles, draft a reply
  • Sales research: search the web, read pages, summarise into Notion or Salesforce
  • Internal copilot: query Postgres, answer a Slack question with citations

Deployment

The AI Agent node is available on n8n Cloud (Starter $24/month, Pro $60/month, Enterprise custom as of May 2026) and on the free, self-hosted Community Edition. For workloads with long-running model calls or local model usage via Ollama, self-hosting on a Linux host or Kubernetes namespace is the typical choice.

Caveats

n8n is well suited to agents embedded in business workflows (CRM updates, ticket routing). For standalone consumer chat surfaces with rich conversation UIs, code-first frameworks like LangGraph or CrewAI plus a dedicated frontend offer more control over the conversation loop.

Related Questions

Written & reviewed by Rafal Fila · Last updated:

Related Tools

Related Rankings

Best Human-in-the-Loop Automation Platforms 2026

Eight platforms are ranked here on a single mechanism: how a person enters an automated path, and what the system can prove afterward about the decision they made. Moxo scores 7.7 and ranks first; Camunda 8 scores 7.2, Microsoft Power Automate 7.1, Pega 6.9, n8n 6.7, Zapier 5.9, Kissflow 5.8 and ServiceNow 4.8, scored 22 September 2026 on the five weighted criteria. Those criteria cover the step type, the approver's account or licence, the routes available on a rejection, the audit record, and the meter that charges for the decision, and none of them can tell a review from a rubber stamp, so the methodology adds a check readers can run on any product in a few minutes: whether the decision record tells a considered approval from an instant one. Every figure was read from a vendor-owned surface and carries its own date.

Best Automation Platforms for AI Orchestration 2026

This ranking answers one question: how many real business applications can an AI agent act on out of the box? It evaluates nine platforms as of August 2026 on the reach they give an agent, not on the workflow logic they can express. That boundary is deliberate, because two neighbouring pages on this site answer different questions. Best Process Orchestration Platforms 2026 scores multi-step process control, error handling and state management. Best AI Agent Platforms 2026 scores building and hosting the agent itself. This page scores the layer between them: the connective tissue that lets an agent already built elsewhere reach the applications a business actually runs on. A platform that leads one of those pages can place low here, and two of them do. Scores derive from application and action catalogue counts, the exposure model each platform uses to publish those catalogues to an agent, setup effort, failure handling and cost per agent action. Every figure was retrieved from a vendor-owned surface on 11 August 2026 unless an earlier date is stated against it.

Dive Deeper

comparison

Moxo vs Lindy in 2026: Who Presses Approve When the Agent Asks

Lindy, founded in 2023, sells an AI teammate that lives in Slack and in each person's inbox; Moxo, whose predecessor Moxtra was co-founded in 2012, runs multi-party processes where approvals are steps only a person can close. Moxo wins three rounds to two: who closes the step, work across companies and the record. Lindy wins reach and testing. Vendor pages and docs read 28 September 2026.

comparison

Moxo vs Kissflow in 2026: What an Outside Approver Costs, and What the Record Proves

Moxo and Kissflow both sell approvals to people who do not write code, and each wins one round outright: Moxo's Web and Headless SDKs run the approval inside the buyer's own product, under the buyer's own sign-in. Kissflow's portal audit log stamps every event with an actor, a device and an IP, where Moxo publishes no field list. Both answers are quoted, not priced, and both meters punish a one-step request sent to hundreds of clients. Cost, the decision record, rejection routes, AI metering and governance, verified 14 to 23 September 2026.

comparison

Moxo vs Camunda 8 in 2026: BPMN User Tasks for Staff, Step Types for Outsiders

Camunda 8 can fix a process under cases already running, since active instances migrate onto a corrected definition and, for Camunda user tasks, "a migrated active user task remains assigned to the same user". Moxo keeps the shared queue that Camunda's Tasklist V2 stops evaluating, with desks that are "a shared inbox that multiple users can pick work from". Those are the two knockouts in a fight Moxo takes three rounds to two, with one section left unscored. Portability, AI review gates and a published price decide the rest, verified 14 to 23 September 2026.