n8n for AI Agents: LangChain, Memory & Tool-Calling
Last updated: November 11, 2026 · Reviewed by: IntegrateStack Editorial
n8n ↗ builds AI agents from LangChain-based nodes: an AI Agent node that decides which tools to call, plus separate nodes for memory, vector stores and text splitting. It expects you to be comfortable with JSON and HTTP requests, and in return you can drop into code and run the whole thing on your own server.
n8n's AI Agent node calls tools you choose
Checked November 11, 2026, against n8n's documentation and pricing page.
| Node type | What it does | Examples |
|---|---|---|
| AI Agent | Lets the model decide which connected tools to call to reach a goal | Every agent is a tools agent since n8n 1.82 |
| Memory | Keeps earlier turns of a conversation | Simple Memory (formerly Window Buffer Memory) |
| Vector stores | Stores and searches embeddings of your documents | Pinecone, Qdrant, Simple Vector Store |
| Text splitters | Breaks documents into chunks before embedding | Character, Recursive Character, Token |
| Code | Runs JavaScript or Python for logic the nodes don't cover | On n8n Cloud, Python can't import external libraries |
Sources: AI Agent node, Simple Memory, Code node.
Start from a template
Ready-to-import agent workflows, including web-scraping agents and sales researchers, are in the n8n AI agent blueprint library.
Try n8n →n8n counts each workflow run once
n8n Cloud counts an execution as one full run of a workflow, however many nodes it has, so a long agent workflow costs the same as a short one. Cloud plans, billed annually in euros: Starter is €20 a month for 2,500 executions, Pro €50 for 10,000. There's no free cloud plan, only a trial. Business (€667 a month for 40,000 executions) is now for self-hosted deployments.
The self-hosted Community Edition is free. If your agent handles proprietary or customer data, self-hosting keeps it off a third-party automation server, and your costs are the server plus your model API usage (OpenAI, Anthropic and others).
Source: n8n pricing.
Frequently asked questions
Does n8n have native support for AI agents? ▼
Yes. n8n ↗ has native LangChain integration with dedicated nodes for agents, memory, vector stores, and tool-calling, letting an LLM decide when and how to use a set of tools to reach a goal.
Do I need to know how to code to use n8n for AI workflows? ▼
Not strictly. n8n rewards technical literacy: its interface expects comfort with JSON, HTTP requests, and data structures, and its Code Node lets you write JavaScript or Python when prebuilt nodes fall short.
Why self-host n8n for AI agents? ▼
AI workflows often touch proprietary or sensitive data. Self-hosting n8n means data never touches a third-party automation server before hitting the LLM, and your only ongoing cost is infrastructure plus LLM API usage.