n8n-workflow-patterns
What it does
This skill gives the AI agent five tested architecture patterns for building n8n automations. It is for people designing new n8n workflows who want a solid starting structure.
When to use it
- βWhen you are starting a new n8n workflow and need to choose a structure.
- βWhen you want a workflow that reacts to incoming webhook events, such as a form submission.
- βWhen you need a scheduled workflow that fetches data, processes it and sends a report.
Skill link
https://github.com/davila7/claude-code-templates/blob/main/cli-tool/components/skills/workflow-automation/n8n/n8n-workflow-patterns/SKILL.mdCopy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.
How to use
The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.
Ready-to-paste message
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agentβs skills folder.
Example of what to ask your AI
βWhat is the best n8n structure for a workflow that receives form submissions and updates a database?β
5 new skills a week. 1 minute to read.
How it works
The agent compares your goal with the five patterns, recommends the closest fit, and explains the steps to build it.
Technical content (original SKILL.md)
Original text by the author, straight from GitHub.
n8n Workflow Patterns
Proven architectural patterns for building n8n workflows.
The 5 Core Patterns
Based on analysis of real workflow usage:
Webhook Processing (Most Common)
- Receive HTTP requests β Process β Output
- Pattern: Webhook β Validate β Transform β Respond/Notify
-
- Fetch from REST APIs β Transform β Store/Use
- Pattern: Trigger β HTTP Request β Transform β Action β Error Handler
-
- Read/Write/Sync database data
- Pattern: Schedule β Query β Transform β Write β Verify
-
- AI agents with tools and memory
- Pattern: Trigger β AI Agent (Model + Tools + Memory) β Output
-
- Recurring automation workflows
- Pattern: Schedule β Fetch β Process β Deliver β Log
Pattern Selection Guide
When to use each pattern:
Webhook Processing - Use when:
- Receiving data from external systems
- Building integrations (Slack commands, form submissions, GitHub webhooks)
- Need instant response to events
- Example: "Receive Stripe payment webhook β Update database β Send confirmation"
HTTP API Integration - Use when:
- Fetching data from external APIs
- Synchronizing with third-party services
- Building data pipelines
- Example: "Fetch GitHub issues β Transform β Create Jira tickets"
Database Operations - Use when:
- Syncing between databases
- Running database queries on schedule
- ETL workflows
- Example: "Read Postgres records β Transform β Write to MySQL"
AI Agent Workflow - Use when:
- Building conversational AI
- Need AI with tool access
- Multi-step reasoning tasks
- Example: "Chat with AI that can search docs, query database, send emails"
Scheduled Tasks - Use when:
- Recurring reports or summaries
- Periodic data fetching
- Maintenance tasks
- Example: "Daily: Fetch analytics β Generate report β Email team"
Common Workflow Components
All patterns share these building blocks:
1. Triggers
- Webhook - HTTP endpoint (instant)
- Schedule - Cron-based timing (periodic)
- Manual - Click to execute (testing)
- Polling - Check for changes (intervals)
2. Data Sources
- HTTP Request - REST APIs
- Database nodes - Postgres, MySQL, MongoDB
- Service nodes - Slack, Google Sheets, etc.
- Code - Custom JavaScript/Python
3. Transformation
- Set - Map/transform fields
- Code - Complex logic
- IF/Switch - Conditional routing
- Merge - Combine data streams
4. Outputs
- HTTP Request - Call APIs
- Database - Write data
- Communication - Email, Slack, Discord
- Storage - Files, cloud storage
5. Error Handling
- Error Trigger - Catch workflow errors
- IF - Check for error conditions
- Stop and Error - Explicit failure
- Continue On Fail - Per-node setting
Workflow Creation Checklist
When building ANY workflow, follow this checklist:
Planning Phase
- Identify the pattern (webhook, API, database, AI, scheduled)
- List required nodes (use search_nodes)
- Understand data flow (input β transform β output)
- Plan error handling strategy
Implementation Phase
- Create workflow with appropriate trigger
- Add data source nodes
- Configure authentication/credentials
- Add transformation nodes (Set, Code, IF)
- Add output/action nodes
- Configure error handling
Validation Phase
- Validate each node configuration (validate_node_operation)
- Validate complete workflow (validate_workflow)
- Test with sample data
- Handle edge cases (empty data, errors)
Deployment Phase
- Review workflow settings (execution order, timeout, error handling)
- Activate workflow β οΈ Manual activation required in n8n UI (API/MCP cannot activate)
- Monitor first executions
- Document workflow purpose and data flow
Data Flow Patterns
Linear Flow
Trigger β Transform β Action β End
Use when: Simple workflows with single path
Branching Flow
Trigger β IF β [True Path]
ββ [False Path]
Use when: Different actions based on conditions
Parallel Processing
Trigger β [Branch 1] β Merge
ββ [Branch 2] β
Use when: Independent operations that can run simultaneously
Loop Pattern
Trigger
FAQ
What are the five patterns?
They are webhook processing, HTTP API integration, database operations, AI agent workflows and scheduled tasks.
Which pattern is most common?
The skill says webhook processing is the most common pattern.
Does it cover AI agents in n8n?
Yes. It includes an AI agent pattern with a model, tools and memory.
Details
Original description by the author
Proven workflow architectural patterns from real n8n workflows. Use when building new workflows, designing workflow structure, choosing workflow patterns, planning workflow architecture, or asking about webhook processing, HTTP API integration, database operations, AI agent workflows, or scheduled tasks.
Popularity
- GitHub stars
- 33k
- Ranking position
- #9114
- License
- MIT
- Updated
- 11/2/2026
Comments
- β¦
More skills from this repository
owasp-security
33kTeaches your agent OWASP security guidance for web apps, APIs, mobile, containers and AI agents, so it can spot common weaknesses and suggest fixes.
agent-management
33kLets your agent create, list, hibernate, wake, rename and delete AI agents using the AI Maestro command line, managing each agent's lifecycle.
agent-messaging
33kLets your agent send, receive and reply to signed messages between AI agents, using the Agent Messaging Protocol, mostly on your own machine.
docs-search
33kLets your agent search auto-generated code documentation for function signatures, class definitions and comments, so it checks the real API before changing code.
Similar skills
knowledge-automation
394kHelps your agent set up a recurring job that brings new content into your Knowledge vault on a schedule, then checks that the job runs.
knowledge-source-ingest
394kHelps your agent keep a Knowledge vault current with new items from chat channels, feeds, or mailboxes, without re-adding what it already has.
benchmark
280kHelps your agent measure code speed and performance. It's useful for ensuring things are fast and finding slowness issues.