n8n has exploded in popularity in 2025–2026, and for good reason: it's a free, open-source automation platform that can replace Zapier, Make.com, and even simple RPA tools — with no per-task fees. In this complete n8n tutorial, you'll learn everything from installation and your first workflow to building AI Agent automations that run autonomously.
🔧 What You'll Learn in This n8n Tutorial
✅ What n8n is and how it compares to Zapier/Make
✅ How to install n8n (cloud + self-hosted)
✅ The n8n interface explained
✅ Build your first workflow step-by-step
✅ Real-world automation examples
✅ n8n AI Agent nodes (2026)
✅ n8n vs Zapier vs Make.com — which to choose
1. What Is n8n?
n8n (pronounced "n-eight-n") is an open-source workflow automation tool that connects your apps and automates repetitive tasks. Think of it as Zapier — but free to self-host, with no per-task pricing, full code access, and the ability to build complex multi-step automations with loops, branches, and AI agents.
Google, Slack, HubSpot, Airtable, OpenAI, GitHub, and hundreds more
Unlimited workflows and executions — pay only for your server (~$5/mo)
Build autonomous AI agents with OpenAI, Claude, Gemini — built-in
n8n was founded in 2019, reached 1 million+ installs by 2024, and in 2026 is one of the fastest-growing automation tools — especially among developers, technical marketers, and businesses wanting to escape Zapier's per-task pricing.
2. n8n vs Zapier vs Make.com (2026)
| Feature | n8n | Zapier | Make.com |
|---|---|---|---|
| Free tier | ✅ Unlimited (self-host) | 100 tasks/mo | 1,000 ops/mo |
| Pricing model | Server cost only (~$5-10/mo) | Per task ($20-$600/mo) | Per operation ($9-$29/mo) |
| Complexity | Technical (best for devs) | Very simple | Mid-level |
| Branching / loops | ✅ Full | ⚠️ Limited | ✅ Full |
| Code execution | ✅ JavaScript / Python | ❌ | ✅ Basic |
| AI Agents | ✅ Native (2026) | ⚠️ Limited | ⚠️ Limited |
| Self-hosting | ✅ Full control | ❌ | ❌ |
| Integrations | 400+ + HTTP node | 7,000+ | 1,500+ |
| Best for | Technical users, high volume | Non-technical users | Visual power users |
Rule of thumb: If you're sending 10,000+ automations per month, n8n self-hosted saves you $200-600+/month vs Zapier. The learning investment pays off quickly at scale.
3. How to Install n8n (2026) — 3 Options
Option A: n8n Cloud (Easiest — No Server Needed)
n8n offers a managed cloud version — no server setup required:
- Go to n8n.io → click "Start Free Trial"
- Create an account (Google login available)
- Choose your plan: Starter ($20/mo — 2,500 executions), Pro ($50/mo — 10,000 executions)
- You're in! Start building workflows immediately.
Best for: Teams that don't want server management and have low/medium automation volume.
Option B: Self-Host on VPS (Recommended for Power Users)
Self-hosting gives you unlimited executions for free. We recommend Hetzner Cloud (cheapest) or DigitalOcean:
# Step 1: SSH into your VPS (Ubuntu 22.04)
ssh root@YOUR_SERVER_IP
# Step 2: Install Docker
curl -fsSL https://get.docker.com | sh
# Step 3: Run n8n with Docker
docker run -it --rm \
--name n8n \
-p 5678:5678 \
-v ~/.n8n:/home/node/.n8n \
n8nio/n8n
Access n8n at http://YOUR_SERVER_IP:5678. For production, add a domain + SSL (use
Caddy or Nginx reverse proxy).
Option C: Local Installation (Best for Testing)
# Requires Node.js 18+ installed
npx n8n
# n8n opens at http://localhost:5678
4. The n8n Interface Explained
Once you're in n8n, you'll see the main canvas. Here's what everything means:
5. Build Your First n8n Workflow (Step-by-Step)
We'll build a simple but practical automation: Every time a new form submission arrives, send a formatted Slack notification with the data.
Step 1: Create a New Workflow
Click "+ New Workflow" in the left sidebar. You'll get a blank canvas with a prompt to add a trigger node.
Step 2: Add a Webhook Trigger
Click "Add first step" → search for "Webhook" → select it. Click "Listen for Test Event" — n8n gives you a unique webhook URL. Copy it.
Step 3: Send Test Data
In your browser, open a new tab and paste this in the URL bar (replace YOUR_WEBHOOK_URL):
-H "Content-Type: application/json" \
-d '{"name":"John Smith","email":"john@example.com"}'
Step 4: Add a Slack Node
Click the + button after the Webhook
node → search "Slack" → choose "Send Message". Connect
your Slack account via OAuth. Set Channel to #notifications.
Step 5: Format the Message
In the Message field, use n8n's expression syntax to insert data from the webhook:
Name: {{ $json.name }}
Email: {{ $json.email }}
Time: {{ $now }}
Step 6: Test & Activate
Click "Test Step" to run the workflow with your test data. Check Slack — your message should appear! Once it works, toggle the workflow to Active in the top right.
6. 5 Real n8n Automation Workflows (Copy-Ready)
🟢 1. Lead Capture → CRM + Email
Trigger: Webhook (from
any form)
→ Create contact in HubSpot CRM
→ Send welcome email via Gmail
→ Post
notification to Slack #sales
Saves: ~3 minutes per lead
🔵 2. Daily Google Sheets Report
Trigger: Schedule (every
day at 8am)
→ Read data from Google Sheets
→ Calculate summaries (Function
node)
→ Send formatted email report
Saves: 30 min/day of manual
reporting
🟠 3. Customer Support Ticket Routing
Trigger: Gmail — new
email to support@
→ OpenAI node: classify urgency (high/low)
→ IF node: route to
correct Slack channel
→ Create Notion ticket for tracking
Result: Zero
manual email sorting
🟣 4. Social Media Content Calendar
Trigger: Schedule
(Mon/Wed/Fri 9am)
→ Read next post from Airtable calendar
→ Post to Twitter via X
API
→ Post to LinkedIn via LinkedIn node
→ Mark row as "Published" in
Airtable
Fully automated social posting
🔴 5. E-commerce Order Processing
Trigger: WooCommerce new
order webhook
→ Add order to Google Sheets
→ Send customer confirmation email
→
Create shipping label via Shippo API
→ Notify warehouse Slack channel
Full
order automation — zero manual steps
7. n8n AI Agents 2026 — Build Autonomous AI Workflows
This is the most exciting feature of n8n in 2026. The AI Agent node lets you build LLM-powered agents that can decide what action to take — not just execute a fixed sequence.
What makes n8n AI Agents different: The agent can call tools (Google Search, your CRM, a database, an API) and decide which tool to use based on the input. It reasons through multi-step problems and loops until it has an answer — unlike standard automation which always follows the same path.
Example: AI Email Assistant Agent
Trigger: Gmail — new email arrives in inbox
AI Agent (GPT-4): "Read this email. Decide: Is it a sales inquiry, a support request, or spam? If inquiry → search CRM for the sender. If support → check tickets database."
Tools available to the agent: HubSpot search, Notion database query, Gmail draft creation, Slack message sender
Output: Agent drafts a personalized reply using found CRM context, creates a Notion ticket, and pings the right Slack channel — all autonomously.
This workflow required zero code — just the n8n AI Agent node, configured with OpenAI credentials and tool nodes. n8n handles all the LLM communication and tool calling logic.
Setting Up Your First AI Agent in n8n
- Add an AI Agent node to your workflow
- Connect your OpenAI (or Anthropic) credentials
- Write a System Prompt describing the agent's role and what tools it can use
- Add "Tool" nodes: each tool is a sub-workflow the agent can invoke
- Add a Memory node (Simple Memory or external DB) if you want the agent to remember past interactions
- Test with sample inputs — check the agent's reasoning in execution logs
8. n8n Pro Tips & Best Practices
EXECUTIONS_DATA_MAX_AGE=168 (hours) to auto-delete old execution logs. Without
this, your database grows indefinitely.