n8n: The Automation Tool at a Glance
n8n combines no-code ease of use with the freedom to run your own code and infrastructure. This guide covers its structure, the hosting question, your first workflow, and its AI building blocks.
What you will learn
- What n8n is and how it differs from classic no-code services
- How nodes, connections, and executions work together
- When self-hosting makes sense and when the cloud version remains the better choice
- How to build and test your first workflow in a structured way
- What the AI building blocks can do — from a simple model call to a full agent
n8n in one sentence
n8n is an automation platform where you build workflows as a visual diagram of connected building blocks — with the difference from most competitors being that you can also run it on your own infrastructure and insert your own code at any point.
That puts n8n in a middle position: simpler than programming it yourself, more powerful and open than pure no-code services. That exact combination has made the tool one of the most widely used for AI-powered automation in recent years, especially among technically skilled teams and in environments with strict data privacy requirements.
How n8n is structured
Three terms are enough to understand n8n.
The code and HTTP building block is the real difference: even without a ready-made integration, any service with an interface can be connected.
Nodes
A node is a single building block in the workflow. There are four types that matter in everyday use:
- Trigger nodes start the workflow — via schedule, webhook, incoming email, or an event in a connected service.
- App nodes talk to a specific system: CRM, spreadsheet, chat tool, database, cloud storage. There are several hundred of them.
- Logic nodes branch, filter, wait, run loops, or merge data back together.
- Code and HTTP nodes are the emergency exit: if there's no ready-made building block for a system, you call its interface directly or write a few lines of JavaScript or Python.
The HTTP node is the practically most important difference from more closed tools: you're never dependent on an integration existing. If the service has an API, you can connect it.
Connections and data flow
Nodes are connected by lines, and what flows through these lines are data items — not single values. If a list with 50 rows runs into a node, it processes all 50 by default. This "one node, many items" principle is the most common stumbling block for people switching from tools that push each record through individually. It's also the reason n8n handles bulk data more efficiently.
Executions
Every run of a workflow is an execution. n8n logs the data at every single node — that's gold when debugging: you can see exactly which building block received which values and what it output. Failed executions can be restarted after a fix.
If you're not yet familiar with the basic concepts of trigger, action, and logic, start with Workflow Automation: Basics.
Self-hosting or cloud?
The hosting question is the most important decision before you start — and it has less to do with cost than most people assume.
Self-hosting | n8n Cloud | |
|---|---|---|
**Operation** | Your own server or container, updates and backups in your hands | Fully hosted, updates automatic |
**Data storage** | All data and credentials stay in your environment | Processing at the provider, data center choice possible |
**Cost logic** | Server costs plus operating effort, no per-run billing | Subscription based on executions and feature scope |
**Entry barrier** | Basic technical knowledge of containers, domains, and certificates required | Create an account, get started |
**Typical for** | Sensitive data, high volumes, internal systems on the network | Fast start, small teams without operations resources |
The honest recommendation: Start in the cloud if you're getting to know the tool or if no one on the team maintains servers. Switch to self-hosting once personal data is involved, once internal systems need to be connected, or once execution numbers rise so much that your own server becomes cheaper. Switching is possible — workflows can be exported and imported.
On the licensing model: the core is open source and free to use for self-hosting, though under a license with restrictions on commercial resale as your own service. Certain enterprise features like advanced permission management, environments, and logging are reserved for paid editions. For internal use within your own company, the free version is usually enough.
The hosting question is decided less by price than by data privacy: as soon as personal data is involved, processing belongs in your own environment.
Your first workflow — step by step
Using the example "qualify a form submission and push it to the CRM" — the approach transfers to almost any use case.
Your first workflow: schedule trigger, data source and filter — after the test run, the connections show how many items pass through each step. (Screenshot: August 2026)
A node execution log: input, condition and output side by side — that is how you trace every step of a workflow. (Screenshot: August 2026)
- Set the trigger. A webhook trigger receives the form data. n8n provides an address for this that you enter with your form provider. Alternative: a schedule trigger if you're pulling data regularly.
- Capture test data. Send a real submission through once. From here on you work with real field names instead of assumptions — the most important step for building cleanly.
- Filter. A logic node stops the flow if required fields are missing or the request is obviously spam. Anything that would only burden the rest of the workflow gets removed here.
- Prepare the data. Rename fields, split names, format the date, standardize phone numbers. Either with the edit node or with a few lines of code if that's faster.
- Connect the target system. The app node for your CRM creates the contact. You store credentials centrally once, not per workflow.
- Notify. A message to the team channel with the three relevant fields — not the entire record.
- Define the error path. Decide what happens if the CRM doesn't respond: a retry with a delay, and if that also fails, an alert to a real person. A workflow without an error path is unfinished.
- Activate and watch. After going live, review the execution logs for the first few days. The surprising edge cases show up reliably in week one.
Keep the first workflow deliberately short. Exception handling comes in version two, once you know which exceptions actually occur.
The AI building blocks
n8n oriented itself toward AI workflows early on, and you can tell from the building blocks. Four categories matter:
Model calls. A node calls a language model — from the major providers to locally run models. Handy here: the provider is interchangeable without rebuilding the workflow. If you have privacy reasons, you can plug in a self-hosted model; see Using Local LLMs & Open-Source Models for details.
Structured outputs. You define a field schema, and n8n validates the model's response against it. This validation is exactly what makes an AI step viable in a production process.
Vector stores and knowledge retrieval. Read in documents, split them into sections, store them as vectors, and pass the matching sections as context on a query — the complete RAG pattern can be built without writing any code.
Agent building blocks. A node that equips a model with a selection of tools and lets it decide on its own which one to use and when. Powerful, but exactly the pattern that needs tight limits and human sign-off.
Which of these building blocks you need for which use case is something the core article AI Automation sorts out.
Strengths and limits
n8n is strong with complex data processing, high volumes, custom interfaces, data privacy requirements, and AI-heavy workflows. The combination of a visual interface and the ability to drop into code at any point saves a lot of time in convoluted processes.
Limits show up at the entry barrier: someone who's never dealt with data structures, interfaces, or error messages gets to a first result faster with a more guided tool. The number of ready-made integrations is also lower than the biggest competitors' — which the HTTP node cushions, but not with a single click. And when self-hosting, you take on responsibility for updates, backups, and uptime.
How that plays out against the alternatives is shown by the comparison n8n vs. Zapier vs. Make.
Conclusion
n8n is the tool for teams that don't just want to click automation together but want to control it: their own hosting, their own code, interchangeable AI models, and a data model that handles large volumes. The price for that is a noticeable learning curve in the first few weeks. Once you've internalized the logic of nodes, data items, and executions, you can build processes that no pure no-code tool can match anymore.
FAQ
Frequently Asked Questions
n8n is an automation platform where workflows take shape as a visual diagram of connected building blocks. The core is open source and can be run on your own infrastructure. At any point in the workflow you can insert your own code or direct API calls — that's what sets n8n apart from closed no-code services.
For self-hosting there's a free-to-use version; you then only pay server and operating costs. The hosted cloud version is billed as a subscription based on executions and feature scope. Certain enterprise features like advanced permission management and separate environments are reserved for paid editions.
Cloud, if you want to start quickly or no one on the team maintains servers. Self-hosting, once personal data is being processed, internal systems need to be connected, or execution numbers rise sharply. A later switch is possible because workflows can be exported and imported.
Not for simple workflows — the building blocks are enough. A feel for data structures is useful, because whole lists of data items flow through the connections in n8n. Once you connect your own interfaces or reshape data extensively, a few lines of JavaScript or Python help noticeably.
Yes, that's one of its strengths. There are building blocks for model calls from various providers, for structured and validated outputs, for vector stores for knowledge retrieval, and for agents with tool access. Because the model provider is interchangeable, self-hosted models can be integrated too.
Quiz
Test Your Knowledge
Five questions on n8n's structure, hosting, and AI building blocks.
Question 1 of 5
What sets n8n apart from most pure no-code services?