n8n-workflow-patterns

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

Updated Aug 3, 2026
One-click install
npx skills add https://github.com/alvarocubacc/n8n-workflow-builder --skill n8n-workflow-patterns-alvarocubacc
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: n8n-workflow-patterns
Source: https://github.com/alvarocubacc/n8n-workflow-builder/tree/main/n8n-skills/skills/n8n-workflow-patterns
Command: npx skills add https://github.com/alvarocubacc/n8n-workflow-builder --skill n8n-workflow-patterns-alvarocubacc

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 misreading webhook payloads. This Skill provides five proven architectural patterns so workflows follow tested structures instead of ad-hoc designs. ## 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. - Pattern Selection Guide: Decision criteria for choosing the right pattern based on triggers, data flow, and output requirements. - Gotchas & Best Practices: Documented fixes for frequent errors such as accessing webhook data under $json.body, SQL injection prevention, and timezone handling. - Use Case: When asked to build a workflow that receives Stripe payment webhooks and updates a database, the Skill supplies the webhook validation, signature verification, and database write pattern with proper error handling. ## Quick Start Ask the AI to design an n8n workflow for your use case, such as receiving a form submission webhook and posting it to Slack, and it will apply the matching pattern.

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 payload data is nested under $json.body, not $json directly, and choose between onReceived and lastNode response modes based on whether the caller needs a custom response.

How do I build an AI agent with tools in n8n?

Connect a language model to the ai_languageModel port, any node to the ai_tool port, and a memory node to ai_memory on the AI Agent node. Write specific tool descriptions since the AI uses them to decide when to call each tool, and use read-only database credentials for safety.

Which n8n workflow pattern should I use for my use case?

Use webhook processing for event-driven integrations, HTTP API integration for fetching external data, database operations for sync and ETL, AI agent workflows for conversational or tool-using AI, and scheduled tasks for recurring reports and maintenance.

Why is my n8n webhook data empty or undefined?

Webhook payload fields live under $json.body, so {{$json.email}} returns nothing while {{$json.body.email}} works. Also verify the HTTP method matches the sender and that you are reading body, query, params, or headers correctly.

How do I handle pagination and rate limits in n8n API calls?

Loop with offset, cursor, or Link-header pagination until no next page exists, and add Wait nodes or exponential backoff between batches. Set continueOnFail to true and check rate limit headers to pause before limits are exceeded.

How do I prevent SQL injection in n8n database nodes?

Always use parameterized queries with placeholders like $1 and a parameters array instead of interpolating expressions into the query string. Combine this with a least-privilege database user that has only the permissions the workflow needs.