Workflow Automation

n8n Workflow Automation: The Complete Beginner's Guide (2026)

n8n is a workflow automation tool you can use on n8n Cloud or run on your own server. Its plans and license, a Docker install, a first workflow, the concepts you use every day, and adding AI to a workflow.

By Published Updated

n8n is a workflow automation tool that connects apps and APIs through visual workflows, with JavaScript or Python available in a Code node. n8n Cloud plans start at 20€ a month billed annually. The self-hosted Community Edition is free under n8n's Sustainable Use License, which allows internal business use, though n8n recommends self-hosting for expert users.

n8n (pronounced "n-eight-n") is a workflow automation tool. You build a workflow on a canvas out of nodes: one node starts the workflow, and the rest fetch data, change it and send it to other apps and APIs. When a step needs logic the built-in nodes do not cover, a Code node runs JavaScript or Python. Plans, prices and features below come from n8n's own docs and pricing page, checked on November 1, 2026 and listed under Sources.

Still deciding between n8n, Zapier and Make? Read the Make vs n8n vs Zapier comparison first.

Cloud or self-hosted

You can use n8n in two ways.

n8n Cloud is hosted by n8n. You start a free trial and build in the browser. The pricing page lists its plans in euros, billed annually:

  • Starter: 20€/mo, 2.5K workflow executions, 5 concurrent executions
  • Pro: 50€/mo, 10K workflow executions
  • Enterprise: Contact Sales, with custom executions and the option to self-host

n8n counts an execution as one run of a workflow, however many steps it has and however much data it moves. The pricing page says annual billing saves 17%. There is also a Business plan at 667€/mo billed annually, which is self-hosted only for now.

Self-hosting means n8n runs on your own server or computer. The Community Edition is the free edition, the one n8n runs without a license key, and it includes almost the full feature set. It leaves out team and governance features such as SSO, projects, workflow and credential sharing, environments, external secrets and Git version control. You can stay on it indefinitely.

n8n is direct about who should self-host. Its docs recommend self-hosting for expert users, list the skills it takes (servers and containers, resource management, security and n8n configuration), and warn that mistakes can lead to data loss, security issues and downtime. If nobody on your team manages servers, n8n recommends n8n Cloud.

The license

n8n's source code is published under the Sustainable Use License. It lets you use or modify the software for your own internal business purposes, or for non-commercial or personal use. You may distribute it or provide it to others only free of charge and for non-commercial purposes. Source files marked .ee fall outside that license and need an n8n Enterprise License.

Automating your own company's work sits inside those terms. If you plan to resell n8n, host it for clients or build it into a product you charge for, read the license before you start.

Run it on your own computer with Docker

The quickest way to try self-hosted n8n is Docker on your laptop. Install Docker Desktop (Mac, Windows or Linux), then run these two commands, replacing <YOUR_TIMEZONE> with your time zone:

docker volume create n8n_data

docker run -it --rm \
 --name n8n \
 -p 5678:5678 \
 -e GENERIC_TIMEZONE="<YOUR_TIMEZONE>" \
 -e TZ="<YOUR_TIMEZONE>" \
 -e N8N_ENFORCE_SETTINGS_FILE_PERMISSIONS=true \
 -v n8n_data:/home/node/.n8n \
 n8nio/n8n

Then open http://localhost:5678. The first command creates a volume for persistent data, and the -v line mounts it so your data survives container restarts.

n8n marks that single-container page as outdated and points to Docker Compose instead. For a server your team will use, its Docker Compose guide runs n8n behind Traefik, which handles the TLS certificates, on a subdomain you point at the server. You set your domain, subdomain, time zone and email in an .env file, write a compose.yaml, and start everything with sudo docker compose up -d. The result is n8n at an address like https://n8n.example.com, and plain HTTP access is not supported.

Build a first workflow

n8n's own first-workflow tutorial builds a daily report from four nodes, and the same shape fits a lot of business reporting:

  1. A Schedule Trigger set to run every day at 8 AM.
  2. An HTTP Request node that fetches data from an API.
  3. An Edit Fields (Set) node that shapes that data into the fields you want, such as a report field.
  4. A node that stores or sends the result. The tutorial inserts a row into an n8n Data table. In your version this might be an email, a chat message or a spreadsheet row.
  5. Select Publish in the canvas header and follow the prompts to switch the schedule on.

Before you publish, run the workflow by hand and look at the output of each node.

Concepts you will use every day

Every workflow starts with a trigger node, such as the Schedule Trigger above or the Error Trigger below.

Expressions are small pieces of JavaScript-like code you put directly into a node's settings with double curly braces. {{ $json.body.city }} pulls the city value out of the previous node's data. Expressions are how you pass a name, an email or an ID from one step to the next.

The Code node runs JavaScript (Node.js) or Python. On self-hosted n8n you can import built-in and external npm modules. On n8n Cloud you cannot import external npm modules, and only the crypto and moment modules are available. Use it for the odd step the regular nodes do not cover, and keep the rest of the workflow visual so others can read it.

In each workflow's settings you can name an error workflow to run when it fails. That error workflow must start with the Error Trigger node, which receives details such as the error message and the last node that ran. A Stop And Error node lets you fail a run on purpose, under conditions you choose, which also sends it to the error workflow. Point every production workflow at one error workflow that messages the person responsible.

Adding AI to a workflow

n8n connects to model providers including OpenAI, Anthropic and Google, and you can use more than one model in the same workflow. Its AI building blocks are agents, chains, tools, memory and vector databases, built on LangChain concepts. You can connect an AI agent to an MCP server, and the docs include evaluations for testing an AI workflow before you rely on it.

A good first AI workflow puts one AI step inside an otherwise ordinary flow. An email arrives, an AI step classifies it, and regular nodes route it to the right person. Keep a person checking the classifications for the first few weeks, and adjust the prompt wherever a classification is wrong.

What to automate first

Pick work that repeats on a schedule or an event, follows rules you can write down, and already lives in apps with an API. Three starting points built from the nodes above:

  • A new web form submission, then a lookup in your CRM, then a new or updated contact, then a message to the owner
  • A daily schedule, then yesterday's orders or tickets pulled by HTTP Request, then a summary, then a post to a team channel
  • An incoming email, then an AI step that classifies it, then routing to the right inbox or queue

Run one workflow for a few weeks with its error workflow on before you build the next. When it has run cleanly and saved someone a recurring chore, add the second.

If you self-host, before you rely on it

  • Put it behind HTTPS on your own domain. The Docker Compose guide does this with Traefik.
  • Back up the n8n_data volume, since it holds your n8n data.
  • Set an error workflow on every production workflow.
  • Keep n8n updated, and read the release notes before major version jumps.
  • Decide who owns the server, and write that name down.

Sources

  1. n8n pricing (n8n) (checked 2026-11-01)
  2. Compare editions: Community edition features (n8n docs) (checked 2026-11-01)
  3. Sustainable Use License (n8n repository on GitHub) (checked 2026-11-01)
  4. Install with Docker (n8n docs) (checked 2026-11-01)
  5. Docker Compose server setup (n8n docs) (checked 2026-11-01)
  6. Build your first workflow (n8n docs) (checked 2026-11-01)
  7. Expressions (n8n docs) (checked 2026-11-01)
  8. Code node (n8n docs) (checked 2026-11-01)
  9. Handle errors gracefully: error workflows (n8n docs) (checked 2026-11-01)
  10. Integrate AI (n8n docs) (checked 2026-11-01)
the list

Get the next one.

Field notes from real deployments, written the way this one was. No schedule promised and nothing sold to you. Unsubscribe whenever.

Frequently asked questions

What is n8n?

n8n is a workflow automation tool. You build workflows from nodes on a visual canvas to connect apps and APIs, and add JavaScript or Python in a Code node when you need custom logic. It runs on n8n Cloud or on your own server.

Is n8n free?

The self-hosted Community Edition is free and runs without a license key, under n8n's Sustainable Use License. n8n Cloud starts with a free trial, then paid plans: Starter at 20€/mo and Pro at 50€/mo, both billed annually.

Is n8n open source?

n8n publishes its source code under the Sustainable Use License. It allows use and modification for your own internal business purposes or for non-commercial or personal use, and allows distribution only free of charge for non-commercial purposes. Files marked .ee need an n8n Enterprise License.

Do I need to know how to code to use n8n?

No. You build workflows by connecting nodes and filling in their settings. Expressions in double curly braces and the Code node, which runs JavaScript or Python, are there for the steps that need them.

Need help implementing this?

Prometheus does AI consulting and implementation, remote, with onsite days available in Milwaukee. We set it up, train your team, and make sure it works.

let's talk