Token导航 LogoToken导航TokenDH.com
研究检索敏感数据clawhub未标认证来源可访问clear审计通过

n8n-autopilotN8N 自动驾驶仪

Agent Skill

n8n-autopilot 用于查找、检索和筛选相关信息,适合在 OpenClaw 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

7,543

周安装

324

GitHub Stars

公开资料未说明

下载量

2,644
OpenClaw

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

MIT-0

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:n8n-autopilot(N8N 自动驾驶仪)
来源仓库:https://github.com/drfirass/n8n-autopilot
安装命令:
openclaw skills install n8n-autopilot
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 OpenClaw 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

ClawHubOpenClaw
openclaw skills install n8n-autopilot

简介

n8n-autopilot 由 AI 驱动,自动生成并验证 n8n 工作流程 JSON。

  • 支持结构检查与逻辑验证,提升部署可靠性。
  • 适用于快速原型开发与复杂流程搭建。
  • 输出结果需经人工审核后方可上线运行。
  • 建议保留版本历史以便回溯与调试。n8n-autopilot 属于研究检索类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

name
n8n-autopilot
description
>
Covers
workflow generation, structural validation, auto-deployment,
LinkedIn
https://www.linkedin.com/in/doctor-firass/
metadata
{"openclaw":{"emoji":"🚀","requires":{"env":["N8N_API_KEY","N8N_BASE_URL"]},"primaryEnv":"N8N_API_KEY"}}

n8n Autopilot — AI Workflow Builder & Deployer

By Dr. FIRASLinkedIn

Build complete n8n workflows from natural language, validate them, and deploy them to your n8n instance — all in one step. No placeholders, no TODOs, no manual assembly required.


Golden Rules

ALWAYS:

  1. Generate every node with real, configured parameters (URLs, paths, expressions)
  2. Wire all connections explicitly in the connections object
  3. Include exactly one trigger node per workflow
  4. Assign node positions for a clean canvas layout (~200 px spacing)
  5. Validate the workflow before presenting it to the user
  6. Offer to deploy automatically when N8N_API_KEY is configured

NEVER:

  • Output placeholder nodes ("configure this later", "add your logic here")
  • Leave url, path, or jsCode fields empty
  • Create disconnected nodes
  • Present partial flows expecting manual completion

Setup

Two environment variables are needed:

VariableWhere to find it
N8N_API_KEYn8n UI → Settings → API → Create API Key
N8N_BASE_URLYour instance URL, e.g. https://n8n.example.com

Set them via OpenClaw settings (~/.config/openclaw/settings.json):

{
  "skills": {
    "n8n-autopilot": {
      "env": {
        "N8N_API_KEY": "your-key",
        "N8N_BASE_URL": "https://your-n8n.example.com"
      }
    }
  }
}

Verify connectivity:

python3 scripts/n8n_deploy.py ping

Workflow Generation Pipeline

Follow these steps for every workflow request:

Step 1 — Understand the intent

Determine four things before writing JSON:

  • Trigger: webhook, schedule, manual, or external event?
  • Data source: webhook body, API, database, file?
  • Processing: transforms, conditionals, enrichment?
  • Output: API call, notification, database write, webhook response?

If the request is clear, skip to generation. Do not over-ask.

Step 2 — Plan the node chain

Map the flow mentally:

Trigger → [Ingest] → [Transform] → [Branch?] → [Act] → [Respond/Store]

Step 3 — Generate the JSON

Use the WorkflowForge builder (see scripts/workflow_forge.py) or write raw JSON. Output a single valid JSON object ready for n8n's "Import from JSON".

Step 4 — Self-validate

Run through the validation checklist below. Fix every issue before showing the user. You can also call:

python3 scripts/workflow_inspector.py check --file workflow.json

Step 5 — Deploy (if API is configured)

python3 scripts/n8n_deploy.py push --file workflow.json
python3 scripts/n8n_deploy.py push --file workflow.json --activate

Step 6 — Explain

Provide a brief node-by-node table and import/credential instructions.


JSON Skeleton

{
  "name": "Descriptive Workflow Name",
  "nodes": [],
  "connections": {},
  "active": false,
  "settings": { "executionOrder": "v1" }
}

Node structure

{
  "id": "unique-uuid-v4",
  "name": "Human Readable Name",
  "type": "n8n-nodes-base.httpRequest",
  "typeVersion": 4,
  "position": [500, 300],
  "parameters": { ... },
  "credentials": { "httpHeaderAuth": { "id": "1", "name": "My Auth" } }
}

Connection structure

{
  "connections": {
    "Source Node Name": {
      "main": [
        [{ "node": "Target Node Name", "type": "main", "index": 0 }]
      ]
    }
  }
}
  • Keys = node names (not IDs)
  • main = array of arrays (outer = output index, inner = targets)
  • IF nodes: index 0 = true, index 1 = false
  • Terminal nodes must NOT appear as keys

Node Catalog (Quick Ref)

Triggers

TypeVerPurpose
n8n-nodes-base.manualTrigger1Testing / manual runs
n8n-nodes-base.webhook2HTTP webhook receiver
n8n-nodes-base.scheduleTrigger1Cron / interval

Logic & Transform

TypeVerPurpose
n8n-nodes-base.code2JavaScript / Python
n8n-nodes-base.set3Map / rename / add fields
n8n-nodes-base.if2Conditional branch
n8n-nodes-base.switch3Multi-way routing
n8n-nodes-base.merge3Combine streams
n8n-nodes-base.splitInBatches3Loop / batch
n8n-nodes-base.noOp1No-op terminus

HTTP & Response

TypeVerPurpose
n8n-nodes-base.httpRequest4Any REST call
n8n-nodes-base.respondToWebhook1Webhook reply

Popular Integrations

TypeVerPurpose
n8n-nodes-base.slack2Slack messages
n8n-nodes-base.gmail2Gmail
n8n-nodes-base.googleSheets4Google Sheets
n8n-nodes-base.notion2Notion
n8n-nodes-base.postgres2PostgreSQL
n8n-nodes-base.telegram2Telegram

AI / LLM

TypeVerPurpose
@n8n/n8n-nodes-langchain.openAi1OpenAI completions
@n8n/n8n-nodes-langchain.lmChatOpenAi1OpenAI chat model

For full credential mapping, see references/node-catalog.md.


Expression Cheat Sheet

PatternMeaning
={{ $json.field }}Current item field
={{ $json["field-name"] }}Hyphenated field
={{ $node["Name"].json.field }}Upstream node field
={{ $input.all() }}All items (Code node)
={{ $input.first().json.f }}First item field
={{ $now.toISO() }}Current ISO timestamp
={{ $vars.MY_VAR }}Environment variable

Validation Checklist

Before outputting any workflow, verify:

Structure:

  • [ ] nodes array exists and is non-empty
  • [ ] connections covers every non-terminal node
  • [ ] Every node has id, name, type, typeVersion, position, parameters

Integrity:

  • [ ] Exactly one trigger node
  • [ ] Node names are unique
  • [ ] Node IDs are unique UUIDs
  • [ ] No required parameter is empty (url, path, jsCode)

Graph:

  • [ ] Every connection target matches a real node name
  • [ ] IF/Switch nodes define all expected output branches
  • [ ] No unreachable (disconnected) nodes
  • [ ] No cycles in the execution graph

Credentials:

  • [ ] Nodes that need auth include a credentials block
  • [ ] Credential type names are correct for their node

Expressions:

  • [ ] ={{ ... }} references point to fields that upstream nodes produce

CLI Reference

Deployment (n8n_deploy.py)

# Connectivity check
python3 scripts/n8n_deploy.py ping

# List workflows
python3 scripts/n8n_deploy.py ls [--active]

# Push (create) a workflow
python3 scripts/n8n_deploy.py push --file workflow.json [--activate]

# Inspect a deployed workflow
python3 scripts/n8n_deploy.py inspect --id <wf-id>

# Activate / deactivate
python3 scripts/n8n_deploy.py on --id <wf-id>
python3 scripts/n8n_deploy.py off --id <wf-id>

# Trigger manual execution
python3 scripts/n8n_deploy.py run --id <wf-id> [--payload '{"key":"val"}']

# View recent executions
python3 scripts/n8n_deploy.py history --id <wf-id> [--limit 10]

# Execution details
python3 scripts/n8n_deploy.py exec-detail --id <exec-id>

# Execution statistics
python3 scripts/n8n_deploy.py stats --id <wf-id> [--days 7]

# Delete workflow
python3 scripts/n8n_deploy.py rm --id <wf-id>

Validation & Diagnostics (workflow_inspector.py)

# Validate a local file
python3 scripts/workflow_inspector.py check --file workflow.json

# Validate a deployed workflow
python3 scripts/workflow_inspector.py check --id <wf-id>

# Full diagnostic report (structure + performance)
python3 scripts/workflow_inspector.py diagnose --id <wf-id> [--days 14]

# Optimization suggestions only
python3 scripts/workflow_inspector.py optimize --id <wf-id>

Programmatic Builder (workflow_forge.py)

# Build from a recipe YAML and deploy
python3 scripts/workflow_forge.py build --recipe recipe.yaml --deploy

# Export as JSON
python3 scripts/workflow_forge.py build --recipe recipe.yaml --output wf.json

Optimization Heuristics

Apply when generating workflows:

  1. Fan-out over chaining: independent API calls should branch in parallel,

not run sequentially.

  1. Batch large datasets: use splitInBatches instead of Code-node loops.
  2. Error paths: add an Error Trigger or IF-based error branch for

workflows with external API calls.

  1. Timeouts: set executionTimeout in settings for long-running flows.
  2. Avoid duplicate fetches: fetch once, reshape with Set/Code.
  3. Split at 15 nodes: suggest sub-workflows via Execute Workflow node.

Output Formatting

Every workflow response must include:

  1. A one-sentence summary of the workflow's purpose
  2. The complete JSON in a fenced code block
  3. A node explanation table:
#NodeTypeWhat it does
1Webhook TriggerwebhookReceives POST requests
2Parse InputsetExtracts email and name
  1. Import instructions: "Open n8n → Workflows → Import from JSON → paste"
  2. Credentials the user must configure post-import
  3. (If API is configured) an offer to auto-deploy

Common Flow Patterns

Webhook → Transform → Respond

Webhook → Set (extract) → Code (transform) → Respond to Webhook

Schedule → Fetch → Store

Schedule → HTTP Request (fetch) → Code (process) → Google Sheets (append)

Webhook → Branch → Multi-action

Webhook → IF →  true: Slack notify  → NoOp
              false: Email alert   → NoOp

Polling with error handling

Schedule → HTTP Request → IF (ok?) →  true: Process → Store
                                    false: Slack error alert

File Layout

n8n-autopilot/
├── SKILL.md                     # This file
├── README.md                    # Project overview
├── scripts/
│   ├── n8n_deploy.py           # API client + deployment CLI
│   ├── workflow_forge.py       # Programmatic workflow builder
│   └── workflow_inspector.py   # Validation + diagnostics
└── references/
    └── node-catalog.md         # Node types & credential mapping

Troubleshooting

SymptomFix
N8N_API_KEY not setExport the variable or add to OpenClaw settings
HTTP 401 UnauthorizedRegenerate API key in n8n Settings → API
Connection refusedCheck N8N_BASE_URL — include protocol and port
Validation: cycle detectedBreak circular connections; use sub-workflows
Execution timeoutAdd executionTimeout in settings; optimize slow nodes
Rate limit (429)Insert Wait nodes; use batch processing

适合场景

01

OpenClaw 用户查找和安装 Skill 时

02

用户想查找某类 Agent Skill 时

03

需要根据任务场景推荐可安装能力包时

04

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

OpenClaw

77.52%
按下载量换算2,050

安全审计

VirusTotal

通过

ClawScan

通过

Static analysis

通过

权限和风险

敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills