Hüseyin Höbek
n8n Curriculum · Intermediate → Advanced

Production-Ready AI Automation with n8n.

Most n8n courses stop when the workflow runs once. This one starts there. Learners build AI workflows that survive real traffic: they authenticate properly, transform messy data, fail safely, retry without duplicate side effects, measure their own answer quality, report their cost, and run on infrastructure the learner controls.

Prepared for n8n's curriculum review. This is not yet an n8n Approved Curriculum.
58 htotal learning time
10modules incl. capstone
10 wk≈ 6 h per week
≈ 62%hands-on lab time

Who it is for

Builders who already know the basics and need their workflows to hold up in production.

Developer moving into automation

Knows JavaScript or Python and HTTP; wants to ship AI features without building orchestration from scratch.

No-code builder past the basics

Has workflows that work in demos; needs error handling, testing and deployment to run them seriously.

Technical consultant / freelancer

Delivers automations to clients and needs reliability, cost visibility and security they can explain.

Entry requirements

  • 3+ n8n workflows built, or n8n Academy Essentials (n8n101) completed (Quickstart qs101 recommended).
  • Reads JSON and basic JavaScript (objects, arrays, map / filter).
  • Understands HTTP methods, status codes and headers.
  • Can run Docker locally, or has an n8n Cloud trial.
  • Has an OpenAI or Anthropic API key (≈ USD 10 for the whole course), or runs a local model with Ollama.

A 15-minute ungraded entry check (10 questions plus one broken expression to fix) points learners who aren't ready to n8n101 first.

Learning outcomes

On completion, learners can:

Design

Multi-workflow n8n systems with clear trigger, processing and output boundaries, reused through sub-workflows.

Integrate

REST APIs and webhooks with API key, bearer, OAuth2 and webhook header auth; pagination and rate limits.

Transform

Nested and inconsistent data with expressions, core data nodes and the Code node, grounded in the item model.

Handle failure

Classify errors, retry with backoff, route to error workflows, and make side effects idempotent.

Debug

With execution history, pinned data and "debug in editor", and write reproducible bug reports.

Build AI

Agents with tools, memory and structured output; bounded multi-model orchestration; RAG with vector stores.

Evaluate

Golden datasets and LLM-as-judge scoring that catch quality regressions automatically.

Operate

Run logs, cost tracking, credential hygiene and self-hosted deployment with backups and upgrades.

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

Teaching and assessment

Build first, check objectively, defend at the end.

Method

Every module runs concept (≈25%) → guided build (≈35%) → independent lab (≈40%). Online: weekly async lessons plus a 90-minute live lab per week, or fully self-paced with the same labs.

Test harnesses

Every lab ships a starter workflow and a checker that returns PASS / FAIL. Failures are staged on purpose with public test endpoints and malformed synthetic payloads.

Completion

All 9 labs passed (one revision each allowed), and the capstone scores ≥ 70/100 with no zero in error handling or security. Distinction at ≥ 90. The completion certificate is not an n8n certification.

Capstone rubric (100 points)

DimensionPointsFull marks when…
Architecture & modularity15Clear boundaries, sub-workflows with contracts, readable naming and notes
Integrations & data transformation15Correct auth, pagination and limits handled, output matches the declared schema
Error handling & idempotency20Transient vs permanent errors handled differently; live failure handled; no duplicate side effects
AI quality & evaluation15Structured output validated; judge or evaluation step with an explicit rubric and stored results
Observability & cost10One log row per run, cost estimate, alert path
Security & privacy10No hard-coded secrets, webhook protected, PII minimised
Deployment & documentation10Runs on the learner's stack; README, diagram, runbook
Defence5Explains trade-offs and answers questions

Coverage of n8n's core areas

Where each core concept is taught, practised and assessed.

Core areaPrimaryReinforced in
Workflow architectureM1, M3M5, M9, M10
API integrations & authenticationM2M4, M5, M8, M10
Data transformationM2M1, M6, M10
Error handlingM4M8, M9, M10
DebuggingM4 (debug clinic)M1, M7, M10

Maintenance policy

  • Each cohort pins its n8n version; all starter workflows and harnesses are re-run on it before the cohort starts.
  • Quarterly review of n8n release notes; breaking changes fixed within 14 days and logged in a public changelog.
  • Annual resubmission to n8n's curriculum review.
  • End-of-module learner feedback; any lab with more than 30% revisions is reworked before the next cohort.
  • Public, synthetic or learner-created data only. No employer, client or customer systems, data or code are used.

Instructor

Hüseyin Höbek, AI Engineer, Ankara.

An AI engineer with production LLM work across RAG, agentic workflows, LLM evaluation and LLMOps. He runs multiple services end to end on infrastructure he builds and operates himself (AWS, PostgreSQL + pgvector, CI/CD, monitoring). He uses n8n in production for orchestration, evaluation pipelines and alerting, and runs self-hosted n8n for his own AI products.

Published n8n templates