n8n
The open-source workflow automation platform for AI agents
n8n is an open-source workflow automation tool that connects hundreds of apps and APIs through a visual node-based editor. In 2025 it has become the leading platform for building AI agents that take real-world actions — reading emails, updating CRMs, querying databases, and orchestrating multi-step AI pipelines.
Learn n8n with a structured course →What n8n does
n8n lets you visually connect apps, APIs, and AI models into automated workflows called "workflows." Each step is a node — trigger, action, or transformer. It runs self-hosted (free) or on n8n Cloud, and its Code node lets developers add arbitrary JavaScript or Python logic inline. Its AI nodes let you call LLMs, build agents with tool use, and maintain memory across workflow runs.
Is it right for you?
n8n is best for…
- Technical product managers who want to prototype integrations without full engineering effort
- Developers building AI agent pipelines that interact with real systems
- Startups that need automation power without paying Zapier enterprise prices
- Teams who want full data ownership by self-hosting their automation infrastructure
- Engineers who need the flexibility of custom code inside a visual workflow tool
Not the best choice if…
- Non-technical users who want a no-code experience (Zapier or Make.com are simpler)
- Teams with zero developer resources — n8n benefits from someone comfortable with JSON and APIs
- Simple two-step automations (overkill vs. Zapier for basic triggers)
Pricing
Self-hosted community edition: free forever, unlimited workflows
n8n Cloud Starter: $20/month for 2,500 executions/month
n8n Cloud Pro/Enterprise: from $50/month, custom execution limits, SSO, support SLA
Key features
Visual node editor
Drag-and-drop nodes for 400+ apps and services. Connect triggers to actions to conditions to AI calls in a visual canvas.
AI agent nodes
Built-in nodes for LLM calls (OpenAI, Anthropic, etc.), memory (vector stores, chat history), and tool use — build stateful AI agents visually.
Code node
Write arbitrary JavaScript or Python inside a workflow step — filter data, transform JSON, call external libraries, or implement custom business logic.
Self-hosted option
Run n8n on your own server with full data ownership. No per-execution pricing in self-hosted mode — run unlimited automations at your infrastructure cost.
Sub-workflows
Break complex automations into reusable sub-workflows that other workflows can call — essential for building maintainable agent architectures.
Error handling and retry
Built-in error handling nodes, retry on failure, and execution logs with input/output for every step — makes debugging production automations feasible.
Real-world use cases
AI email triage and response drafting
Trigger on new email → extract intent with GPT-4o → route to the right team → draft a reply with Claude → send for human approval via Slack.
Lead enrichment and CRM update
New form submission → enrich with Clearbit/Apollo → score with AI → create HubSpot deal → assign to rep → send personalized outreach email.
AI-powered content pipeline
Schedule trigger → fetch trending topics → generate blog draft with Claude → post to Notion for review → on approval, publish to CMS and share on LinkedIn.
Customer support agent
Incoming support ticket → retrieve customer history from database → answer with AI using product knowledge base → if confidence low, escalate to human.
Internal data dashboards
Scheduled trigger → query multiple data sources → aggregate with code node → generate natural language summary with AI → post to Slack digest.
How to get started with n8n
Choose: cloud or self-hosted
Start with n8n Cloud (n8n.io/cloud) for zero setup. Choose self-hosted if you need data sovereignty or unlimited executions at lower cost.
Create your first workflow
Add a Manual Trigger node. Add an HTTP Request node pointing to any public API. Connect them and click Execute Workflow.
Connect your apps
Search the node panel for apps you use (Gmail, Slack, Notion, HubSpot). Add credentials in Settings → Credentials and authorize via OAuth or API key.
Add an AI node
Add the OpenAI or Anthropic node. Connect your API key credential. Pass data from previous nodes as context to the LLM prompt.
Set a production trigger
Replace the Manual Trigger with a Webhook, Schedule, or app trigger (e.g., "Gmail: On New Email") to run the workflow automatically.
Pro tips
- →Use the Code node to transform data between steps — it is much faster than adding extra app nodes just to reshape JSON.
- →Pin data in the node panel to freeze test inputs so you can iterate on downstream nodes without retriggering the full workflow.
- →Build sub-workflows for any logic you repeat — this is the difference between a workflow that is maintainable at 50 nodes vs. one that becomes a spaghetti nightmare.
- →Use n8n's AI agent node with a memory buffer for conversational agents — it handles the chat history loop automatically.
- →For production, always add a catch-all error handler node that notifies you in Slack when any execution fails.
Frequently asked questions about n8n
What is n8n and how does it compare to Zapier?
Do I need to know how to code to use n8n?
Can n8n build AI agents?
What is the difference between n8n Cloud and self-hosted n8n?
How does n8n handle secrets and credentials?
Ready to master n8n?
Build AI Agents with n8n
Build powerful AI automation workflows and agents using n8n.
View course →