How to Use n8n: Complete Beginner to Advanced Guide
Why n8n Changed How I Think About Automation
Before n8n, my automation toolkit was Zapier — solid, reliable, and increasingly expensive as my workflows grew more complex. When I hit a wall that required running custom code inside a workflow, Zapier's Code step worked but felt bolted on. Then I tried n8n. Three weeks later, I had rebuilt all my Zapier workflows, added AI nodes that Zapier couldn't match, and cut my monthly automation bill by 60%. This guide is the tutorial I wish I'd had when I started. I cover installation, your first workflow, the nodes you'll use 80% of the time, and the AI automation patterns that are genuinely transformative. By the end you will have a working automation and the mental model to build dozens more. See our complete n8n automation guide at /guides/how-to-use-n8n for even more detail.
Installing n8n — Cloud vs Self-Hosted
Option 1 — n8n Cloud ($20/month starting): Go to n8n.io, sign up, and you have a working n8n instance in 60 seconds. No servers, no configuration, automatic updates. This is where I recommend starting — get to building workflows immediately rather than wrestling with infrastructure. Option 2 — Self-Hosted (free): If you prefer not to pay monthly or need to keep data on your own servers, you can self-host n8n on any VPS (DigitalOcean, Hetzner, or Linode work well — you need at least a $6/month instance). Installation via Docker: `docker run -it --rm --name n8n -p 5678:5678 n8nio/n8n`. For production, add a domain name and SSL certificate. The n8n documentation covers this in detail. Self-hosted is free but requires about 2–3 hours of initial setup and ongoing maintenance. For most people, the $20/month cloud cost is worth skipping that entirely.
Building Your First Workflow — A Practical Example
Let's build something immediately useful: a workflow that monitors a Gmail label and sends a Slack notification whenever you receive an email in that label. This teaches the core n8n concepts — trigger nodes, action nodes, and data flow — in a real context. Step 1: Open n8n and click 'New Workflow.' Step 2: Add a Gmail Trigger node. Configure it with your Gmail credentials (OAuth — n8n walks you through this) and set it to watch a specific label. Step 3: Add a Slack node. Configure with your Slack credentials and set the action to 'Send Message.' In the message field, use n8n's data reference syntax to include the email subject: `{{ $json.subject }}` and sender: `{{ $json.from }}`. Step 4: Connect the Gmail trigger to the Slack node (drag a line between them). Step 5: Click 'Test Workflow.' Send a test email to the Gmail label. Your Slack message should arrive within seconds. Congratulations — you have built your first n8n workflow. This is the basic pattern: trigger → action. Everything else in n8n is a variation on this.
The 10 Nodes You Will Use Most
HTTP Request: Makes API calls to any service. The single most versatile node in n8n — if a service has an API, this node can call it. Schedule Trigger: Runs workflows on a cron schedule (daily, hourly, weekly). Code: Run custom JavaScript. Used for data transformation, calculations, and logic that no pre-built node handles. IF: Conditional branching based on data values. Switch: Route data to different paths based on values. Set: Define or modify data fields. Merge: Combine data from multiple branches. Loop Over Items: Iterate over arrays of data. Google Sheets: Read from and write to spreadsheets — a universal data layer for workflows. OpenAI: Access GPT-4o, text embedding, and other OpenAI capabilities directly in your workflow. These ten nodes handle 85% of real automation needs. Learn them deeply before branching into the 400+ other available nodes.
AI-Powered Workflows — The Real Power of n8n
Where n8n separates from traditional automation tools is AI integration. The OpenAI node, combined with n8n's AI Agent node, lets you build workflows that reason about data rather than just route it. A few patterns that are genuinely transformative: Content Classification: Incoming data (support tickets, emails, social mentions) gets classified by an OpenAI node and routed to appropriate teams or queues. Summarization Pipelines: Long documents or email threads get summarized automatically and the summary gets stored in Notion or emailed to relevant people. Sentiment Analysis: Customer feedback gets analyzed for sentiment and critical negative feedback triggers an immediate alert. AI Customer Responses: Support inquiries get an AI-drafted response for human review before sending — not fully automated, but 70% of the writing done automatically. Data Extraction: Unstructured text (invoices, forms, emails) gets processed by OpenAI to extract specific fields and populate structured databases. For each of these patterns, the workflow is the same conceptually: receive data → process with OpenAI → take action based on result. The variation is in the trigger (what brings data in), the prompt (how you instruct the AI), and the action (what happens with the output).
Common Mistakes Beginners Make with n8n
Mistake 1 — Building complex workflows before understanding simple ones: Start with 3-node workflows. Master them before adding complexity. Mistake 2 — Not handling errors: Every production workflow needs error handling. Use n8n's built-in error trigger node to notify yourself when something fails — otherwise automations fail silently and you never know. Mistake 3 — Not testing with real data: Test with data that mirrors what your workflow will encounter in production, including edge cases. Mistake 4 — Ignoring rate limits: If your workflow calls external APIs, add Wait nodes between calls to stay within rate limits. Mistake 5 — Not documenting workflows: Add notes inside your workflow explaining what each section does. Your future self will thank you. The most costly mistake is trying to automate too much too soon. Start with one workflow that solves one specific problem, get it working reliably, then build the next one. Reliability over complexity, always.
Frequently Asked Questions
Is n8n free?
n8n is open source and free to self-host on your own server. The n8n Cloud hosted version starts at $20/month and includes a managed infrastructure, automatic updates, and support. For most users getting started, n8n Cloud is worth the $20/month to avoid the infrastructure setup. Once you have significant automation volume or specific privacy requirements, self-hosting becomes more attractive.
Is n8n better than Zapier?
n8n is more powerful and significantly cheaper for complex workflows. Zapier is easier to start with and has more pre-built integrations. The key advantages of n8n: more control over data and logic, Code nodes for custom JavaScript, better AI integration, and lower cost at scale. Zapier advantages: faster to set up simple workflows, larger pre-built integration library, more polished UI. For technical users building sophisticated automations, n8n wins. For non-technical users wanting simple integrations quickly, Zapier is easier.
Can n8n connect to any API?
Yes — via the HTTP Request node, n8n can connect to any service that has an API, regardless of whether there is a pre-built node for it. Pre-built nodes (there are 400+) are more convenient because they handle authentication and data formatting automatically. But for any service without a pre-built node, the HTTP Request node with your API key handles the connection.
How long does it take to learn n8n?
You can build your first useful workflow in under an hour. Getting comfortable with the core nodes (Schedule Trigger, HTTP Request, IF, Code, Set) takes about a week of regular use. Building sophisticated multi-workflow systems takes one to two months of active learning and building. The n8n documentation is excellent and the community forum is active — both accelerate learning significantly.
What can I automate with n8n?
Almost anything that involves moving data between applications or making decisions based on data. Common use cases: social media posting, email triage and response, CRM data sync, report generation, invoice processing, lead qualification, customer notification systems, content publishing pipelines, data backup, API monitoring, and AI-powered content creation. If a task involves repetitive steps that follow consistent rules, n8n can likely automate it.