Documentation Index
Fetch the complete documentation index at: https://mintlify.com/czlonkowski/n8n-skills/llms.txt
Use this file to discover all available pages before exploring further.
Overview
The n8n Workflow Patterns skill teaches five proven architectural patterns drawn from analysis of real-world n8n usage. These five patterns cover over 90% of automation use cases.Webhook Processing
Receive HTTP requests from external systems and process them instantly. The most common pattern (35% of workflows).
HTTP API Integration
Fetch data from REST APIs, transform it, and use it in your workflow. Ideal for data pipelines.
Database Operations
Read, write, sync, and manage database data. For ETL, data sync, and maintenance tasks.
AI Agent Workflow
Build AI agents with tool access, memory, and reasoning capabilities.
Scheduled Tasks
Recurring automation workflows that run automatically on a time-based schedule.
Pattern Selection Guide
Choose based on what triggers the workflow and what it does with data:| Pattern | Use When | Example |
|---|---|---|
| Webhook Processing | An external system pushes data to you | Stripe payment webhook → Update DB → Send receipt |
| HTTP API Integration | You need to pull data from external APIs | Fetch GitHub issues → Transform → Create Jira tickets |
| Database Operations | Syncing, ETL, or scheduled DB maintenance | Read Postgres records → Transform → Write to MySQL |
| AI Agent Workflow | Need AI with tool access and reasoning | Chat with AI that can search docs, query DB, send emails |
| Scheduled Tasks | Recurring reports, monitoring, or maintenance | Daily: Fetch analytics → Generate report → Email team |
Webhook Processing
Use when: Receiving data from external systems (Slack commands, form submissions, payment webhooks, GitHub events) Key characteristic: Instant, event-driven processingNode Structure
Configuration Notes
The webhook node supports two response modes:| Mode | Behavior | Use When |
|---|---|---|
onReceived | Immediate 200 OK, workflow continues in background | Long-running workflows, fire-and-forget |
lastNode | Wait for completion, send custom response | Synchronous processing, form submissions with confirmation |
Example Use Cases
- Form Submissions
- GitHub Webhooks
- Chat Integrations
Template References
From the n8n template library (1,085 webhook templates):- Simple Form to Slack:
Webhook → Set → Slack - Payment Processing:
Webhook → Verify Signature → Update Database → Send Receipt → Notify Admin - Chat Bot:
Webhook → Parse Command → AI Agent → Format Response → Webhook Response
HTTP API Integration
Use when: Fetching data from external APIs, synchronizing with third-party services, or building data pipelines Key characteristic: External data fetching with error handlingNode Structure
Configuration Notes
For large datasets, implement pagination to avoid memory issues:Example Use Cases
- Data Fetching
- API to API
- Monitoring
Fetch GitHub issues hourly and store in Postgres:
Template References
From the n8n template library (892 API integration templates):- GitHub to Notion:
Schedule → HTTP Request (GitHub) → Transform → HTTP Request (Notion) - Weather to Slack:
Schedule → HTTP Request (Weather API) → Set (format) → Slack - CRM Sync:
Schedule → HTTP Request (CRM A) → Transform → HTTP Request (CRM B)
Database Operations
Use when: Syncing between databases, running database queries on schedule, ETL workflows Key characteristic: Data persistence and synchronizationNode Structure
Configuration Notes
Supported databases: Postgres, MySQL, MongoDB, Microsoft SQL, SQLite, Redis, and more via community nodes.Example Use Cases
- Data Sync
- ETL Pipeline
- Cleanup
Sync Postgres to MySQL every 15 minutes:
Template References
From the n8n template library (456 database templates):- Data Sync:
Schedule → Postgres (SELECT new records) → Transform → MySQL (INSERT) - ETL Pipeline:
Schedule → [Multiple DB reads] → Merge → Transform → Warehouse (INSERT) - Backup:
Schedule → Postgres (SELECT all) → JSON → Google Drive (upload)
AI Agent Workflow
Use when: Building conversational AI, creating agents with tool access, or automating multi-step reasoning tasks Key characteristic: AI-powered decision making with tool useNode Structure
Configuration Notes
The 8 AI connection types:| Connection Type | Purpose |
|---|---|
ai_languageModel | The LLM (OpenAI, Anthropic, Google, Ollama) |
ai_tool | Functions the agent can call |
ai_memory | Conversation context |
ai_outputParser | Parse structured outputs |
ai_embedding | Vector embeddings |
ai_vectorStore | Vector database |
ai_document | Document loaders |
ai_textSplitter | Text chunking |
Example Use Cases
- Customer Support Bot
- SQL Analyst
- Document Q&A
Template References
From the n8n template library (234 AI templates):- Simple Chatbot:
Webhook → AI Agent (GPT-4 + Memory) → Webhook Response - Document Q&A:
Setup: Files → Embed → Vector Store / Query: Webhook → AI Agent → Response - SQL Analyst:
Webhook → AI Agent (GPT-4 + Postgres Tool) → Format → Response
Scheduled Tasks
Use when: Recurring reports or summaries, periodic data fetching, maintenance tasks Key characteristic: Time-based automated executionNode Structure
Configuration Notes
The Schedule node supports three modes:| Mode | Best For | Example |
|---|---|---|
| Interval | Simple recurring tasks | Every 15 minutes |
| Days & Hours | Specific days and times | Weekdays at 9 AM |
| Cron | Complex schedules | 0 9,17 * * 1-5 |
Example Use Cases
- Daily Reports
- Monitoring
- Backup
Sales report at 9 AM every day:
Template References
From the n8n template library:- Template #2947 (Weather to Slack):
Schedule (daily 8 AM) → HTTP Request (weather API) → Set (format) → Slack - Daily backup:
Schedule (nightly 2 AM) → Postgres (export) → Google Drive (upload) → Email (confirmation) - Monitoring:
Schedule (every 5 min) → HTTP Request (health check) → IF (down) → PagerDuty alert
Workflow Creation Checklist
Apply this checklist to every workflow regardless of pattern:Planning Phase
- Identify the pattern (webhook, API, database, AI, scheduled)
- List required nodes using
search_nodes - Understand the data flow (input → transform → output)
- Plan the error handling strategy
Implementation Phase
- Create the workflow with the appropriate trigger
- Add data source nodes
- Configure authentication and credentials
- Add transformation nodes (Set, Code, IF)
- Add output and action nodes
- Configure error handling
Validation Phase
- Validate each node configuration with
validate_node - Validate the complete workflow with
validate_workflow - Test with sample data
- Handle edge cases (empty data, errors)
Pattern Statistics
Based on analysis of real n8n workflow usage: Most common triggers:- Webhook — 35%
- Schedule (periodic tasks) — 28%
- Manual (testing/admin) — 22%
- Service triggers (Slack, email, etc.) — 15%
- Set (field mapping) — 68%
- Code (custom logic) — 42%
- IF (conditional routing) — 38%
- Switch (multi-condition) — 18%
- Simple (3–5 nodes): 42%
- Medium (6–10 nodes): 38%
- Complex (11+ nodes): 20%
Common Data Flow Shapes
Getting Help
- Issues: github.com/czlonkowski/n8n-skills/issues
- Discussions: github.com/czlonkowski/n8n-skills/discussions