Communityn8ngithub.com

n8n-ai-agent-workflows

Build and review n8n AI Agent workflows - when to use an agent vs a Basic LLM Chain or plain nodes, system prompts, tool design (Call n8n Workflow Tool, HTTP Request Tool, app tools) with clear names, descriptions and input schemas, memory (Simple/Window, Postgres, Redis) and per-user session keys, structured output parsers, human approval for tools with side effects, guardrails, and cost control (model choice, max tokens, maxIterations, memory window, public chat limits). Includes an audit script that maps each agent's model, memory and tools in an exported workflow and flags missing system messages, runaway iteration limits, tools without descriptions, shared memory sessions, missing output parsers, destructive tools and unbounded token use. Use when the user builds a chatbot, AI agent, RAG or LLM automation in n8n, asks why the agent picks the wrong tool, loops, forgets context, mixes up users, or costs too much.

n8n-ai-agent-workflows란 무엇인가요?

n8n-ai-agent-workflows is a Claude Code agent skill that build and review n8n AI Agent workflows - when to use an agent vs a Basic LLM Chain or plain nodes, system prompts, tool design (Call n8n Workflow Tool, HTTP Request Tool, app tools) with clear names, descriptions and input schemas, memory (Simple/Window, Postgres, Redis) and per-user session keys, structured output parsers, human approval for tools with side effects, guardrails, and cost control (model choice, max tokens, maxIterations, memory window, public chat limits). Includes an audit script that maps each agent's model, memory and tools in an exported workflow and flags missing system messages, runaway iteration limits, tools without descriptions, shared memory sessions, missing output parsers, destructive tools and unbounded token use. Use when the user builds a chatbot, AI agent, RAG or LLM automation in n8n, asks why the agent picks the wrong tool, loops, forgets context, mixes up users, or costs too much.

지원 대상✓Claude Code~Codex CLI~Cursor
npx skills add https://github.com/saizul/n8n-automation-skills/tree/HEAD/skills/n8n-ai-agent-workflows

Installed? Explore more n8n skills: n8n-self-hosting, n8n-webhook-security, audit-securite-app-ia · View all 6 →

즐겨 사용하는 AI에게 물어보기

이 에이전트 스킬이 미리 로드된 새 채팅을 엽니다.

문서

n8n AI agent workflows

An agent is a loop: the model reads the system prompt, memory and tool descriptions, picks a tool, reads the result, repeats until it answers or hits maxIterations. Most problems come from vague tools, shared memory and missing limits.

Paths below are relative to this skill's folder (in Claude Code: ${CLAUDE_SKILL_DIR}).

When to use

  • Building a support bot, internal assistant, email/ticket triage or RAG flow in n8n
  • "The agent calls the wrong tool / no tool / loops until max iterations"
  • "It forgets the conversation" or "users see each other's history"
  • LLM bills are higher than expected, or a public chat bot is exposed
  • Getting reliable JSON out of the model for downstream nodes

When not to use

  • Plain workflow structure, retries, webhooks: n8n-workflow-design, n8n-error-handling, n8n-webhook-security
  • Choosing between model providers on price alone: check the providers' current pricing pages

Workflow

  1. Decide if it needs an agent (decision list in references/agent-patterns.md): fixed steps -> normal nodes; one model call (classify, extract, summarise) -> Basic LLM Chain or the provider node with a Structured Output Parser; open-ended requests that need to choose among tools -> AI Agent.
  2. Audit an existing workflow (read-only):
    python3 scripts/agent_audit.py wf.json
    python3 scripts/agent_audit.py workflows/ --json --fail-on high
    python3 scripts/agent_audit.py wf.json --max-iterations 8 --max-window 10
    
    The header line per agent shows model, memory, tools and maxIterations.
  3. Write the system message with the template in references/agent-patterns.md: role, scope, which tool for which question, what to do when a tool fails, refusal rules, output format.
  4. Design the tools. One job per tool, verb_noun names, a description that says when to use it, the input fields with an example and what it returns. Prefer "Call n8n Workflow Tool" sub-workflows that validate input and return small JSON. Tools that delete, pay, refund, email customers or change records get a human approval step (a "send and wait for approval" node in the tool sub-workflow, or the tool only creates a draft). See references/agent-patterns.md.
  5. Set memory per conversation. Session key from the chat/session id (={{ $json.sessionId }}), never a fixed string. Window 5-10 turns; Postgres or Redis memory for production (survives restarts, works with multiple workers).
  6. Bound the cost with references/cost-control.md: small model first, max output tokens, maxIterations 5-10, short tool outputs, memory window, per-session message limits on public chats, caching of repeated lookups.
  7. Test with a fixed eval set: 10-20 real questions including edge cases (off-topic, prompt injection in user input, tool failure, ambiguous request). Record which tool was called (enable "Return Intermediate Steps" while testing) and the answer; re-run after every prompt or tool change.
  8. Re-run the audit and report the changes and remaining risks.

Output

Agent "AI Agent" (Support chatbot): model gpt-4o, memory Window(100), tools: HTTP Request, Delete customer
HIGH  HTTP Request tool has no description -> rename get_customer, describe input {email}
HIGH  (if fixed session key) all users share memory -> sessionKey ={{ $json.sessionId }}
MED   default system message -> drafted below
MED   maxIterations 50 -> 8
MED   Delete customer: destructive -> approval step in the tool sub-workflow
MED   public chat without auth -> Basic Auth + 20 messages/session limit
LOW   no max tokens, temperature 1.4, memory 100 turns -> 800 tokens, 0.2, 8 turns
Estimated effect: ~60-80% fewer tokens per conversation (shorter history + no loops)

Individual skills in this repo

This repo contains 2 individual skills — each has its own dedicated page.

n8n-self-hosting

Run self-hosted n8n in production with Docker Compose - PostgreSQL, Redis and queue mode (main + workers, optional webhook processors), reverse proxy and WEBHOOK_URL, encryption key handling, execution pruning, task runners, backups (pg_dump, workflow/credential export, the key) with a restore drill, and safe version upgrades including the n8n 2.0 breaking changes. Ships a ready docker-compose.yml and .env.example, plus a checker for .env / `docker compose config` output that flags missing or mismatched N8N_ENCRYPTION_KEY, SQLite or removed MySQL, queue mode without Redis or workers, unpinned images, missing data volume, public ports, removed variables and risky Code-node settings without printing any values. Use when installing, moving, scaling, backing up, upgrading or debugging a self-hosted n8n (Docker, VPS, queue mode, workers).

n8n-webhook-security

Secure n8n Webhook, Form Trigger and Chat Trigger endpoints - pick the right authentication (Header Auth, Basic, JWT, IP allowlist), verify provider HMAC signatures (GitHub, Stripe, Shopify, Slack, generic) in a Code node over the raw body with timingSafeEqual and replay windows, respond safely, and rate-limit /webhook/ at the reverse proxy. Includes an audit script for exported workflows (unauthenticated webhooks, signature checks without Raw Body, non-constant-time compares, secrets typed into nodes, public chat bots) and a signer to send correctly signed test requests. Use when the user exposes an n8n webhook to the internet, integrates Stripe/GitHub/Shopify/Slack webhooks, asks how to protect or authenticate a webhook, sees fake or replayed requests, or publishes a chat/form trigger.

관련 스킬

n8n-self-hosting

Run self-hosted n8n in production with Docker Compose - PostgreSQL, Redis and queue mode (main + workers, optional webhook processors), reverse proxy and WEBHOOK_URL, encryption key handling, execution pruning, task runners, backups (pg_dump, workflow/credential export, the key) with a restore drill, and safe version upgrades including the n8n 2.0 breaking changes. Ships a ready docker-compose.yml and .env.example, plus a checker for .env / `docker compose config` output that flags missing or mismatched N8N_ENCRYPTION_KEY, SQLite or removed MySQL, queue mode without Redis or workers, unpinned images, missing data volume, public ports, removed variables and risky Code-node settings without printing any values. Use when installing, moving, scaling, backing up, upgrading or debugging a self-hosted n8n (Docker, VPS, queue mode, workers).

community

n8n-webhook-security

Secure n8n Webhook, Form Trigger and Chat Trigger endpoints - pick the right authentication (Header Auth, Basic, JWT, IP allowlist), verify provider HMAC signatures (GitHub, Stripe, Shopify, Slack, generic) in a Code node over the raw body with timingSafeEqual and replay windows, respond safely, and rate-limit /webhook/ at the reverse proxy. Includes an audit script for exported workflows (unauthenticated webhooks, signature checks without Raw Body, non-constant-time compares, secrets typed into nodes, public chat bots) and a signer to send correctly signed test requests. Use when the user exposes an n8n webhook to the internet, integrates Stripe/GitHub/Shopify/Slack webhooks, asks how to protect or authenticate a webhook, sees fake or replayed requests, or publishes a chat/form trigger.

community

audit-securite-app-ia

Read-only security audit for AI-generated apps (Next.js/React on Vercel, Supabase, React Native/Expo, n8n workflows, LLM calls). Finds exposed secrets (NEXT_PUBLIC_/EXPO_PUBLIC_ keys, Supabase service_role, committed env files), weak Supabase RLS and public storage buckets (checked live via the Supabase MCP or supabase/psql CLI when available), prompt injection into LLM instructions, and 14 server-trusts-client attacks (XSS, IDOR, price tampering, fake payments, race conditions, mass assignment, SQL injection, unsafe uploads). Every finding gives file:line, a concrete exploit and a one-commit fix; secrets are never printed. Works in Claude Code, Codex and OpenCode. Use for 'audit my app', 'is my app secure', 'audite mon app', 'est-ce que mon app est sécure'.

community

tool-finder

이미 만들어진 AI 도구를 찾을 때 쓰는 통합 검색. "MCP 찾아줘", "에이전트 찾아줘", "플러그인 찾아줘", "skill 있어?", "n8n 템플릿 찾아줘", "OO 하는 거 누가 만들어 둔 거 없나", "OO 자동화할 도구 있어?"처럼 MCP 서버, Claude skill, Claude Code 플러그인, n8n 워크플로, GitHub 봇·에이전트, 완성형 AI 앱을 찾거나 비교하려 하면 반드시 사용한다. 요구를 기능 단위로 쪼개 여러 디렉터리를 한 번에 검색하고, 실제로 있고 지금 쓸 만한지 확인한 뒤, 유형을 넘나들어 기능을 모두 덮는 조합과 근거를 보여준다. 직접 만들기 전에 기존 것이 있는지 확인할 때도 쓴다. 이미 고른 도구의 설치·디버깅, 일반 웹 정보 검색에는 쓰지 않는다.

community

maintain-n8n-workflows

Maintain portable, sanitized, version-compatible n8n workflow templates and their Bootstrap/Maintenance lifecycle. Use when editing or reviewing n8n workflow JSON, moving workflows between instances or n8n versions, grouping agents and subworkflows as one documented project, or preventing scheduled updates from overwriting human documentation.

community

n8n-workflows

Find, adapt, and assemble n8n automation workflows from a local library of 2,061 real workflow templates covering 365+ integrations. Use when the user wants to automate something with n8n, asks for an n8n workflow, template, or example, mentions connecting two services with n8n, wants to see how an n8n node is wired up, or needs a starting point for an automation involving webhooks, schedules, or app triggers. Also use when the user asks what n8n can integrate with. Do NOT use for non-n8n automation (Zapier, Make, Airflow) unless the user wants an n8n equivalent.

community