Modules
Each module builds on the previous one and ends in a working workflow checked by a test harness.
M1n8n architecture and the item model
5 h · 2 lesson + 3 lab
- Objectives
- Explain how n8n executes (items, runs, branches, order); choose the right trigger; write expressions with confidence; read an execution.
- Topics
- Items and the JSON data structure; expressions with
$json, $('Node'), $input; trigger types; execution history; workflow settings; self-hosted vs Cloud.
- Lab
- Install n8n with Docker → schedule a fetch of public weather data (Open-Meteo) for 5 synthetic cities → compute daily min/max with expressions. Then an "item model puzzle": predict the output item counts of 6 small workflows, run them and compare.
- Pass criteria
- The harness sees 5 correct output items; the puzzle has ≥ 5/6 correct.
- n8n docs
- Data · Expressions · Executions · Docker
Workflow architectureData transformationDebugging
M2Webhooks, REST APIs, authentication and data transformation
6 h · 2 lesson + 4 lab
- Objectives
- Build inbound and outbound integrations with correct auth; paginate; reshape nested data reliably.
- Topics
- Webhook node (test vs production URLs, response modes, Respond to Webhook) and inbound header auth; HTTP Request (credentials, API key / bearer / OAuth2, pagination, timeouts); Edit Fields, Split Out, Aggregate, Merge, Filter, Remove Duplicates; Code node for what nodes can't express.
- Lab
- A header-auth protected synthetic order-intake webhook that validates and normalises messy orders to a canonical schema and replies 202 or 400. Enrichment from a public REST API with pagination, and a paginated GitHub REST summary using a stored credential.
- Pass criteria
- The harness posts 12 synthetic payloads and expects exact status codes and output; ≥ 10/12 to pass. No credentials hard-coded.
- n8n docs
- Webhook · HTTP Request · Credentials · Data mapping · Code
API integrationsData transformation
M3Workflow design patterns and modularity
4 h · 1.5 lesson + 2.5 lab
- Objectives
- Split systems into reusable sub-workflows with explicit contracts; keep workflows readable and configurable.
- Topics
- Execute Workflow and the "When Executed by Another Workflow" trigger with input schemas; the orchestrator / worker pattern; a single settings node; Loop Over Items, batching and Wait; naming, notes, versioning; when not to split.
- Lab
- Refactor the M2 intake into an orchestrator plus
validate-order and enrich-order sub-workflows with documented contracts. Batch 500 synthetic orders with rate-limit-friendly waits.
- Pass criteria
- The M2 harness still passes; sub-workflows run standalone; contracts and naming meet a 3-point rubric.
- n8n docs
- Sub-workflows · Looping
Workflow architecture
M4Error handling, retries, idempotency and debugging
6 h · 2 lesson + 4 lab
- Objectives
- Classify failures, apply the right recovery, prevent duplicate side effects, debug systematically.
- Topics
- Transient vs permanent errors; Retry On Fail, error outputs, Stop and Error; error workflows with the Error Trigger; exponential backoff and
Retry-After; fallback providers; idempotency keys and deduplication; dead-letter handling; execution history, data pinning and "debug in editor".
- Lab
- Force 429 / 503 / timeouts with httpbin and implement capped backoff and fallback. Make the intake idempotent (5 replays → 1 record). Build a global error workflow with structured alerts. Debug clinic: fix 4 pre-broken workflows and file a bug report for each.
- Pass criteria
- Replay yields exactly 1 record; 503s recover within the cap; a 400 is not retried; error alerts carry all 4 fields; ≥ 3/4 debug fixes with the correct root cause.
- n8n docs
- Error handling · Error Trigger · Debug executions · Data pinning
- Case study
- Retry LLM calls with OpenAI and Anthropic and log costs in Data Tables
Error handlingDebugging
M5AI agents and multi-model orchestration
6 h · 2 lesson + 4 lab
- Objectives
- Build agents that use tools reliably, constrain their outputs, and orchestrate several models with bounded control flow.
- Topics
- AI Agent node, chat models, tools (HTTP and sub-workflow tools), memory; structured output parsing and validation; chains vs agents; draft → critique → judge; max rounds and termination; human-in-the-loop.
- Lab
- A support-triage agent with two tools (order lookup via the M3 sub-workflow, ticket creation in a Data Table). Its output must be schema-valid or routed to a human. Plus a bounded debate pipeline that logs every round's verdict.
- Pass criteria
- On 15 synthetic tickets: ≥ 12 routed correctly; 100% schema-valid or explicitly routed to a human; the loop never exceeds its limit.
- n8n docs
- Advanced AI
- Case study
- Debate and validate chat answers with GPT-5, Claude Sonnet and Claude Opus
Workflow architectureAPI integrations
M6RAG with vector stores
5 h · 2 lesson + 3 lab
- Objectives
- Build a grounded Q&A workflow and justify its chunking, embedding and retrieval choices.
- Topics
- Load → split → embed → store; chunk size and overlap; metadata and source tracking; in-memory vs PGVector / Qdrant; top-K; grounding prompts, citations, abstaining on out-of-scope questions.
- Lab
- A synthetic 30-article help centre → an ingestion workflow → a Q&A workflow that cites its source and abstains when retrieval is weak. Optional: Postgres + pgvector via Docker.
- Pass criteria
- ≥ 16/20 questions answered with the correct source; all 4 out-of-scope questions abstained.
- n8n docs
- RAG in n8n
Data transformationAPI integrations
M7Testing and evaluation: golden sets and LLM-as-judge
5 h · 2 lesson + 3 lab
- Objectives
- Turn "seems fine" into measured quality and catch regressions automatically.
- Topics
- Golden dataset design; deterministic vs model-graded checks; judge rubrics (groundedness, correctness, abstention) and judge bias; n8n Evaluations; regression thresholds; testing non-AI workflows with pinned fixtures; latency and throughput checks.
- Lab
- A daily evaluation of the M6 bot: run the golden set, judge, aggregate pass / hit / abstention rates, store each run, compare with the previous run, alert on degradation. Then plant a regression and show the alert fires.
- Pass criteria
- The planted regression is detected; the judge prompt has an explicit rubric; metrics are stored per run.
- n8n docs
- Evaluations · Data tables
- Case study
- Monitor RAG answer quality daily with OpenAI, data tables and Telegram
DebuggingError handling
M8Observability, cost tracking and security
5 h · 2 lesson + 3 lab
- Objectives
- Know what each workflow did, what it cost, and who can touch it.
- Topics
- One structured log row per run (status, duration, provider, tokens, cost); cost and failure summaries; alert thresholds; metrics and log streaming (overview); the credential store and encryption key; least-privilege tokens; webhook auth; PII minimisation before LLM calls; execution data retention; prompt-injection basics for tool-using agents.
- Lab
- A shared
log-run sub-workflow wired into every course workflow, plus a weekly cost and failure summary. A security review of a deliberately insecure workflow: find the issues, fix them, document them.
- Pass criteria
- Summary totals match the harness dataset; ≥ 4/5 planted security issues found and fixed.
- n8n docs
- Securing n8n · Monitoring · Log streaming
Error handlingDebuggingAPI integrations
M9Production deployment and operations
5 h · 2 lesson + 3 lab
- Objectives
- Run n8n on infrastructure the learner controls, safely upgradeable and recoverable.
- Topics
- Docker Compose with Postgres; key environment variables (encryption key, webhook URL, timezone, pruning); reverse proxy and TLS; queue mode with Redis and workers; backup and restore of the database plus the encryption key; upgrade routine; source control and environments (overview); a production readiness checklist.
- Lab
- Deploy n8n with Postgres on a local VM or low-cost VPS, migrate the course workflows, back up, destroy, restore and prove workflows and credentials still work. Optional: queue mode with one worker under load.
- Pass criteria
- Restore drill succeeds; checklist complete; no secrets committed.
- n8n docs
- Hosting · Environment variables · Queue mode · Source control
Workflow architectureError handling
M10Capstone project and defence
11 h · 10 build + 1 defence
- Brief
- A production-ready AI automation on public or synthetic data. Suggested briefs: inbound lead qualification with human approval; a policy Q&A bot with daily evaluation; a content pipeline with a judge check and idempotent publishing. Learners may also propose their own brief.
- Must include
- An authenticated external API; a webhook or schedule; a transformation to a defined schema; an error workflow, retries and one idempotent side effect; AI with structured output; an evaluation or validation step; run logging with cost; deployment on the M9 stack; a README with an architecture diagram.
- Defence
- A 10-minute demo and 10 minutes of questions. The instructor triggers a live failure (a forced 503 or a duplicate webhook) that the system must handle.
All core areas