Skip to content
MCP Servers
Skill

/n8n-workflow-patterns

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

From plugin
n8n-mcp
23k15 skills8 agents

Claude Code

$ npx -y skills add czlonkowski/n8n-mcp --skill n8n-workflow-patterns --agent claude-code

SKILL.md

n8n-workflow-patterns.SKILL.md
name: n8n-workflow-patterns
description: 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, batch processing, or scheduled tasks. Always consult this skill when the user asks to create, build, or design an n8n workflow, automate a process, or connect services — even if they don't explicitly mention 'patterns'. Covers webhook, API, database, AI, batch processing, and scheduled automation architectures. Also use when optimizing a slow workflow or speeding up large-item-count processing (node count, batchSize, all-items vs per-item).

n8n Workflow Patterns

Proven architectural patterns for building n8n workflows.

---

The 6 Core Patterns

Based on analysis of real workflow usage:

1. **[Webhook Processing](webhook_processing.md)** (Most Common)

  • Receive HTTP requests → Process → Output
  • Pattern: Webhook → Validate → Transform → Respond/Notify

2. **[HTTP API Integration](http_api_integration.md)**

  • Fetch from REST APIs → Transform → Store/Use
  • Pattern: Trigger → HTTP Request → Transform → Action → Error Handler

3. **[Database Operations](database_operations.md)**

  • Read/Write/Sync database data
  • Pattern: Schedule → Query → Transform → Write → Verify

4. **[AI Agent Workflow](ai_agent_workflow.md)**

  • AI agents with tools and memory
  • Pattern: Trigger → AI Agent (Model + Tools + Memory) → Output

5. **[Scheduled Tasks](scheduled_tasks.md)**

  • Recurring automation workflows
  • Pattern: Schedule → Fetch → Process → Deliver → Log

6. **Batch Processing** (below)

  • Process large datasets in chunks with API rate limits
  • Pattern: Prepare → SplitInBatches → Process per batch → Accumulate → Aggregate

---

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"

**Batch Processing** - Use when:

  • Processing large datasets that exceed API batch limits
  • Need to accumulate results across multiple API calls
  • Nested loops (e.g., multiple categories × paginated API calls per category)
  • Example: "Fetch products for 4 markets × 1000 per API call → Aggregate all results"

---

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.
  • **Extract From File** - CSV / XLSX / PDF from a downloaded or uploaded file

3. Transformation (native first)

  • **Filter / IF / Switch** - Drop items, route
  • **Edit Fields (Set)** - Named steps: constant items, payload objects, error and return items
  • **Summarize / Aggregate / Split Out** - Group and total, collect into an array, explode an array
  • **Merge / Compare Datasets** - Join two lists, diff them for a sync
  • **Remove Duplicates / Sort / Limit** - Dedupe (also across runs), top-N
  • **Date & Time, XML, HTML, Crypto** - Dates, markup, hashes and signatures
  • **Code** - Only the closed list (loops or recursion no node expresses, state across runs, parsing no node handles), with a `Why Code:` note

The job-to-node table in `using-n8n-mcp-skills` maps jobs to these nodes; configs are in `n8n-node-configuration` → NATIVE_NODES.md. Reading a filtered slice of a nested API response for **one field**? A single `{{ $jmespath($json, "…") }}` in that field does it without extra nodes (quoting rules in n8n-expression-syntax).

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 (native first: Filter, IF, Summarize, Merge…; Code only with a `Why Code:` note)
  • [ ] Add output/action nodes
  • [ ] Configure error handling

Validation Phase

  • [ ] Validate each node configuration (validate_node)
  • [ ] Validate complete workflow (validate_workflow)
  • [ ] Test with sample data
  • [ ] Handle edge cases (empty data, errors)

Deployment Phase

  • [ ] Review workflow se
Read more
@czlonkowski
Ships withn8n-mcp

n8n-MCP is an open-source MCP server that lets Claude, ChatGPT, Cursor, and other AI assistants operate n8n: read failed executions, edit workflows in place, validate and test them, manage credentials, and build new workflows.

23k15 skills8 agents
Get the whole plugin

Stars on GitHub

Momentum

stars in total
23.3k
Star history of czlonkowski/n8n-mcp on GitHub, a chart by star-history.com

Other skills on n8n-mcp.

n8n-agents

n8n-agents

Design n8n AI agents the right way. Use when building or editing any @n8n/n8n-nodes-langchain.* AI node — an AI Agent, LLM chain,…

@czlonkowski@czlonkowskiInstall Skill
n8n-binary-and-data

n8n-binary-and-data

Handle files and binary data in n8n correctly. Use when working with files, images, PDFs, attachments, uploads or downloads,…

@czlonkowski@czlonkowskiInstall Skill
n8n-code-javascript

n8n-code-javascript

Write, review, or debug JavaScript in an n8n Code node. Use when a Code node is already in the workflow (editing it, fixing an…

@czlonkowski@czlonkowskiInstall Skill
n8n-code-python

n8n-code-python

Write Python in n8n Code nodes (native Python, `language` pythonNative, n8n 2.x). Use when the user explicitly wants Python in a…

@czlonkowski@czlonkowskiInstall Skill
n8n-code-tool

n8n-code-tool

Write JavaScript or Python for the n8n Custom Code Tool (@n8n/n8n-nodes-langchain.toolCode) — the AI-agent-callable tool, NOT the…

@czlonkowski@czlonkowskiInstall Skill
n8n-error-handling

n8n-error-handling

Wire n8n error handling so failures are loud, structured, and recoverable. Use when building any webhook/API workflow, a…

@czlonkowski@czlonkowskiInstall Skill

More skills from other plugins.

gitnexus-cli

gitnexus-cli

Use when the user needs to run GitNexus CLI commands like analyze/index a repo, check status, clean the index, generate a wiki,…

gitnexus11d49k
@abhigyanpatwari@abhigyanpatwariInstall Skill
fastmcp-client-cli

fastmcp-client-cli

Query and invoke tools on MCP servers using fastmcp list and fastmcp call. Use when you need to discover what tools a server…

fastmcp10d29k
@prefecthq@prefecthqInstall Skill
post-to-xhs

post-to-xhs

小红书内容发布技能。支持两种发布模式:(1) 上传图文模式 - 图片+短文;(2) 写长文模式 - 长篇文章+排版模板。 支持两种输入方式:用户提供完整内容和图片/图片URL,直接发布;或提供网页URL,自动提取内容和图片。…

@xpzouying@xpzouyingInstall Skill
chatgpt-app-builder

chatgpt-app-builder

Build, modify, debug, migrate, review, or verify TypeScript MCP servers and MCP Apps with mcp-use. Use for tools, resources,…

mcp-use12d11k
@mcp-use@mcp-useInstall Skill

Questions about n8n-workflow-patterns.

Which coding agents can use n8n-workflow-patterns?
n8n-workflow-patterns installs in Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and Windsurf with the skills CLI, using each agent's flag shown on this page. Flowy's auto-invocation, which fires a skill when your prompt matches, runs in Claude Code only.