Complete guide to n8n
Getting started
Install n8n on your own server (free, open source) or use the paid cloud version at n8n.io. When you open the editor, you'll see a blank canvas where you build workflows by connecting nodes: a trigger node starts the workflow, and the following nodes run actions or call external services. For your first workflow, add a Trigger (for example, a webhook or a timer) and connect a simple action node (send an email, save to a spreadsheet). Once you understand the basic logic of connected nodes, you can add an AI Agent node so the AI decides what to do based on context, instead of following fixed rules.
Use cases
AI agents with connected tools
The AI Agent node connects to databases, APIs, or MCP servers, so a language model can read context, use those tools, and decide the next step autonomously.
Smart support router
Reads incoming support emails, classifies them by intent, drafts a reply, and routes complex cases to the right team, all automatically.
Repetitive task automation
Connect apps (CRM, email, spreadsheets) so data and actions flow between them without manual intervention.
Multi-agent supervision in a single workflow
The AI Agent Tool node lets one agent supervise other agents on the same canvas, for more complex, coordinated tasks.
Advanced setup
- Basic structure of an AI workflowA trigger node (webhook, timer) starts the workflow. The AI Agent node acts as the orchestration layer, using reasoning to decide which tools to invoke based on the request it receives.
- Connecting tools to the agentGive the agent access to specific tools: one that queries your customer database, another that checks an order's status, another that creates a support ticket. The agent decides which one to use based on the request.
- Memory managementFor agents handling multi-turn conversations, choose between window memory (last N messages), summary memory (a rolling summary), or external memory backed by Redis or Postgres.
- Choosing the model providern8n supports OpenAI, Anthropic, Mistral, Google Vertex AI, local models via Ollama, or any OpenAI-compatible endpoint through the generic node.
Tips
- Start with a simple workflow (a trigger plus one action) before adding an AI Agent: understanding the basic node logic makes it much easier to debug more complex workflows later.
- Give the agent only the tools it actually needs for the task: the more options it has, the more likely it is to get confused about which one to use.
- Use summary memory instead of full window memory when conversations get very long, so you don't saturate the model's context window.
- If data privacy is a concern, consider self-hosting n8n instead of using the cloud version: you keep full control over execution and data.
- Test each node on its own before connecting the full workflow: it makes it much easier to find the exact point where something fails.
FAQ
Is n8n free to use?
Yes. It is free and open source if you self-host it on your own server. The cloud version managed by n8n has paid plans starting at about $20/month.
Do I need to know how to code to use n8n?
Not necessarily. The visual editor lets you build workflows without code. Knowing how to program helps with more advanced logic, but it isn't an entry requirement.
What is the difference between n8n and Zapier or Make?
n8n offers more technical flexibility (custom code, self-hosting, full data control) in exchange for a somewhat steeper learning curve than Zapier or Make.
Can I use local AI models instead of cloud services?
Yes. n8n supports local models through Ollama, which is useful if you need to keep your data within your own infrastructure.
Based on docs.n8n.io