Skip to content

About

Documenting my journey learning n8n workflow automation — from core concepts and node types to three AI agent projects (news summarizer, GitHub repo assistant, and a personal learning coach), following the "Building AI Agents" course.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

13 Commits

Folders and files

Repository files navigation

n8n — Building AI Agents

A structured, hands-on walkthrough of n8n's Building AI Agents course — from what a workflow even is, through every workflow-type pattern, to three fully documented, multi-agent capstone projects with their own prompts, sanitized workflows, and architecture diagrams.

Table of Contents

About This Repo

Every concept doc here was written after actually building the thing it explains, not before — so the "What Broke / Lessons" sections you'll find throughout are real, not hypothetical. The repo follows one convention end to end: every hands-on example ships as README.md + workflow.json + screenshot.png, and every capstone project ships as README.md + the workflow JSON(s) + SYSTEM_PROMPTS.md + an architecture diagram — so nothing here is documentation of documentation; it's all one click away from the actual, importable n8n workflow.

Course Roadmap

Course Section Covered In
Introduction to workflows, automation & n8n 01-fundamentals/
Basics of n8n (interface, nodes, integrations, first workflow) 01-fundamentals/
Installation (hosted vs. self-hosted, Docker) 02-installation/
Data handling (flow, expressions, control nodes) 03-data-handling/
Workflow types (linear, parallel, conditional, looping, combined) 04-workflow-types/
Capstone projects projects/

1 · Fundamentals

Doc What It Covers
What is n8n and Automation What a workflow actually is, and where n8n sits among automation tools
Interface Overview The main screen areas of the n8n editor
Node Types The main categories of nodes and which one to reach for
Integrations What an "integration" means in n8n, and handling apps that aren't natively supported

Hands-on: Notes and Q/A Generator

Notes and Q/A Generator workflow canvas

A topic submitted via form branches into two parallel GPT-4o chains — study notes and 10 interview-style MCQs — which recombine at a Merge node before being written into a Google Doc. Full write-up →

2 · Installation

Doc What It Covers
Hosted vs. Self-Hosted Managed cloud vs. your own infrastructure
Free Trial vs. Platform Hosting What n8n Cloud's free trial actually is vs. paid hosting
Docker Self-Hosted Setup The actual steps to run n8n locally via Docker

3 · Data Handling

Doc What It Covers
How Data Flows in n8n What an "item" is and how data moves between nodes
Expressions and Variables Expression syntax and referencing data from earlier nodes
Control Nodes: IF, Switch, Split, Merge The four nodes that drive any non-linear workflow

Hands-on: Topic-Bullet-Points to Mail

Trigger-to-end data flow workflow canvas

The simplest possible linear workflow, used to trace one piece of data from form submission through an LLM chain to an emailed result — and why the Gmail node has to reach back to $('On form submission') instead of just using $json. Full write-up →

4 · Workflow Types

Doc What It Covers
Linear Workflows The simplest shape a workflow can take, and how it can still lose data
Parallel Workflows Running independent work side by side and merging it back
Conditional Workflows If vs. Switch, and how conditions get evaluated
Looping Workflows Processing many items at once with Loop Over Items

Hands-on: Combined Workflows — three examples that mix more than one pattern at once. Full breakdown →

Send Coupon Premium Customers Summarize Research Paper Student Feedback & Doubt Clearance
Send Coupon Premium Customers workflow canvas Summarize Research Paper workflow canvas Student Feedback and Doubt Clearance workflow canvas
Split Out + IF branching — coupons only for qualifying customers Two parallel LLM chains (OpenAI + Anthropic) + Merge Three-way Filter classification with parallel fan-out on the "both" path

5 · Capstone Projects

The three course capstones — each gets its own README, its own extracted system prompt(s), and its own sanitized, push-ready workflow JSON. None of these have a plain canvas screenshot the way the examples above do; instead each links out to its raw n8n canvas export as an .svg (open it directly rather than viewing inline — see each project's README for why).

# Project What It Does Docs
01 AI News Summarizer A single chat agent (NewsPilot) that fetches, ranks, and summarizes news, answers follow-ups from memory, and emails a formatted digest on request System Prompt · Diagram ↗
02 AI Code Buddy A 3-agent system (Orchestrator, GitHub Agent, Storage & Delivery Agent) that investigates a GitHub repo and turns it into a README, Google Doc, or email System Prompts · Workflow Diagram ↗ · Sub-workflow Diagram ↗
03 AI Coach A form-driven roadmap generator plus an ongoing coaching agent that schedules study time, writes notes, and tests you via Gmail, Calendar, and Docs System Prompts · Chat Agent Diagram ↗ · Roadmap Gen Diagram ↗

Repository Structure

n8n-building-ai-agents/
├── README.md                                 ← this file
│
├── 01-fundamentals/
│   ├── 01-what-is-n8n-and-automation.md
│   ├── 02-interface-overview.md
│   ├── 03-node-types.md
│   ├── 04-integrations.md
│   └── 05-first-workflow/                    ← Notes and Q/A Generator
│       ├── README.md · workflow.json · screenshot.png
│
├── 02-installation/
│   ├── hosted-vs-self-hosted.md
│   ├── trial-vs-platform-hosting.md
│   └── docker-self-hosted-setup.md
│
├── 03-data-handling/
│   ├── data-flow-basics.md
│   ├── expressions-and-variables.md
│   ├── control-nodes-if-switch-split-merge.md
│   └── hands-on-trigger-to-end/              ← Topic-Bullet-Points to Mail
│       ├── README.md · workflow.json · screenshot.png
│
├── 04-workflow-types/
│   ├── linear-workflows.md
│   ├── parallel-workflows.md
│   ├── conditional-workflows.md
│   ├── looping-workflows.md
│   └── combined-workflow/                    ← 3 combined-pattern examples
│       ├── README.md
│       ├── send-coupon-premium-customers/
│       ├── summarize-research-paper/
│       └── student-feedback-and-doubt-clearance/
│
└── projects/                                 ← the 3 capstones
    ├── 01-ai-news-summarizer/
    ├── 02-ai-code-buddy/
    └── 03-ai-coach/

Tools & Services Used

  • Models: GPT-4o, GPT-4o-mini, GPT-5-mini (via OpenAI / AI Gateway), Claude Sonnet 5 (via Anthropic)
  • Google Workspace: Gmail, Google Calendar, Google Docs, Google Drive
  • APIs: GitHub REST API, NewsAPI.org
  • Core n8n concepts used throughout: Form Trigger, Chat Trigger, LangChain Agent & LLM Chain nodes, Buffer Memory, IF / Switch / Filter, Split Out, Merge, Loop Over Items, Code (JavaScript), HTTP Request, Execute Sub-Workflow

What This Repo Demonstrates

  • Every core n8n workflow-type pattern (linear, parallel, conditional, looping, combined), each built and documented as its own example rather than just read about.
  • Prompt engineering as the actual mechanism behind agent behavior — every capstone's SYSTEM_PROMPTS.md is the real, verbatim prompt driving it, not a paraphrase.
  • Multi-agent orchestration (AI Code Buddy) vs. single-agent tool-calling (AI News Summarizer, AI Coach) as two different valid architectures for two different problem shapes.
  • Practical workflow debugging habits — every hands-on example's "What Broke / Lessons" section documents a real issue hit while building it, not a hypothetical one.

About

Documenting my journey learning n8n workflow automation — from core concepts and node types to three AI agent projects (news summarizer, GitHub repo assistant, and a personal learning coach), following the "Building AI Agents" course.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages