Memstack Automation N8n Workflow Builder 标志

Memstack Automation N8n Workflow Builder

社区
cwinvestments
memstack-automation-n8n-workflow-builder

Use this skill when the user says 'n8n workflow', 'build a workflow', 'automation workflow', 'connect services', or needs visual workflow design with node mapping, data transformations, and error handling for n8n. Do NOT use for standalone webhook endpoints or cron jobs.

Add to TypingMind

概览

发布者cwinvestments
代码仓库memstack
技能名称memstack-automation-n8n-workflow-builder
星标数
425
复刻数
45
附带文件
仅含指令
许可协议MIT
链接
  • Markdown 格式的指令

    模型按需加载 SKILL.md 文件,因此只有在请求确实与该技能匹配时才会消耗 Token。

  • 兼容任何大语言模型

    AI 技能采用纯 Markdown,而非特定提供商的代码,因此可搭配 GPT、Claude、Gemini、Grok 或本地模型使用。

  • 指令自成一体

    模型所需的一切都包含在指令中,无需同步额外文件。

  • 开源

    由 cwinvestments 发布于 GitHub。请在安装前查看技能的源文件。

安装

在 TypingMind 中安装 Memstack Automation N8n Workflow Builder AI 技能,即可搭配任意大语言模型使用;也可以将其放入其他支持读取 SKILL.md 的智能体中。

1

安装到 TypingMind

TypingMind 可直接从 GitHub 文件夹安装技能:读取 SKILL.md,打包资源文件,并将结果保存在本地。

  1. 打开应用,前往“插件 → 技能”。
  2. 选择“从 GitHub 安装”。
  3. 粘贴下方的技能文件夹 URL 并确认。
    https://github.com/cwinvestments/memstack/tree/master/skills/automation/n8n-workflow-builder
  4. 请在每个需要使用该技能的聊天中启用它。
依次选择“插件 → 技能 → 添加技能 → 从 GitHub URL 导入”,然后粘贴文件夹 URL 并点击“继续”。
2

安装到其他智能体

任何支持 Agent Skills 格式的智能体都可以使用此技能,只需将文件夹复制到该智能体的技能目录中。

Claude Code — .claude/skills
git clone --depth 1 https://github.com/cwinvestments/memstack.git /tmp/memstack
mkdir -p .claude/skills
cp -r /tmp/memstack/skills/automation/n8n-workflow-builder .claude/skills/memstack-automation-n8n-workflow-builder
复制后,请重启 Claude Code,以加载新技能。

在 TypingMind 中使用此技能

在任意 TypingMind 聊天中启用 Memstack Automation N8n Workflow Builder,后续即可交由模型处理。技能的名称和描述会放在系统提示词中,一旦请求匹配,模型就会自动加载完整指令,无需您手动调用,且在实际使用前不会消耗 Token。

一旦请求与技能匹配,模型就会自动加载 Memstack Automation N8n Workflow Builder。

兼容任何 AI 模型

AI 技能是纯 Markdown 指令,而非特定提供商的代码,因此 Memstack Automation N8n Workflow Builder 不局限于最初适配的模型。只需在 TypingMind 中安装一次,即可搭配 GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama 或您自行运行的本地模型使用,全程使用您自己的 API 密钥。

  • 仅在需要时加载

    系统提示词中仅包含技能名称和描述。首次遇到匹配的请求时才会加载完整指令,因此技能未使用时,这些指令不会消耗 Token。

  • 在聊天中切换模型

    技能是指令而非代码,因此切换模型不会导致技能失效,新模型会读取同一个 SKILL.md。

技能指令

这是模型会加载的 SKILL.md 内容。请在安装前阅读,因为技能就是模型将遵循的指令。

n8n Workflow Builder: Designing automation workflow...

Designs visual n8n workflows with trigger selection, node mapping, data transformations, error handling, and webhook integration.

Activation

When this skill activates, output:

n8n Workflow Builder: Designing automation workflow...

Then execute the protocol below.

Context Guard

ContextStatus
User says "n8n workflow", "build a workflow", "automation workflow"ACTIVE
User says "connect services" or wants visual automationACTIVE
User wants to automate a multi-step process with n8nACTIVE
User needs a standalone webhook endpointDORMANT: use Webhook Designer
User needs a cron/scheduled job without n8nDORMANT: use Cron Scheduler

Common Mistakes

MistakeWhy It's Wrong
"One giant workflow"Workflows over 20 nodes become unmaintainable. Split into sub-workflows with triggers.
"No error handling"Silent failures mean lost data. Every workflow needs an Error Trigger node.
"Hardcoded credentials"Use n8n's credential store, never paste API keys into HTTP Request nodes.
"Skip testing with real data"Test with production-like payloads. Dummy data hides type mismatches and missing fields.
"Poll when you can webhook"Polling wastes resources. If the service supports webhooks, use the Webhook trigger instead.

Protocol

Step 1: Gather Workflow Requirements

If the user hasn't provided details, ask:

  1. Trigger: what starts the workflow? (webhook, schedule, app event, manual)
  2. Input: what data comes in? (payload shape, source service)
  3. Actions: what should happen step-by-step?
  4. Output: where does the result go? (database, API, email, Slack, file)
  5. Error handling: what happens if a step fails?
  6. Frequency: how often does this run? (per event, hourly, daily)

Step 2: Select Trigger Node

Trigger Typen8n NodeWhen to Use
Incoming webhookWebhookExternal service sends data to you
ScheduleSchedule TriggerRun at fixed intervals (cron)
App event[App] TriggerSlack message, GitHub PR, Stripe payment, etc.
ManualManual TriggerTesting or on-demand execution
EmailEmail Trigger (IMAP)React to incoming emails
File changeLocal File TriggerWatch a directory for new files
Another workflowExecute Workflow TriggerSub-workflow called by parent

Trigger configuration template:

Trigger: [Node name]
Type: [Webhook / Schedule / App event]
Configuration:
  - [Setting 1: e.g., HTTP Method: POST]
  - [Setting 2: e.g., Path: /webhook/orders]
  - [Setting 3: e.g., Authentication: Header Auth]
Output schema:
  {
    "field1": "type: description",
    "field2": "type: description"
  }

Step 3: Map the Workflow Nodes

Design the node sequence from trigger to output:

Workflow diagram template:

[Trigger] → [Transform/Filter] → [Action 1] → [Action 2] → [Output]
                                       ↓ (on error)
                                  [Error Handler]

Common node patterns:

PatternNodesUse Case
Filter & routeIF / SwitchRoute data based on conditions
TransformSet / Code / Item ListsReshape data between nodes
Batch processSplitInBatches → LoopProcess large datasets without timeout
Merge streamsMergeCombine data from parallel branches
Lookup & enrichHTTP Request → MergeAdd data from external APIs
DeduplicateCode (Set-based check)Prevent processing the same item twice

Node specification template (for each node):

Node [N]: [Name]
Type: [n8n node type]
Purpose: [What this node does]
Input: [What it receives from the previous node]
Configuration:
  - [Key setting 1]
  - [Key setting 2]
Output: [What it passes to the next node]

Step 4: Data Transformations

Accessing data between nodes:

javascript
// Reference previous node output
{{ $json.fieldName }}

// Reference a specific node by name
{{ $('Node Name').item.json.fieldName }}

// Access all items from a node
{{ $('Node Name').all() }}

// Current item index in a loop
{{ $itemIndex }}

// Environment variables
{{ $env.MY_VARIABLE }}

Common transformation patterns:

TransformationNodeExpression Example
Rename fieldSetnewName: {{ $json.oldName }}
Format dateSet / Code{{ DateTime.fromISO($json.date).toFormat('yyyy-MM-dd') }}
Filter itemsIF{{ $json.status === 'active' }}
ConcatenateSet{{ $json.first + ' ' + $json.last }}
Parse JSON stringCodeJSON.parse($json.rawBody)
Map arrayCodeitems.map(i => ({ json: { id: i.json.id } }))
AggregateCode[{ json: { total: items.reduce((s,i) => s + i.json.amount, 0) } }]

Code node template (JavaScript):

javascript
// Process all items
const results = [];
for (const item of $input.all()) {
  results.push({
    json: {
      id: item.json.id,
      processed: true,
      // Add transformed fields here
    }
  });
}
return results;

Step 5: Error Handling

Error handling strategy:

[Main Workflow]
  ├── [Error Trigger] → [Log to DB] → [Send Alert]
  └── [Individual nodes with retry]

Three layers of error handling:

LayerImplementationPurpose
Node retrySettings → Retry on Fail (max 3, wait 1s)Transient failures (network, rate limits)
Error TriggerError Trigger node → notification workflowCatch any unhandled errors
Dead letterOn error → write to DB/queue for later replayDon't lose failed items

Error Trigger workflow template:

Node 1: Error Trigger
  → Receives: error message, workflow name, node name, execution ID

Node 2: Set (format error)
  → Builds: { workflow, node, error, timestamp, executionUrl }

Node 3: Send alert (Slack / Email / PagerDuty)
  → Message: "Workflow '[name]' failed at node '[node]': [error]"

Node 4: Log to database (optional)
  → Insert error record for tracking and replay

Step 6: Testing & Deployment

Testing checklist:

  • Test with real-shaped data (not just { "test": true })
  • Test the error path (disable a downstream service and verify error handling fires)
  • Test with empty arrays and null values
  • Test with maximum expected payload size
  • Verify credentials are in n8n credential store (not hardcoded)
  • Check timezone settings on Schedule triggers

Production deployment:

  • Set workflow to Active
  • Verify webhook URLs are registered in source services
  • Enable execution logging (Settings → Save Execution Progress)
  • Set execution timeout appropriate for workload
  • Tag workflow with version number and description
  • Document the workflow in your team's runbook

Output Format

markdown
# n8n Workflow: [Workflow Name]

## Overview
- **Trigger:** [Trigger type and config]
- **Purpose:** [What this workflow automates]
- **Frequency:** [How often it runs]
- **Services connected:** [List of external services]

## Workflow Diagram
[ASCII diagram of node flow]

## Node Specifications
### Node 1: [Trigger]
[Config template from Step 3]

### Node 2: [Transform/Action]
[Config template from Step 3]

[...all nodes...]

## Data Transformations
[Key expressions from Step 4]

## Error Handling
[Strategy from Step 5]

## Testing Checklist
[From Step 6]

Completion

n8n Workflow Builder: Complete!

Workflow: [Name]
Trigger: [Type]
Nodes: [Count]
Services connected: [List]
Error handling: [Strategy summary]

Next steps:
1. Create the workflow in n8n using the node specs above
2. Configure credentials in n8n's credential store
3. Test with sample data before activating
4. Activate and verify the first real execution
5. Set up the Error Trigger workflow for monitoring

Level History

  • Lv.1: Base: Trigger selection (7 types), node mapping with specification templates, data transformation patterns (expressions + Code node), 3-layer error handling (retry, Error Trigger, dead letter), common workflow patterns (filter, batch, merge, deduplicate), testing checklist, production deployment checklist. (Origin: MemStack Pro v3.2, Mar 2026)

常见问题

Memstack Automation N8n Workflow Builder AI 技能有什么作用?

Use this skill when the user says 'n8n workflow', 'build a workflow', 'automation workflow', 'connect services', or needs visual workflow design with node mapping, data transformations, and error handling for n8n. Do NOT use for standalone webhook endpoints or cron jobs.

为什么在 TypingMind 中使用 Memstack Automation N8n Workflow Builder?

因为您只需安装一次,就能搭配任何模型使用。Memstack Automation N8n Workflow Builder 采用纯 Markdown 格式,而非特定提供商专用的代码,因此同一技能可用于 GPT-5、Claude、Gemini、Grok 或本地模型。您甚至可以在聊天中途切换模型,而不会影响技能的正常使用。TypingMind 使用您自己的 API 密钥,因此您直接向提供商付费,而不是按席位订阅;您的技能和聊天记录也都保留在您自己的存储空间中。

如何在 TypingMind 中安装 Memstack Automation N8n Workflow Builder?

在 TypingMind 中打开“插件 → 技能 → 从 GitHub 安装”,然后粘贴 https://github.com/cwinvestments/memstack/tree/master/skills/automation/n8n-workflow-builder。TypingMind 会读取其中的 SKILL.md,并将其安装为技能,供您在各个聊天中按需启用。

哪些 AI 模型可以使用 Memstack Automation N8n Workflow Builder?

您在 TypingMind 中连接的任何模型都可以。AI 技能采用纯 Markdown 指令,而非特定提供商专用的代码,因此 GPT、Claude、Gemini、Grok 和本地模型都能在请求匹配时加载此技能。

Memstack Automation N8n Workflow Builder 可以搭配多少个 AI 模型使用?

数量不限。只要模型支持技能,您就可以将它与 Memstack Automation N8n Workflow Builder 搭配使用。GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llama 等模型都可以通过您自己的 API 密钥接入 TypingMind。

Memstack Automation N8n Workflow Builder AI 技能免费吗?

是的。cwinvestments 已在 GitHub 上根据 MIT 许可证发布了该技能。您只需向自己的 AI 提供商支付所用 Token 的费用。

什么是 AI 技能?

AI 技能是一组可复用的指令,用于教会 AI 模型完成某项特定任务。它遵循开放的 Agent Skills 格式:包含名称和描述的 SKILL.md 文件,以及模型可能需要的脚本、模板或参考文件。模型仅在您的请求与技能匹配时才会读取这些指令,因此已安装的技能在使用前不会产生任何费用。

AI 技能与插件或 MCP 服务器有何不同?

插件或 MCP 服务器为模型提供可调用的新工具,也就是在某处运行并返回结果的代码。AI 技能则为模型提供知识和流程:如何处理任务、遵循哪些步骤,以及怎样的输出才算优质。技能采用纯 Markdown 格式,因此不需要服务器、API 密钥或运行时环境,并且适用于任何模型。

查看全部

立即创建您自己的 AI 工作区

订阅我们的电子简报,获取新功能和后续赠奖活动的通知 👇