n8n in 2026 — Build AI Workflows That Replace Your Zapier Stack
What n8n is, in one paragraph
n8n is a fair-code workflow automation platform. You visually wire together nodes (one per integration or operation) to build workflows that run on a trigger. Think Zapier or Make, but with: (1) more flexibility — you can drop in JavaScript or Python at any step; (2) better pricing — per-execution, not per-task; (3) self-hostable if you want full control; and (4) a 70+ AI-node library that turns it into a real agent platform.
The fundamental building blocks
- Triggers — events that kick off a workflow. New Slack message, webhook, cron schedule, new email, new row in a database.
- Nodes — actions or transformations. Fetch from Google Sheets, post to Discord, call OpenAI, transform JSON, run JavaScript.
- Connections — drag a line from one node to the next; data flows along it.
- Expressions — write
{{ $json.email }}inside any field to reference upstream data.
Why n8n won 2026 for AI workflows
Three things came together:
- 70+ AI-specific nodes. LLM nodes for every major provider (OpenAI, Anthropic, Google, xAI, Mistral). Embeddings nodes, vector database nodes (Pinecone, Weaviate, Qdrant, PGVector), speech-to-text, OCR, image gen.
- Native LangChain integration. Build agents with tool use, memory, and multi-step reasoning. The "AI Agent" node accepts a list of tools (other workflows or sub-nodes) and lets the LLM decide which to call.
- Model Context Protocol support. Two new nodes — MCP Server Trigger and MCP Client Tool — let n8n workflows be called as tools by Claude, GPT, or any MCP-compliant client. Your n8n stack becomes the toolkit your favourite AI uses.
How to build your first AI workflow
Let's build a "summarise new GitHub issues into a daily Slack digest" workflow as an example:
- Trigger: Cron node set to 9:00 AM daily.
- Fetch: GitHub node — list issues created in the last 24 hours.
- Filter: If node — only issues with the
bugorcustomerlabel. - Summarise: OpenAI node — for each issue, prompt "Summarise this issue in one sentence for an engineering standup."
- Format: Code node — concatenate summaries into a markdown digest.
- Post: Slack node — send to
#engineering-standup.
Total build time: about 10 minutes. Total runtime per execution: about 4 seconds. Cost on the cloud plan: 1 execution per day = effectively free.
More patterns worth stealing
- RAG bot in a Discord channel. Discord trigger → embeddings on the message → vector DB lookup → LLM with retrieved context → reply.
- Auto-respond to support emails. Email trigger → LLM classifier (urgency/topic) → router → respond with template or escalate to human.
- Daily research brief. Cron → web scrape competitor blogs → LLM summary → write to Notion page.
- Calendar-driven content factory. Google Calendar event "blog: topic X" triggers → LLM outline → LLM draft → human review queue.
- Voice-to-action. Telegram voice message → Whisper transcribe → LLM intent parser → execute (create task, send email, etc.).
New in 2026: Human-in-the-Loop and Guardrails
Two features that made n8n usable in production AI workflows:
- Human-in-the-Loop (HITL) — pause a workflow and require human approval before continuing. Critical for any agent that takes irreversible actions (sending email, posting to social media, charging cards).
- Guardrails node — checks inputs and outputs for prompt injection, NSFW content, PII leaks, and other policy violations. Blocks or sanitises automatically.
Self-hosted vs cloud
Self-hosted is free forever, no execution limits, no workflow limits, no user limits. You just pay for hosting ($5-20/month on a small VPS). Right choice if you process sensitive data, want maximum control, or run lots of workflows.
Cloud plans start at $20/month for 2,500 executions. Right choice if you want zero ops overhead and you're not processing GDPR-restricted data.
Tips to avoid the common traps
- Use Set nodes for clean data. Add a Set node after any messy upstream to lock down the shape of your JSON. Saves hours of debugging.
- Pin test data on the trigger. Right-click the trigger and pin the last successful run's data — every downstream node now has reliable test input.
- Keep secrets in credentials, not in expressions. Use n8n's credential vault, not raw API keys in node config.
- Set up error workflows. Every production workflow should have an Error Trigger node that posts failures to your team channel.
- Log to a database, not to logs. Add a PostgreSQL/MongoDB node at the end of every workflow that records what ran. Searchable history is gold.
n8n Starter accounts (12-month) are on our live catalog — search for "n8n" to see the current listing.
