Install
openclaw skills install n8n-1-0-2Manage 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.
openclaw skills install n8n-1-0-2Interact with n8n automation platform via REST API.
First-time setup:
cd skills/n8n-1.0.2
python3 -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt
~/.zshrc (or ~/.bashrc):export N8N_API_KEY="your-api-key-here"
export N8N_BASE_URL="https://your-n8n-instance.com"
source ~/.zshrc
./skills/n8n-1.0.2/scripts/n8n.sh list-workflows --pretty
Tip: Get your API key from n8n UI: Settings → API
./scripts/n8n.sh list-workflows --pretty
./scripts/n8n.sh list-workflows --active true --pretty
./scripts/n8n.sh get-workflow --id <workflow-id> --pretty
./scripts/n8n.sh activate --id <workflow-id>
./scripts/n8n.sh deactivate --id <workflow-id>
# 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
# Trigger workflow
./scripts/n8n.sh execute --id <workflow-id>
# With data
./scripts/n8n.sh execute --id <workflow-id> --data '{"key": "value"}'
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'})
For detailed API documentation, see references/api.md.
Authentication error:
echo $N8N_API_KEYConnection error:
Command errors:
--pretty flag for readable output--id is provided when required--data parameter