cli-tool/components/skills/workflow-automation/n8n-workflow-patterns/SKILL.md
Proven architectural patterns for building n8n workflows.
npx skillsauth add davila7/claude-code-templates n8n-workflow-patternsInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Proven architectural patterns for building n8n workflows.
Based on analysis of real workflow usage:
Webhook Processing (Most Common)
[HTTP API Integration]
Database Operations
AI Agent Workflow
Scheduled Tasks
Webhook Processing - Use when:
HTTP API Integration - Use when:
Database Operations - Use when:
AI Agent Workflow - Use when:
Scheduled Tasks - Use when:
All patterns share these building blocks:
When building ANY workflow, follow this checklist:
activateWorkflow operationTrigger → Transform → Action → End
Use when: Simple workflows with single path
Trigger → IF → [True Path]
└→ [False Path]
Use when: Different actions based on conditions
Trigger → [Branch 1] → Merge
└→ [Branch 2] ↗
Use when: Independent operations that can run simultaneously
Trigger → Split in Batches → Process → Loop (until done)
Use when: Processing large datasets in chunks
Main Flow → [Success Path]
└→ [Error Trigger → Error Handler]
Use when: Need separate error handling workflow
Problem: Can't access webhook payload data
Solution: Data is nested under $json.body
❌ {{$json.email}}
✅ {{$json.body.email}}
See: n8n Expression Syntax skill
Problem: Node processes all input items, but I only want one
Solution: Use "Execute Once" mode or process first item only
{{$json[0].field}} // First item only
Problem: API calls failing with 401/403
Solution:
Problem: Nodes executing in unexpected order
Solution: Check workflow settings → Execution Order
Problem: Expressions showing as literal text
Solution: Use {{}} around expressions
These skills work together with Workflow Patterns:
n8n MCP Tools Expert - Use to:
n8n Expression Syntax - Use to:
n8n Node Configuration - Use to:
n8n Validation Expert - Use to:
Common workflow patterns:
Most Common Triggers:
Most Common Transformations:
Most Common Outputs:
Average Workflow Complexity:
1. Webhook (path: "form-submit", POST)
2. Set (map form fields)
3. Slack (post message to #notifications)
1. Schedule (daily at 9 AM)
2. HTTP Request (fetch analytics)
3. Code (aggregate data)
4. Email (send formatted report)
5. Error Trigger → Slack (notify on failure)
1. Schedule (every 15 minutes)
2. Postgres (query new records)
3. IF (check if records exist)
4. MySQL (insert records)
5. Postgres (update sync timestamp)
1. Webhook (receive chat message)
2. AI Agent
├─ OpenAI Chat Model (ai_languageModel)
├─ HTTP Request Tool (ai_tool)
├─ Database Tool (ai_tool)
└─ Window Buffer Memory (ai_memory)
3. Webhook Response (send AI reply)
1. Manual Trigger (for testing)
2. HTTP Request (GET /api/users)
3. Split In Batches (process 100 at a time)
4. Set (transform user data)
5. Postgres (upsert users)
6. Loop (back to step 3 until done)
For comprehensive guidance on each pattern:
From n8n template library:
Template #2947: Weather to Slack
Webhook Processing: Most common pattern
HTTP API: Common pattern
Database Operations: Common pattern
AI Agents: Growing in usage
Use search_templates and get_template from n8n-mcp tools to find examples!
Key Points:
Next Steps:
Related Skills:
tools
No-code automation democratizes workflow building. Zapier and Make (formerly Integromat) let non-developers automate business processes without writing code. But no-code doesn't mean no-complexity - these platforms have their own patterns, pitfalls, and breaking points. This skill covers when to use which platform, how to build reliable automations, and when to graduate to code-based solutions. Key insight: Zapier optimizes for simplicity and integrations (7000+ apps), Make optimizes for power
tools
Use only when the user explicitly asks to stage, commit, push, and open a GitHub pull request in one flow using the GitHub CLI (`gh`).
tools
Workflow automation is the infrastructure that makes AI agents reliable. Without durable execution, a network hiccup during a 10-step payment flow means lost money and angry customers. With it, workflows resume exactly where they left off. This skill covers the platforms (n8n, Temporal, Inngest) and patterns (sequential, parallel, orchestrator-worker) that turn brittle scripts into production-grade automation. Key insight: The platforms make different tradeoffs. n8n optimizes for accessibility
development
Trigger.dev expert for background jobs, AI workflows, and reliable async execution with excellent developer experience and TypeScript-first design. Use when: trigger.dev, trigger dev, background task, ai background job, long running task.