n8n keeps showing up in conversations about AI automation, and for a good reason. It's a visual workflow builder: you connect apps and steps on a canvas, and it runs them when something happens. Where it stands out is that you can run it on your own machine for free, drop in code whenever the drag-and-drop gets awkward, and put AI agents inside your workflows or let an agent like Claude build workflows for you.
How n8n works
Four ideas cover most of it:
| Term | What it means |
|---|---|
| Workflow | A chain of steps that runs from start to finish. It can branch, merge and loop. |
| Node | One step: "get new emails", "ask a model", "add a row", "send to Slack". |
| Trigger | The node that starts a workflow: a schedule, a form, a webhook, a chat message, a new email. |
| Credentials | Stored logins and API keys that nodes use to reach your apps. |
For AI, the key piece is the AI Agent node. You attach a chat model (OpenAI, Anthropic, Google and others), memory and tools to it, and it decides which tools to call for each request.
Cool things you can build
1. An inbox assistant with a safety catch. A new-email trigger feeds an AI Agent that sorts each message and drafts a reply. Set the "send email" tool to require human approval, so the workflow pauses until you approve or deny it in Slack or n8n Chat.
2. A morning digest. A schedule trigger pulls a few RSS feeds or pages, a model summarizes them, and the result lands in your email or Slack before you wake up.
3. Have Claude build the workflow. n8n has a built-in MCP server. Turn it on, connect Claude, Claude Code or Codex, and describe what you want:
In my n8n instance, build a workflow that runs every weekday at 8am,
fetches these three RSS feeds, summarizes the five most relevant items
with Claude, and sends the summary to my Slack channel. Run it once
and show me the output before you activate it.
The agent can create and edit the workflow, run it, read the result and fix what's wrong.
4. Turn a workflow into your own AI tool. The MCP Server Trigger node goes the other way: one workflow becomes an MCP server that exposes only the tools you designed. That's a tidy way to give Claude access to "look up an order" without giving it your whole database.
5. A form that remembers. A form trigger collects submissions, and a data table inside n8n stores them, so you can skip duplicates or reuse them in other workflows without setting up a database.
Tips and tricks
- Pin data while you build. Pin a node's output, and later steps reuse it instead of calling the API every time you test. Live runs ignore pinned data.
- Set one error workflow. Start a workflow with the Error Trigger, have it send you an alert, and assign it in each workflow's settings. Failures stop being silent.
- Use the Code node instead of chaining ten nodes. It runs JavaScript or Python. Self-hosted, you can enable extra npm modules; on n8n Cloud you can't import external ones.
- Start from a template, then make it yours. The template library is a fast way to see how other people wire things. Read every node before you add your own credentials.
- Approve the risky tools, not every tool. Put human review on anything that sends, deletes or buys. Leave read-only tools automatic.
What to watch
- The license. n8n uses the Sustainable Use License: free to use and modify for your own internal business, personal or non-commercial use. Selling it to others as a hosted service isn't covered.
- Self-hosting is a job. The free Community edition has almost every feature, but updates, backups and security are yours. n8n Cloud handles all that, with a 14-day trial and then paid plans. Features like SSO, Git version control and shared credentials need a paid plan.
- Agents act with your credentials. An AI Agent node can do anything its tools and logins allow. Give each workflow the narrowest access it needs, and read our guide to prompt injection before letting an agent read untrusted email or web pages.
Start here
- Pick a setup. For no install, start an n8n Cloud trial. To run it free locally, install Docker, run this, then open
http://localhost:5678:
docker volume create n8n_data
docker run -it --rm --name n8n -p 5678:5678 -v n8n_data:/home/node/.n8n n8nio/n8n
- Build one small workflow: a schedule trigger, one HTTP Request node that fetches a page, one model that summarizes it, one message to yourself.
- Run it manually, pin the fetch step, and refine the prompt until the summary is useful.
- Add the error workflow, then activate it.
Go deeper: Build your first workflow · n8n's MCP server · MCP vs CLI · Routine vs schedule vs loop