n8n-workflow-patterns

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

Updated Apr 12, 2026
One-click install
npx skills add https://github.com/Sebasarmas19/Chatbot-Reminder --skill n8n-workflow-patterns-sebasarmas19
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: n8n-workflow-patterns
Source: https://github.com/Sebasarmas19/Chatbot-Reminder/tree/main/n8n-skills/skills/n8n-workflow-patterns
Command: npx skills add https://github.com/Sebasarmas19/Chatbot-Reminder --skill n8n-workflow-patterns-sebasarmas19

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Building n8n workflows from scratch often leads to structural mistakes like misreading webhook payloads, missing error handling, SQL injection risks, or misconfigured AI agent connections. This Skill provides five proven architectural patterns distilled from thousands of real n8n templates so workflows follow correct structure 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 structure diagrams, configuration examples, and checklists. - Gotcha Documentation: Covers frequent mistakes such as accessing webhook data under $json.body, connecting tools to the ai_tool port instead of main, and using parameterized queries to prevent SQL injection. - Use Case: When asked to build a workflow that receives Stripe payment webhooks, updates a Postgres database, and sends Slack confirmations, the Skill supplies the webhook pattern with signature verification, validation steps, and error handling structure. ## Quick Start Ask the AI to design an n8n workflow for your use case, such as a scheduled daily report or a webhook-driven chatbot, and it will select and apply the appropriate 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 responseMode onReceived for background processing or lastNode for custom responses.

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

Connect any node to the AI Agent via the ai_tool port, attach a language model to ai_languageModel, and add Window Buffer Memory to ai_memory for conversation context. Write specific tool descriptions since the AI uses them to decide when to call each tool.

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 for conversational or tool-using AI, and Scheduled Tasks for recurring reports and maintenance.

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 concatenating expressions into the query string. Also create a least-privilege database user with only the permissions the workflow needs.

Why is my n8n scheduled workflow running at the wrong time?

The workflow timezone is likely unset, causing schedules to follow server time and shift during daylight saving transitions. Set the timezone explicitly in workflow settings, for example America/New_York, so cron and hour-based schedules stay consistent.

How do I handle large datasets in n8n without memory errors?

Use Split In Batches to process records in chunks, add LIMIT to all SELECT queries, and prefer cursor-based pagination over offset for very large tables. Batch write operations instead of inserting rows one at a time.