返回顶部
n

n8n-hub

Centralized n8n hub for designing reliable flows (idempotency, retries, HITL) and operating them via the public REST API. Use for planning, JSON output, and lifecycle actions like list/publish/debug.

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 1.0.0
安全检测
已通过
2,335
下载量
3
收藏
概述
安装方式
版本历史

n8n-hub

# n8n Hub This skill merges two tracks: 1) **Design**: plan dependable workflows and optionally emit `workflow.json`. 2) **Operate**: handle workflows/executions via the public REST API. ## Availability - Public API access is disabled on free trial plans. - An upgraded plan is required to use the API. ## Configuration Suggested environment variables (or store in `.n8n-api-config`): ```bash export N8N_API_BASE_URL="https://your-instance.app.n8n.cloud/api/v1" # or http://localhost:5678/api/v1 export N8N_API_KEY="your-api-key-here" ``` Create an API key at: n8n Settings → n8n API → Create an API key. ## Use this skill when - You want a workflow built for idempotency, retries, logging, and review queues. - You need importable `workflow.json` plus a runbook template. - You want to list, publish, deactivate, or debug workflows/executions via API. ## Do not use when - You need pure code automation without n8n. - You want to bypass security controls or conceal audit trails. ## Inputs **Required** - Trigger type + schedule/timezone - Success criteria and destinations (email/Drive/DB) **Optional** - Existing workflow JSON - Sample payloads/records - Dedup keys ## Outputs - Default: design spec (nodes, data contracts, failure modes) - On request: `workflow.json` + `workflow-lab.md` (from `assets/workflow-lab.md`) ## Auth header All requests must include: ``` X-N8N-API-KEY: $N8N_API_KEY ``` ## Quick actions (API) ### Workflows: list ```bash curl -s -H "X-N8N-API-KEY: $N8N_API_KEY" "$N8N_API_BASE_URL/workflows" \ | jq '.data[] | {id, name, active}' ``` ### Workflows: details ```bash curl -s -H "X-N8N-API-KEY: $N8N_API_KEY" "$N8N_API_BASE_URL/workflows/{id}" ``` ### Workflows: activate or deactivate ```bash # Activate (publish) curl -s -X POST -H "X-N8N-API-KEY: $N8N_API_KEY" \ -H "Content-Type: application/json" \ -d '{"versionId":"","name":"","description":""}' \ "$N8N_API_BASE_URL/workflows/{id}/activate" # Deactivate curl -s -X POST -H "X-N8N-API-KEY: $N8N_API_KEY" \ "$N8N_API_BASE_URL/workflows/{id}/deactivate" ``` ### Webhook trigger ```bash curl -s -X POST "$N8N_API_BASE_URL/../webhook/{webhook-path}" \ -H "Content-Type: application/json" \ -d '{"key":"value"}' ``` ### Executions: list ```bash curl -s -H "X-N8N-API-KEY: $N8N_API_KEY" \ "$N8N_API_BASE_URL/executions?limit=10" \ | jq '.data[] | {id, workflowId, status, startedAt}' ``` ### Executions: retry ```bash curl -s -X POST -H "X-N8N-API-KEY: $N8N_API_KEY" \ -H "Content-Type: application/json" \ -d '{"loadWorkflow":true}' \ "$N8N_API_BASE_URL/executions/{id}/retry" ``` ## Design workflow checklist 1. Confirm trigger type and schedule/timezone. 2. Define inputs, outputs, and validation rules. 3. Choose dedup keys to keep runs idempotent. 4. Add observability (run_id, logs, status row). 5. Add retry policy and error branches. 6. Send failures to a review queue. 7. Add guardrails to prevent silent failure. ## Endpoint index See `assets/endpoints-api.md` for the complete endpoint list. ## Notes and tips - The API playground is available only on self-hosted n8n and uses real data. - The n8n API node can call the public API from within workflows. - Webhook URLs do not require the API key header. - Execution data can be pruned by retention settings.

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 n8n-hub-1776373400 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 n8n-hub-1776373400 技能

通过命令行安装

skillhub install n8n-hub-1776373400

下载 Zip 包

⬇ 下载 n8n-hub v1.0.0

文件大小: 4.51 KB | 发布时间: 2026-4-17 15:08

v1.0.0 最新 2026-4-17 15:08
Initial release: centralized n8n hub for reliable workflow design and API-based operations.

- Plan and generate idempotent n8n flows with retries, logging, and human-in-the-loop (HITL) patterns.
- Interact with workflows and executions via documented public REST API endpoints.
- Provides design specs, importable `workflow.json`, and `workflow-lab.md` runbook on request.
- Includes examples for workflow management (list, activate/deactivate, webhook, retry executions).
- Documents environment variable setup, required/optional inputs, outputs, and API authentication.
- Details eligibility (API disabled on free trials) and security limitations.

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部