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 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.

Best Durable Workflow Engines for Production in 2026

A ranked list of the best durable workflow engines for production deployments in 2026. Durable workflow engines persist execution state to a database so that long-running workflows survive process restarts, deployments, and infrastructure failures. The ranking covers Temporal, Prefect, Apache Airflow, Camunda, Windmill, and n8n. Tools were evaluated on production reliability, developer experience, scalability, open-source health, and documentation quality. The shortlist intentionally mixes code-first engines (Temporal, Prefect, Airflow) with hybrid visual platforms (Camunda, Windmill, n8n) to reflect how production teams actually choose workflow engines in 2026.

Dive Deeper

guide

Client Portals vs Workflow Orchestration Platforms: What Changes When External Parties Act Inside a Process

What changes when a client or supplier has to act inside your process, not just watch it? This guide compares four client portals with four orchestration platforms on how outsiders get in, whether you pay for them and what the audit log records, from vendor sources read 14 and 15 September 2026.

comparison

Moxo vs Zapier in 2026: Human Approval Steps, External Participants and Pricing

Moxo and Zapier both put a person in front of an automated decision, from opposite ends: Moxo builds the process out of human steps and attaches AI, while Zapier pauses an automation for a reviewer through its Human in the Loop app. This guide compares approvers, rejection, AI approval, audit logs, governance and pricing, verified 14 and 15 September 2026.

comparison

Keystroke vs n8n in 2026: Agent-Built TypeScript vs the Visual Canvas

Keystroke, launched in July 2026 by Y Combinator W24 company Sprint Labs, is a code-first automation platform where AI coding agents write workflows as TypeScript in the user's repository. n8n, founded in 2019, is the most widely deployed source-available visual workflow platform, with 200,000+ users and a $2.5 billion valuation. This comparison covers the agent-authored versus canvas building models, durable execution, licensing (Elastic License 2.0 vs the Sustainable Use License), verified July 2026 pricing including Keystroke's usage metering, and the maturity gap between a days-old platform and an established ecosystem.