Free to read. Sign up to save your progress and take knowledge-check quizzes.

Sign up free
6 min read·Updated March 8, 2026

n8n is an open-source workflow automation platform with a visual node-based editor that connects 400+ apps and services — offering the power of Zapier with the flexibility of code, self-hosting for data privacy, and deep AI agent and LLM integration for building intelligent automation workflows.

Listen to this lesson

Free preview · first 0:30
0:00 / 0:30

Audio & video lessons are paid features

Plus unlocks audio streaming. Pro adds downloadable audio, video, certificates, and more.

Plus adds:
  • Audio streaming
  • Downloadable PDFs
  • All AI Playbooks
  • Personalized content
Pro also adds:
  • Certificates of completion
  • Audio MP3 downloads
  • Video lessonssoon
  • & More…soon

Watch this lesson

Video coming soon

Learning Objectives

  • Understand what n8n is and how it differs from Zapier and Make in its approach to workflow automation
  • Identify n8n's core features: node-based visual editor, code nodes, AI agent integration, and self-hosting
  • Evaluate when n8n is the right automation choice for a business or developer workflow

What Is n8n?

n8n (pronounced "n-eight-n") is an open-source workflow automation platform founded in 2019, used by over 400,000 teams and growing rapidly as AI-powered automation becomes mainstream. n8n occupies a distinctive position in the automation landscape: it offers the visual workflow editor of tools like Zapier and Make, while also providing full code flexibility, self-hosting for data privacy, and deep AI agent and LLM integration that positions it as the leading platform for building intelligent automation workflows.

Unlike Zapier (which is consumer-friendly but limited in complexity) or Make (which is visual but cloud-only), n8n lets developers and technical teams build sophisticated multi-step workflows that combine visual automation with custom JavaScript/Python logic and AI model calls.

Tip

Try n8n: n8n.io — free self-hosted version (open source, unlimited); n8n Cloud from $20/month; Enterprise on-premise with support

Core Features

Visual Node-Based Workflow Editor

n8n's editor is a canvas where workflows are built by connecting nodes:

  • Trigger nodes: What starts the workflow (webhook, schedule, email received, new Airtable record, GitHub push)
  • Action nodes: What the workflow does (send email, create Notion page, update Salesforce, run code, call API)
  • Logic nodes: If/else branching, loops, merge, split, error handling
  • Data transformation nodes: Set fields, function nodes for JavaScript transformation

Workflows are built by dragging nodes onto the canvas and connecting them — the data flows visually from left to right.

400+ Native Integrations

n8n has native nodes for 400+ services:

  • AI: OpenAI, Anthropic (Claude), Google Gemini, Hugging Face, Replicate
  • Productivity: Slack, Gmail, Outlook, Google Calendar, Notion, Airtable, Asana, Linear
  • CRM: Salesforce, HubSpot, Pipedrive
  • Databases: PostgreSQL, MySQL, Supabase, MongoDB, Redis
  • Developer: GitHub, GitLab, Jira, Docker, AWS, Google Cloud
  • Web scraping: HTTP Request node (any REST API), Firecrawl, SerpAPI
  • Communication: Twilio, SendGrid, Telegram, WhatsApp

AI Agent Nodes — LLM Integration

n8n has first-class AI integration through dedicated AI nodes:

  • AI Agent node: Build a ReAct-style agent with tool use — define tools (search, database lookup, API calls) and an LLM, and n8n executes the agent loop
  • Chat with Model: Call any LLM (GPT, Claude, Gemini, Ollama local models) with a prompt
  • Document ingestion: Process documents for RAG pipelines
  • Embeddings: Generate vector embeddings from any text
  • Memory nodes: Short-term context window management; long-term vector store memory

An example AI agent workflow:

  1. Trigger: New email received in Gmail
  2. AI Agent: Classify the email (urgent/routine/spam); extract action items
  3. If urgent: Create a Linear issue; send a Slack notification
  4. If routine: Draft a reply using the email context; save to Notion task

💡Key Concept

Why n8n for AI workflows instead of Python code: Python scripts can build the same workflow, but n8n provides observability (visual flow of execution), error handling (retry nodes, error branches), scheduling (no cron setup required), and connection management (credentials stored securely, not in code) out of the box. For teams that include non-engineers, n8n workflows are also readable — everyone can see what the automation does without reading Python.

Code Nodes — Full Flexibility

For logic that cannot be expressed with visual nodes:

// Code node in n8n (JavaScript)
const items = $input.all();
return items.map(item => {
    const email = item.json.email.toLowerCase();
    const domain = email.split('@')[1];
    return { json: { ...item.json, domain, isEnterprise: !domain.includes('gmail') }};
});

Python code nodes are also supported. This code/no-code hybrid is n8n's strongest differentiator from pure visual tools.

Self-Hosting for Data Privacy

n8n is open source and can be self-hosted:

  • Deploy on any server, Docker container, or Kubernetes cluster
  • Data never leaves your infrastructure — critical for healthcare, legal, and financial workflows
  • No per-task pricing when self-hosted — only your server costs
  • Full source code available for audit and customization

Pricing

Self-hosted (Open Source)$0 (server costs)
  • Unlimited
  • Developers
  • Privacy-sensitive workflows
  • Unlimited scale
n8n Cloud Starter$20/month
  • 2,500 executions/month
  • Small teams
  • Getting started without infrastructure
n8n Cloud Pro$50/month
  • 10,000 executions/month
  • Growing teams
  • Production workflows
EnterpriseCustom
  • Unlimited
  • Large organizations
  • On-premise support
  • SLAs

The self-hosted free version is the dominant choice for developers — deploy on a $5–10/month VPS and run unlimited workflows.

Strengths

  • Open source + self-hosted: Full data control; no per-execution pricing when self-hosted
  • AI-native: Best-in-class AI agent and LLM integration among visual automation tools
  • Code/no-code hybrid: Visual editor plus full JavaScript/Python for complex logic
  • Active community: 60,000+ workflow templates in the community library
  • MCP integration: n8n has early support for Model Context Protocol — connects AI agents to any n8n workflow as a tool
  • Strong AI agent loop support: ReAct agent pattern with tool use is a first-class feature

Limitations & Considerations

  • Setup complexity (self-hosted): Requires server configuration, Docker, and maintenance — more involved than Zapier's zero-setup experience
  • Steeper learning curve: More powerful than Zapier, but that power requires more time to learn effectively
  • Cloud pricing is execution-limited: The Cloud Starter plan's 2,500 executions/month can be limiting for high-frequency automations
  • Documentation gaps: Some advanced features are less well-documented than Zapier's extensive help center

Best Use Cases

TaskWhy n8n
AI email processing and responseGmail trigger → AI Agent → classify/draft/route
Data pipeline automationDatabase → transform → enrich with AI → sync to CRM
RAG pipeline maintenanceCron → scrape new content → embed → insert into vector store
Multi-step AI research workflowTavily search → AI summarize → save to Notion
Self-hosted privacy-sensitive automationOn-premise; data never leaves your infrastructure
Developer-friendly complex automationsCustom code nodes for any business logic

When to choose alternatives:

  • Zero technical setup needed → Zapier
  • Beautiful visual no-code experience → Make
  • Managed agent platform → Relevance AI
  • Python-first agent frameworks → LangChain or CrewAI

Getting Started

  1. Try n8n Cloud at n8n.io — free trial, no server required
  2. Or self-host with Docker: docker run -it --rm --name n8n -p 5678:5678 n8nio/n8n
  3. Browse workflow templates at n8n.io/workflows — find a relevant starting template
  4. Build your first workflow: add a Schedule trigger → HTTP Request → Send Email
  5. Add an AI Agent node with the OpenAI or Claude node as the language model — experiment with a simple classification task

Tip

For AI developers: n8n's AI Agent node with tool use is one of the fastest ways to deploy a production AI agent workflow without writing a custom Python application. You can build a full ReAct agent that searches the web (Tavily), reads databases (Supabase), and sends notifications (Slack) in the visual editor in under an hour — and then add custom JavaScript logic for anything the visual nodes don't cover. Self-hosting on a $6/month VPS makes this essentially free to run.

Key Takeaways

  • n8n is an open-source workflow automation platform that combines a visual node editor with full code flexibility and deep AI agent/LLM integration
  • Self-hosting is free and provides unlimited executions — the dominant usage pattern for developers and technical teams
  • 400+ native integrations cover every major productivity, CRM, database, AI, and developer tool
  • AI Agent nodes support the ReAct pattern with tool use — making n8n the strongest visual platform for building intelligent agent workflows
  • Steeper setup and learning curve than Zapier, but significantly more powerful for complex automations and AI-driven workflows

Save your progress & take the quiz

Sign up free to bookmark lessons, track which modules you've completed, and lock in what you learned with a quick knowledge-check quiz at the end of each lesson.

🧭Recommended for you