N8n Workflow Automation logo

N8n Workflow Automation

Community
L-LesterYu
n8n-workflow-automation

设计并输出 n8n 工作流 JSON,具备健壮的触发器、幂等性、错误处理、日志记录、重试机制和人机协作审核队列。当您需要可审计且不会静默失败的自动化时使用。

Overview

PublisherL-LesterYu
RepositoryOpenClaw-hot-skills-zh
Skill namen8n-workflow-automation
Stars
57
Forks
9
Bundled files
2
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 2 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by L-LesterYu on GitHub. Read the source before you install it.

Installation

Install the N8n Workflow Automation AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/L-LesterYu/OpenClaw-hot-skills-zh/tree/main/skills/n8n-workflow-automation-zh
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/L-LesterYu/OpenClaw-hot-skills-zh.git /tmp/OpenClaw-hot-skills-zh
mkdir -p .claude/skills
cp -r /tmp/OpenClaw-hot-skills-zh/skills/n8n-workflow-automation-zh .claude/skills/n8n-workflow-automation
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable N8n Workflow Automation in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads N8n Workflow Automation on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so N8n Workflow Automation is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

n8n 工作流自动化 - 重试、日志记录和审核队列

目的

设计并输出 n8n 工作流 JSON,具备健壮的触发器、幂等性、错误处理、日志记录、重试机制和人机协作审核队列。

使用场景

  • 触发条件:
    • 构建一个每周一运行并发送合规摘要的 n8n 工作流
    • 为此工作流添加错误处理和重试机制,以及失败审核队列
    • 创建一个记录每次运行并向跟踪器写入状态行的 webhook 工作流
    • 使此 n8n 流程具有幂等性,以便重新运行时不会重复记录
    • 为此工作流配备审计日志和人工审批步骤
  • 不适用场景:
    • 您需要不使用 n8n 的纯代码自动化(请使用脚本/CI 技能)
    • 您需要绕过安全控制或隐藏审计轨迹
    • 您需要购买或推荐违禁物品/服务

输入

  • 必需:
    • 工作流意图:触发器类型 + 计划/时区 + 成功标准
    • 目标:结果写入位置(email/Drive/Sheet/DB)和必需字段
  • 可选:
    • 要修改的现有 n8n 工作流 JSON
    • 示例负载 / 示例记录
    • 去重键定义(什么使记录唯一)
  • 示例:
    • Cron:周一 08:00 Europe/London;发送摘要邮件 + Drive 上传
    • Webhook:接收 JSON;路由到文件夹

输出

  • 默认(只读):工作流设计规范(节点、数据契约、失败模式)
  • 如果明确请求:workflow.json(n8n 可导入 JSON)+ runbook.md(来自模板) 成功 = 工作流具有幂等性、记录每次运行、安全重试,并将失败路由到审核队列

工作流程

  1. 明确触发器:
    • Cron/webhook/手动;计划/时区;并发预期
  2. 定义数据契约:
    • 输入模式、必需字段和验证规则
  3. 设计幂等性:
    • 选择去重键和存储(DB/Sheet)以防止重试时重复
  4. 添加可观察性:
    • 生成 run_id,记录开始/结束,存储状态行和错误详情
  5. 实现错误处理:
    • 每节点错误分支、带退避的重试和最终失败通知
  6. 添加人机协作(HITL)审核队列:
    • 将失败项目写入队列(Sheet/DB)并需要审批才能重新处理
  7. "无静默失败"关卡:
    • 如果计数/阈值失败,停止工作流并告警
  8. 输出:
    • 如果请求 JSON:生成可导入的 n8n 工作流 JSON + 运行手册
  9. 停止并询问用户,如果:
    • 目标系统未知
    • 不存在去重键
    • 凭证策略(环境变量)未指定
    • 工作流需要尚未批准的特权访问

输出格式

如果输出 n8n 工作流 JSON,需符合:

json
{
  "name": "<workflow name>",
  "nodes": [ { "name": "Trigger", "type": "n8n-nodes-base.cron", "parameters": {}, "position": [0,0] } ],
  "connections": {},
  "settings": {},
  "active": false
}

同时使用 assets/runbook-template.md 输出 runbook.md。

安全与边界情况

  • 默认只读;仅在明确请求时输出工作流 JSON
  • 不要在 JSON 中包含密钥;仅引用环境变量/凭证名称
  • 包含审计日志 + 失败通知;避免可能静默丢失数据的工作流
  • 优先最小权限:仅调用所需的 API 并最小化范围

示例

  • 输入:"每周一 cron,发送合规摘要,重试失败。" 输出:节点图 + workflow.json(包含 Cron → Fetch → Aggregate → Email),加上错误分支到审核队列

  • 输入:"记录运行并写入状态行的 Webhook。" 输出:Webhook → Validate → Process → Append status row;错误时 → log + notify + queue

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the N8n Workflow Automation AI skill do?

设计并输出 n8n 工作流 JSON,具备健壮的触发器、幂等性、错误处理、日志记录、重试机制和人机协作审核队列。当您需要可审计且不会静默失败的自动化时使用。

Why use N8n Workflow Automation on TypingMind?

Because you install it once and use it with any model. N8n Workflow Automation is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install N8n Workflow Automation in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/L-LesterYu/OpenClaw-hot-skills-zh/tree/main/skills/n8n-workflow-automation-zh. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use N8n Workflow Automation?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with N8n Workflow Automation?

As many as you like. As long as a model supports skills, you can use N8n Workflow Automation with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the N8n Workflow Automation AI skill free?

Yes. It is published on GitHub by L-LesterYu under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇