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
Related Tools
n8n
Workflow automation for technical teams
Workflow AutomationCrewAI
Open-source Python framework for building and orchestrating multi-agent AI systems
AI Agent PlatformsLangflow
Visual low-code platform for building AI agents and RAG applications with drag-and-drop components
AI Agent PlatformsRelevance AI
No-code AI agent builder for business tasks with multi-step workflows, knowledge base integration, and team collaboration.
AI Agent PlatformsRelated 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…
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…
Dive Deeper
Moxo vs Gumloop in 2026: Texting the Client, or Building the Agent
Gumloop (founded 2023) builds AI agents a company's own staff run; Moxo, whose predecessor Moxtra was co-founded in 2012, runs processes that wait on people outside the company. Gumloop wins three rounds to two: the way in, per-tool gating and a priced overage. Moxo wins on…
Moxo vs Relay.app in 2026: Where Relay's Approval Workflows Can Go Next
Relay.app, founded in 2021, shut down in September 2026 and deleted every account, workflow and run history; Moxo, whose predecessor Moxtra was co-founded in 2012, is one destination for its human-in-the-loop users. Relay.app takes two rounds, Moxo one, and vendor risk is a draw…
Moxo vs Workato in 2026: The Integration Estate, or the Approval Inside It
Workato, founded in 2013, is an enterprise integration platform whose Workflow apps add human tasks to recipes; Moxo, whose predecessor Moxtra was co-founded in 2012, ships the human step itself. Workato wins three rounds to two: connector reach, change control and the way in…