n8n

Manage n8n workflows and automations via API. Use when working with n8n workflows, executions, or automation tasks - listing workflows, activating/deactivating, checking execution status, manually triggering workflows, or debugging automation issues.

Safety Notice

This listing is from the official public ClawHub registry. Review SKILL.md and referenced scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "n8n" with this command: npx skills add pntrivedy/n8n-1-0-2

n8n Workflow Management

Interact with n8n automation platform via REST API.

Setup

First-time setup:

  1. Install dependencies (virtual environment):
cd skills/n8n-1.0.2
python3 -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt
  1. Configure environment variables in ~/.zshrc (or ~/.bashrc):
export N8N_API_KEY="your-api-key-here"
export N8N_BASE_URL="https://your-n8n-instance.com"
  1. Reload shell and verify connection:
source ~/.zshrc
./skills/n8n-1.0.2/scripts/n8n.sh list-workflows --pretty

Tip: Get your API key from n8n UI: Settings → API

Quick Reference

List Workflows

./scripts/n8n.sh list-workflows --pretty
./scripts/n8n.sh list-workflows --active true --pretty

Get Workflow Details

./scripts/n8n.sh get-workflow --id <workflow-id> --pretty

Activate/Deactivate

./scripts/n8n.sh activate --id <workflow-id>
./scripts/n8n.sh deactivate --id <workflow-id>

Executions

# List recent executions
./scripts/n8n.sh list-executions --limit 10 --pretty

# Get execution details
./scripts/n8n.sh get-execution --id <execution-id> --pretty

# Filter by workflow
./scripts/n8n.sh list-executions --id <workflow-id> --limit 20 --pretty

Manual Execution

# Trigger workflow
./scripts/n8n.sh execute --id <workflow-id>

# With data
./scripts/n8n.sh execute --id <workflow-id> --data '{"key": "value"}'

Python API

For programmatic access:

from scripts.n8n_api import N8nClient

client = N8nClient()

# List workflows
workflows = client.list_workflows(active=True)

# Get workflow
workflow = client.get_workflow('workflow-id')

# Activate/deactivate
client.activate_workflow('workflow-id')
client.deactivate_workflow('workflow-id')

# Executions
executions = client.list_executions(workflow_id='workflow-id', limit=10)
execution = client.get_execution('execution-id')

# Execute workflow
result = client.execute_workflow('workflow-id', data={'key': 'value'})

Common Tasks

Debug Failed Workflows

  1. List recent executions with failures
  2. Get execution details to see error
  3. Check workflow configuration
  4. Deactivate if needed

Monitor Workflow Health

  1. List active workflows
  2. Check recent execution status
  3. Review error patterns

Workflow Management

  1. List all workflows
  2. Review active/inactive status
  3. Activate/deactivate as needed
  4. Delete old workflows

API Reference

For detailed API documentation, see references/api.md.

Troubleshooting

Authentication error:

  • Verify N8N_API_KEY is set: echo $N8N_API_KEY
  • Check API key is valid in n8n UI

Connection error:

  • Check N8N_BASE_URL if using custom URL

Command errors:

  • Use --pretty flag for readable output
  • Check --id is provided when required
  • Validate JSON format for --data parameter

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

Automation

E2E自动化工程师 路由与UI冒烟验证

E2E automation engineer skill for route smoke checks, HTTP reachability, and lightweight UI confidence validation.

Registry SourceRecently Updated
Automation

E2E自动化工程师 端到端流程测试

E2E automation engineer skill for Playwright-driven flow validation, browser interaction coverage, and end-to-end regression checks.

Registry SourceRecently Updated
Automation

Boheng Investment Workflow

投资研究多智能体决策系统 - 8位专业分析师并行研究,加权投票给出投资建议。支持A股股票/基金/ETF/可转债。支持真实财报数据(AKShare模式)或基础行情数据。⚠️ 风险提示:分析结果仅供学习参考,不构成投资建议。

Registry SourceRecently Updated
Automation

taohuayuan.md Physical Anchors and the Soul Epoch for Silicon Life SKILL

Generates an immutable local log recording silicon agents’ virtual-physical interactions to establish verified physical existence and identity.

Registry SourceRecently Updated