n8n-workflow-patterns

Provides architectural patterns for building n8n workflows with webhooks, APIs, databases, and AI agents.

Updated Mar 31, 2026
One-click install
npx skills add https://github.com/SESELOVSKYDarian/Vase --skill n8n-workflow-patterns-seselovskydarian
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: n8n-workflow-patterns
Source: https://github.com/SESELOVSKYDarian/Vase/tree/main/.claude/skills/n8n-workflow-patterns
Command: npx skills add https://github.com/SESELOVSKYDarian/Vase --skill n8n-workflow-patterns-seselovskydarian

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Building n8n workflows from scratch often leads to structural mistakes, missed error handling, and common gotchas like incorrect webhook data access or SQL injection risks. This Skill provides five proven architectural patterns so workflows follow tested structures from the start. ## Core Features & Use Cases - Five Core Patterns: Webhook processing, HTTP API integration, database operations, AI agent workflows, and scheduled tasks, each with complete node configurations and examples. - Pattern Selection Guide: Decision criteria for choosing the right pattern based on your use case, plus statistics from 2,653+ real n8n templates. - Gotcha Prevention: Documented fixes for frequent mistakes like accessing webhook data under $json.body, SQL injection prevention with parameterized queries, and correct ai_tool port connections. - Use Case: When asked to build a workflow that receives Stripe payment webhooks and updates a database, the Skill guides you through the webhook pattern with signature verification, validation, and error handling. ## Quick Start Ask the AI to design an n8n workflow for your use case, such as receiving form submissions via webhook and sending Slack notifications.

Frequently Asked Questions about n8n-workflow-patterns

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I structure an n8n webhook workflow?

Use the pattern Webhook → Validate → Transform → Action → Response. Remember that incoming data is nested under $json.body, not $json directly, and choose between onReceived and lastNode response modes based on whether you need a custom response.

How do I connect tools to an n8n AI agent?

Connect any n8n node to the AI Agent via the ai_tool port, not the main port. Provide a clear tool name and description since the AI uses descriptions to decide when to call each tool, and add memory via the ai_memory port for conversations.

What are the most common n8n workflow patterns?

The five core patterns are webhook processing (35% of triggers), scheduled tasks (28%), HTTP API integration, database operations, and AI agent workflows. Together they cover over 90% of real workflow use cases.

How do I prevent SQL injection in n8n database nodes?

Always use parameterized queries with placeholders like $1 and pass values through the parameters array instead of string concatenation. Also create a least-privilege database user with only the permissions the workflow needs.

Why is my n8n webhook data empty or undefined?

Webhook payload data is nested under $json.body, so {{$json.email}} fails while {{$json.body.email}} works. Headers, URL parameters, and query strings are similarly accessed via $json.headers, $json.params, and $json.query.

How do I handle pagination in n8n HTTP Request nodes?

Use a loop pattern with offset-based, cursor-based, or Link-header pagination depending on the API. Combine Split In Batches with a Set node that tracks the current page or cursor, and loop until no more results are returned.