A powerful OpenClaw skill for programmatically building and managing n8n workflows.
Ask any OpenClaw agent:
"Install n8n-workflow-builder-skill following the guide at: https://github.com/AdamBear/n8n-workflow-builder-skill"
The agent will handle the complete installation automatically.
- 🔍 Search Nodes - Find available n8n nodes by keyword
- 🔧 Manage Workflows - Create, update, list, delete, execute workflows
- ✅ Validate Configs - Test node configurations before deployment
- 📦 Deploy Templates - Search and deploy n8n community templates
- 🎯 Full CLI - Command-line access for all n8n operations
- n8n instance running (local or remote)
- n8n API key
- Node.js 18+
- OpenClaw with skill support
- Open n8n UI → http://localhost:5678
- Go to Settings → API
- Click Create API Key
- Copy the key
User: Search for webhook nodes
Agent: [Searches and finds n8n-nodes-base.webhook]
User: Create a workflow that receives a webhook and sends to Slack
Agent: [Builds and deploys the complete workflow]
cd /root/.openclaw/skills/n8n-workflow-builder/scripts
# Set environment
export N8N_API_URL=http://localhost:5678
export N8N_API_KEY=your-api-key
# List workflows
npx tsx main.ts --action list
# Search nodes
npx tsx main.ts --action search --query "slack"
# Get node details
npx tsx main.ts --action get-node --node-type "n8n-nodes-base.slack"
# Create workflow
npx tsx main.ts --action create --file workflow.json- QUICK_REF.md - Installation quick reference for nodes
- references/installation-guide.md - Detailed installation guide
- references/node-config.md - Common node configurations
- references/workflow-patterns.md - Workflow patterns and examples
- references/expression-syntax.md - n8n expression syntax guide
If automatic installation fails, follow these steps:
# 1. Clone this repository
git clone https://github.com/AdamBear/n8n-workflow-builder-skill.git \
/root/.openclaw/skills/n8n-workflow-builder
# 2. Install dependencies
cd /root/.openclaw/skills/n8n-workflow-builder/scripts
npm install
# 3. Configure n8n API
cat > .env.n8n << 'EOF'
N8N_API_URL=http://localhost:5678
N8N_API_KEY=your-api-key-here
EOF
# 4. Verify installation
./verify-install.shn8n-workflow-builder-skill/
├── README.md # This file
├── SKILL.md # OpenClaw skill definition
├── QUICK_REF.md # Quick reference card
├── INSTALLATION_LOG.md # Installation record
├── scripts/
│ ├── main.ts # CLI entry point
│ ├── n8n-client.ts # n8n API client
│ ├── node-search.ts # Node search functionality
│ ├── workflow-manager.ts # Workflow CRUD operations
│ ├── workflow-validator.ts # Config validation
│ ├── package.json # Dependencies
│ ├── .env.n8n # n8n API config (create this)
│ ├── verify-install.sh # Installation verification
│ └── node_modules/ # npm dependencies (installed)
└── references/
├── installation-guide.md # Detailed installation steps
├── node-config.md # Node configuration examples
├── workflow-patterns.md # Common workflow patterns
└── expression-syntax.md # n8n expression reference
# Search for nodes
npx tsx main.ts --action search --query "webhook"
npx tsx main.ts --action search --query "slack"
# Validate configurations
npx tsx main.ts --action get-node --node-type "n8n-nodes-base.webhook"
npx tsx main.ts --action get-node --node-type "n8n-nodes-base.slack"
# Create workflow definition
cat > workflow.json << 'EOF'
{
"name": "Webhook to Slack",
"nodes": [
...
]
}
EOF
# Deploy workflow
npx tsx main.ts --action create --file workflow.json# Search for schedule and email nodes
npx tsx main.ts --action search --query "schedule"
npx tsx main.ts --action search --query "email"
# Get details and validate
npx tsx main.ts --action get-node --node-type "n8n-nodes-base.schedule"
npx tsx main.ts --action get-node --node-type "n8n-nodes-base.emailSend".env.n8ncontains sensitive API key - never commit to Git- Add
.env.n8nto.gitignore - Use read-only API keys when possible
- Rotate API keys regularly
cd /root/.openclaw/skills/n8n-workflow-builder/scripts
npm install- Check n8n is running:
curl http://localhost:5678/healthz - Verify
N8N_API_URLin.env.n8n - Confirm API key is valid (regenerate if needed)
- Check firewall rules between OpenClaw and n8n
- Ensure Node.js 18+ is installed
- Try with
--force:npm install --force - Clear cache:
npm cache clean --force
Contributions welcome! Please:
- Fork this repository
- Create a feature branch
- Make your changes
- Submit a pull request
MIT License - feel free to use in your projects.
- Open an issue on GitHub
- Check the documentation files
- Visit n8n community forums
Made with ❤️ for OpenClaw users
Install this skill and start automating n8n workflows like a pro!