DILOmcfly

n8n Automation

AI 智能体v0.1.0
作者:DILOmcfly更新于 2026-05-11n8n-automation@clawhub_dilomcfly/n8n-automation
任务自动化工作流编排#N8n#Rest Api#Debug

据 AlphaMoat 统计,截至 2026-10,n8n Automation 累计下载 9,176 次、获 9 个星标,按累计下载量在本次参与排名的 10,914 个 AI 技能中排名第 3,011 位,在「AI 智能体」分类(1,632 个)中排名第 397 位。

列表默认按累计下载量排序,也可按星标排序;详情页排名按累计下载量计算。

累计下载
9,176
星标
9
全站下载量排名
#3,011
全站前 28% · 「AI 智能体」前 25%
平台累计下载星标评论
ClawHub ↗7,1419-
SkillHub ↗9,1769—

各平台的计数口径不同,统计时间不一致。

这个技能是做什么的

可以列出、创建、启用与触发 n8n 工作流,也能查看执行记录来定位失败。排查按固定顺序走:先列失败执行拿到 ID,再取执行详情找到出错节点,最后看该节点的参数与输入数据。工作流 JSON 也能解析出触发方式、节点数量与所连应用。 创建、启用或触发工作流可能影响线上自动化。调用生产 webhook,或执行删除、停用、转移、凭据变更等管理操作前先确认;尽可能使用权限受限的 API key。

资料发布于 2026-10-27

可以用来做什么

  • 找出最近失败的那次执行卡在哪个节点
  • 把一条工作流的触发方式与节点梳理清楚

什么时候用

  • 自动化突然不跑、需要定位原因时
  • 要批量启用或触发工作流时

示例提示词

以下是根据技能文档生成的示例,不代表实际运行结果。

看看最近失败的执行,问题出在哪个节点
这条工作流是怎么触发的、连了哪些应用

月度数据趋势

累计下载9,176
4,8217,1609,4992026-03 · 累计下载 5,1442026-05 · 累计下载 6,0342026-07 · 累计下载 6,6192026-08 · 累计下载 6,8052026-09 · 累计下载 7,2462026-10 · 累计下载 9,17626-0326-0926-10
星标9
89102026-03 · 星标 92026-05 · 星标 92026-07 · 星标 92026-08 · 星标 92026-09 · 星标 92026-10 · 星标 926-0326-0926-10

2026-09 起统计方法调整:同名技能按作者分别统计,并覆盖全部技能。图中虚线为调整前的月份,与之后的数据不直接比较,也不计算跨越调整的增长。

月份累计下载环比星标
2026-109,176—9
2026-097,246—9
2026-086,805+2.8%9
2026-076,619—9
2026-056,034—9
2026-035,144—9

SKILL.md 原文

以下是作者发布的原始文件,按纯文本显示,本站未做修改或审核;其中的链接不可点击,命令请核实后再运行。抓取于 2026-10-23。

3.7 KB · ClawHub v0.1.0
---
name: n8n-automation
description: Manage n8n workflows from OpenClaw via the n8n REST API. Use when the user asks about n8n workflows, automations, executions, or wants to trigger, list, create, activate, or debug n8n workflows. Supports both self-hosted n8n and n8n Cloud instances.
---

# n8n Automation

Control n8n workflow automation platform via REST API.

## Setup
展开全部(共 123 行)

Set these environment variables (or store in `.n8n-api-config`):

```bash
export N8N_API_URL="https://your-instance.app.n8n.cloud/api/v1"  # or http://localhost:5678/api/v1
export N8N_API_KEY="your-api-key-here"
```

Generate API key: n8n Settings → n8n API → Create an API key.

## Quick Reference

All calls use header `X-N8N-API-KEY` for auth.

### List Workflows
```bash
curl -s -H "X-N8N-API-KEY: $N8N_API_KEY" "$N8N_API_URL/workflows" | jq '.data[] | {id, name, active}'
```

### Get Workflow Details
```bash
curl -s -H "X-N8N-API-KEY: $N8N_API_KEY" "$N8N_API_URL/workflows/{id}"
```

### Activate/Deactivate Workflow
```bash
# Activate
curl -s -X PATCH -H "X-N8N-API-KEY: $N8N_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"active": true}' "$N8N_API_URL/workflows/{id}"

# Deactivate
curl -s -X PATCH -H "X-N8N-API-KEY: $N8N_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"active": false}' "$N8N_API_URL/workflows/{id}"
```

### Trigger Workflow (via webhook)
```bash
# Production webhook
curl -s -X POST "$N8N_API_URL/../webhook/{webhook-path}" \
  -H "Content-Type: application/json" \
  -d '{"key": "value"}'

# Test webhook
curl -s -X POST "$N8N_API_URL/../webhook-test/{webhook-path}" \
  -H "Content-Type: application/json" \
  -d '{"key": "value"}'
```

### List Executions
```bash
# All recent executions
curl -s -H "X-N8N-API-KEY: $N8N_API_KEY" "$N8N_API_URL/executions?limit=10" | jq '.data[] | {id, workflowId, status, startedAt}'

# Failed executions only
curl -s -H "X-N8N-API-KEY: $N8N_API_KEY" "$N8N_API_URL/executions?status=error&limit=5"

# Executions for specific workflow
curl -s -H "X-N8N-API-KEY: $N8N_API_KEY" "$N8N_API_URL/executions?workflowId={id}&limit=10"
```

### Get Execution Details
```bash
curl -s -H "X-N8N-API-KEY: $N8N_API_KEY" "$N8N_API_URL/executions/{id}"
```

### Create Workflow (from JSON)
```bash
curl -s -X POST -H "X-N8N-API-KEY: $N8N_API_KEY" \
  -H "Content-Type: application/json" \
  -d @workflow.json "$N8N_API_URL/workflows"
```

### Delete Workflow
```bash
curl -s -X DELETE -H "X-N8N-API-KEY: $N8N_API_KEY" "$N8N_API_URL/workflows/{id}"
```

## Common Patterns

### Health Check (run periodically)
List active workflows, check recent executions for errors, report status:
```bash
# Count active workflows
ACTIVE=$(curl -s -H "X-N8N-API-KEY: $N8N_API_KEY" "$N8N_API_URL/workflows?active=true" | jq '.data | length')

# Count failed executions (last 24h)
FAILED=$(curl -s -H "X-N8N-API-KEY: $N8N_API_KEY" "$N8N_API_URL/executions?status=error&limit=100" | jq '[.data[] | select(.startedAt > (now - 86400 | todate))] | length')

echo "Active workflows: $ACTIVE | Failed (24h): $FAILED"
```

### Debug Failed Execution
1. List failed executions → get execution ID
2. Fetch execution details → find the failing node
3. Check node parameters and input data
4. Suggest fix based on error message

### Workflow Summary
Parse workflow JSON to summarize: trigger type, node count, apps connected, schedule.

## API Endpoints Reference

See [references/api-endpoints.md](references/api-endpoints.md) for complete endpoint documentation.

## Tips
- API key has full access on non-enterprise plans
- Rate limits vary by plan (cloud) or are unlimited (self-hosted)
- Webhook URLs are separate from API URLs (no auth header needed)
- Use `?active=true` or `?active=false` to filter workflow listings
- Execution data may be pruned based on n8n retention settings

「AI 智能体」分类下的热门技能

数据月份:2026-10 · 下载/星标数聚合自公开技能注册库(ClawHub、SkillHub),按月更新。口径说明见数据方法。