Most teams do not suffer from a shortage of tools. They suffer from the gaps between them. A form collects a request, a chat channel discusses it, a spreadsheet tracks it, and a language model could draft the reply — yet nothing connects these steps unless a person copies information from one place to another. That manual relay is slow, error-prone, and difficult to scale. n8n exists to close those gaps. It is a workflow automation platform that links applications, services, and AI models into flows you can see, test, and run on your own terms. This guide walks through the whole subject in nine chapters: what the tool is, how its licence works, how to install it, how to build a first workflow, how to add AI, and how to keep everything reliable in production.
1. What n8n Is, and What It Is Not
n8n is an open, fair-code workflow automation tool. A workflow is a sequence of steps, called nodes, connected on a canvas. Each node does one job: fetch data from an application, transform it, call a model, send a message, or store a result. When a workflow runs, data passes from node to node, and every execution is recorded, so you can inspect exactly what happened at each step. The interface is visual, which makes a flow easy to explain to colleagues, while the underlying logic remains precise enough for engineers.

It is helpful to be clear about what n8n is not. It is not a chatbot product, and it is not a replacement for the applications it connects. It does not store your business data as its own product, and it does not decide your process for you. Its value lies in orchestration: taking tools you already use and arranging them into repeatable behaviour. The current stable release, version 3.4.4, was published on 4 December 2026, and this guide was verified against the documentation and the project repository on 6 December 2026.
2. Why Teams Choose a Visual Workflow Tool
Automation can be written as code, and for many engineers that remains the right choice. Code is precise, versioned, and testable. Yet not every useful automation starts with an engineer, and not every change should wait for a deployment. A visual workflow lowers the cost of the first version. A product manager can sketch a flow, a developer can review it, and both can look at the same canvas when something goes wrong.
Visibility is the second reason. Each execution leaves a trace: which nodes ran, what data entered and left each one, and where an error occurred. When a scheduled report fails at three in the morning, that trace is the difference between guessing and knowing. The third reason is breadth. The project offers more than 500 native integrations, covering common services for messaging, storage, databases, calendars, and customer tools, alongside generic HTTP and webhook nodes for anything else. A team can therefore automate across its existing stack instead of replacing it.
3. The Licence, the Price, and the Honest Trade-Offs
Understanding the licence matters before building anything serious. n8n is distributed under a fair-code licence, the Sustainable Use License, which allows self-hosting and internal use while restricting the resale of the software as a competing hosted service. In plain terms, you can run it for your own organisation, study it, and adapt it, but you cannot take the code and sell n8n itself as a service. Enterprise features, support, and the managed cloud offering are sold separately by the company behind the project.
Self-hosting is free in licence terms, but it is not free in effort. You provide the server, the database, the backups, and the updates. The cloud option reverses that trade: you pay a subscription and the company operates the service. Which is right depends on your constraints. If data must stay inside your infrastructure, or if you want full control over the environment, self-hosting is the natural fit. If you want to start quickly and prefer someone else to handle uptime, the cloud is the simpler path. A related decision is how models are reached: a unified gateway such as LiteLLM can sit in front of many providers, so a workflow calls one endpoint while the choice of model stays changeable.
4. Installing n8n: Docker, npm, or Cloud
There are three practical ways to run n8n. Docker is the most common for self-hosting, because the official image bundles the application and its dependencies. A minimal Compose file looks like this:
services:
n8n:
image: n8nio/n8n:3.4.4
ports:
- "5678:5678"
volumes:
- n8n_data:/home/node/.n8n
volumes:
n8n_data:
Starting that file brings up the editor at port 5678. A volume is essential: without persistent storage, workflows and credentials disappear when the container is replaced. For a quick local experiment, npm is an alternative, installing the package and running the same application from the command line. The cloud option needs no installation at all; you create an account, and an instance is provisioned for you. If you already operate a home server, the same discipline that applies to self-hosting Open WebUI applies here too: use a reverse proxy with TLS, keep the editor behind authentication, and back up the data volume on a schedule.
5. Your First Workflow, End to End
A useful first workflow is small enough to finish in an hour and real enough to matter. Consider a daily digest: a schedule trigger fires each morning, an HTTP or application node fetches new items, a filter keeps only the relevant ones, and a messaging node posts a short summary to a team channel. Building it teaches the core ideas in order. The trigger decides when the flow starts. Each node receives items, transforms them, and passes them on. A workflow can be run manually for testing, and its executions can be inspected afterwards.
Good habits start here. Name nodes clearly, so a flow reads like a sentence. Add a note to any step whose purpose is not obvious. Test with real data, but in small quantities, and check the output of each node before adding the next. When a step fails, read the error at that node rather than rebuilding the whole flow. Keep credentials out of the workflow itself; they belong in the credential store, which is the subject of a later chapter. Once the digest works, schedule it, watch its first few executions, and only then move on to a more ambitious flow.
6. Adding AI: Language Models, Agents, and MCP
This is where n8n has changed most in recent years. AI nodes, built on LangChain, let a workflow call a language model, keep conversational memory, retrieve documents, and use tools. An AI agent node can decide which tool to call for a given request, which turns a fixed sequence into a flow that adapts to its input. That flexibility is powerful, and it needs boundaries: give the agent a small set of well-described tools, a clear instruction, and limits on what it may change.

The same agent ideas appear across this site: the guide to building AI agents with LangChain covers the underlying framework that the AI nodes use. n8n also supports the Model Context Protocol, both as a server trigger that exposes tools to an external client and as a client that lets an agent reach an MCP server. In practice, that means a workflow can offer its own tools to an assistant, or borrow tools from a server someone else maintains. Start with one model, one tool, and one task, and measure the result before adding more.
7. Triggers, Webhooks, Credentials, and Executions
Four concepts carry most of the day-to-day work in n8n. Triggers start workflows: on a schedule, when a message arrives, when a file changes, or when an external system calls a webhook. Webhooks deserve care, because they expose an address on the internet. Use the production URL only for live traffic, keep the test URL for development, and protect sensitive endpoints with authentication or a header token where the design allows it.
Credentials are the second pillar. They store API keys and OAuth tokens separately from the workflow, encrypted at rest, and a node references them by name. That separation means a workflow can be exported and shared without leaking secrets, and a key can be rotated in one place. Executions are the third: every run is logged, with its data and its outcome, and failed executions can be retried after a fix. The fourth concept is the distinction between manual, test, and production runs. A workflow behaves differently in the editor than it does when active, and the most common beginner mistake is testing a flow that was never activated. Check the active switch, and confirm the first scheduled run appears in the executions list.
8. Running Reliably: Queue Mode, Errors, and Backups
A single instance suits personal projects and small teams. As volume grows, queue mode separates the editor from the workers that execute workflows, so several workers can share the load and a long-running flow does not block the interface. That setup needs a message queue and a shared database, which is a real increase in complexity. Do not adopt it on the first day; adopt it when executions queue up, when runs take long enough to matter, or when availability becomes a requirement rather than a preference.
Reliability also comes from smaller decisions. Set a timeout on HTTP nodes so a slow service cannot stall a workflow indefinitely. Add an error branch that notifies you, instead of letting failures pass silently. Keep workflow JSON in version control, exported on a regular schedule, alongside backups of the database and the data volume. Record which version of n8n you run, and read the release notes before upgrading, because node behaviour can change between versions.
9. When n8n Is the Right Choice, and When It Is Not
n8n is strongest for integrations, scheduled tasks, and AI-assisted flows where a visual trace matters: triaging messages, syncing systems, enriching records, and drafting summaries for human review. It is weaker for heavy data processing, for real-time systems with strict latency limits, and for logic that is easier to express and test as code. A workflow with dozens of branches and nested conditions becomes hard to read; at that point, move the complex logic into a function or a small service, and let n8n orchestrate around it.
Cost is part of the decision too. Self-hosting removes the subscription, but not the work. Cloud removes the work, but not the subscription. AI calls add their own cost, which depends on the model and the volume of tokens, so log usage and set expectations early. Finally, workflows export as JSON, so you are not locked into a proprietary format.
Summary
n8n turns scattered tools into connected systems. Its visual canvas makes flows explainable, its execution history makes them debuggable, and its fair-code licence makes self-hosting a realistic option. Version 3.4.4, the stable release verified on 6 December 2026, adds the modern AI pieces — LangChain-based agent nodes and Model Context Protocol support — to a mature automation core with more than 500 integrations. Start with Docker or the cloud, build one small workflow, protect your credentials, and let the system earn its place one reliable execution at a time.