Skip to content

n8n Tutorial

n8n tutorial on workflow automation: nodes and triggers, data and expressions, API requests, logic and loops, error handling, AI nodes, hosting and projects.

Getting Started

  1. 1 What Is n8n? Workflow Automation Explained Learn what n8n is, how workflow automation works, who this tutorial is for, what you need to follow along, and how the course is organized from start to finish.
  2. 2 Set Up n8n and Build Your First Workflow Choose between n8n Cloud and Docker self-hosting, find your way around the editor, build a first manual workflow, and learn the difference between save and publish.

Triggers and Nodes

  1. 3 Nodes and Connections in n8n Understand node types, connections, per-item execution, useful node settings like Execute Once and Always Output Data, sticky notes, and pinned test data in n8n.
  2. 4 Manual, Schedule and App Triggers Learn how n8n workflows start: manual runs, schedules and cron expressions, time zones, app event triggers, polling, and how publishing makes triggers live.
  3. 5 Webhooks and Forms in n8n Receive data with the n8n Webhook and Form triggers: test and production URLs, response modes, authentication, signature checks and safe handling of incoming data.

Data and Expressions

  1. 6 Items and JSON: How Data Flows in n8n Learn the data structure n8n passes between nodes: items with a json key, lists and nested objects, binary data, and how to reshape one item into many and back.
  2. 7 Expressions in n8n Write n8n expressions with $json, references to earlier nodes, built-in variables like $now, text and array methods, Luxon dates and safe fallbacks for missing data.
  3. 8 Transforming Data Without Code Reshape data in n8n with Edit Fields, Sort, Limit, Split Out, Aggregate, Summarize and Remove Duplicates, and learn how to choose the right node for each job.
  4. 9 The Code Node: JavaScript and Python Use the n8n Code node safely: choose a run mode, return correctly shaped items, keep item links, understand Python limits and know what the sandbox does not allow.

APIs and Integrations

  1. 10 The HTTP Request Node: Call Any API Call APIs with the n8n HTTP Request node: methods, URLs, query parameters, headers, JSON bodies, response status codes, timeouts and safe handling of replies.
  2. 11 Credentials and Authentication Store secrets safely in n8n credentials, compare API keys, header auth and OAuth, limit permissions, share carefully, rotate keys and protect the encryption key.
  3. 12 Pagination and Rate Limits Fetch every page of an API with n8n pagination modes, pace requests with batching and waits, respect rate limits and design safe backoff for temporary failures.

Flow Control

  1. 13 Branching with If, Switch and Filter Route items in n8n with If, Switch and Filter, combine conditions, handle missing values and unmatched cases, and keep branching logic clear and testable.
  2. 14 Merging Data and Looping Combine branches with the n8n Merge node and its modes, and process items in batches with Loop Over Items, while avoiding infinite loops and unmatched records.
  3. 15 Sub-workflows and Waiting Reuse logic with n8n sub-workflows, design clear inputs and outputs, pause executions with the Wait node, and resume them by time, webhook call or approval.

Errors and Debugging

  1. 16 Error Handling in n8n Make n8n workflows resilient with Retry On Fail, the On Error setting and error outputs, error workflows with the Error Trigger and the Stop And Error node.
  2. 17 Debugging and Reliable Workflows Find bugs with n8n execution history, debug in editor and pinned data, make workflows idempotent against duplicates, and test edge cases before you publish.

AI Workflows and Agents

  1. 18 The AI Agent Node Understand AI workflows in n8n: when to use a single model call or an AI Agent, how root and sub-nodes connect, system messages, output formats and iteration limits.
  2. 19 AI Tools, Memory and RAG Give n8n agents narrow tools, let the model fill parameters with $fromAI, add conversation memory, build retrieval with vector stores and connect tools over MCP.
  3. 20 AI Safety, Approvals and Evaluation Protect n8n AI workflows with human approval for tool calls, guardrail checks, defenses against prompt injection and evaluations that measure quality over time.

Hosting and Security

  1. 21 Self-hosting and Scaling n8n Plan a self-hosted n8n deployment with Docker Compose, a database, HTTPS and webhook URLs, then understand queue mode, workers, Redis and capacity planning.
  2. 22 Security, Backups and Maintenance Secure and maintain n8n: user access, node restrictions, the security audit, CLI exports and backups, upgrades, execution data privacy and the license basics.

Projects and Reference

  1. 23 Project: Lead Intake Pipeline Build a lead intake workflow in n8n from a form: validate and clean input, prevent duplicates, route by score, notify the team and handle every failure safely.
  2. 24 Project: Daily Digest with AI Summary Build a scheduled n8n digest that fetches items from an API, removes repeats, ranks them, adds a checked AI summary and sends a message with a fallback path.
  3. 25 n8n Glossary and Cheat Sheet Keep this n8n cheat sheet nearby: key terms, expression patterns, node choices, a pre-publish checklist, CLI commands and a review of the ideas in this course.