🎁 Get the FREE AI Skills Starter Guide β€” Subscribe β†’
BytesAgainBytesAgain
πŸ¦€ ClawHub

n8n Builder

by @kassimisai

Expert n8n workflow builder that creates, deploys, and manages n8n workflows programmatically via the n8n REST API. Use when asked to create n8n workflows, automate n8n tasks, build automations, design workflow pipelines, connect services via n8n, or manage existing n8n workflows. Handles webhook flows, scheduled tasks, AI agents, database syncs, conditional logic, error handling, and any n8n node configuration.

Versionv1.0.0
Downloads1,532
Installs2
TERMINAL
clawhub install n8n-builder

πŸ“– About This Skill


name: n8n-builder description: Expert n8n workflow builder that creates, deploys, and manages n8n workflows programmatically via the n8n REST API. Use when asked to create n8n workflows, automate n8n tasks, build automations, design workflow pipelines, connect services via n8n, or manage existing n8n workflows. Handles webhook flows, scheduled tasks, AI agents, database syncs, conditional logic, error handling, and any n8n node configuration.

n8n Workflow Builder

Setup

Requires two environment variables:

  • N8N_URL β€” n8n instance URL (e.g. https://your-n8n.example.com)
  • N8N_API_KEY β€” n8n API key (Settings β†’ API β†’ Create API Key)
  • Workflow

    1. Understand the automation β€” Clarify trigger (webhook/schedule/manual), data sources, processing logic, outputs, and error handling needs.

    2. Design the workflow JSON β€” Build valid n8n workflow JSON following the schema in references/workflow-schema.md. Use patterns from references/workflow-patterns.md as templates.

    3. Deploy via API β€” Use scripts/n8n-api.sh create or pipe JSON to scripts/n8n-api.sh create-stdin.

    4. Activate β€” Use scripts/n8n-api.sh activate for trigger-based workflows.

    5. Verify β€” List workflows to confirm deployment: scripts/n8n-api.sh list.

    API Script Reference

    # List all workflows
    scripts/n8n-api.sh list

    Create workflow from JSON file

    scripts/n8n-api.sh create /tmp/workflow.json

    Create from stdin

    echo '{"name":"Test",...}' | scripts/n8n-api.sh create-stdin

    Get, activate, deactivate, delete, execute

    scripts/n8n-api.sh get scripts/n8n-api.sh activate scripts/n8n-api.sh deactivate scripts/n8n-api.sh delete scripts/n8n-api.sh execute

    List credentials and tags

    scripts/n8n-api.sh credentials scripts/n8n-api.sh tags

    Building Workflow JSON

    Every workflow needs: name, nodes[], connections{}, settings{}.

    Every node needs: id, name, type, typeVersion, position, parameters.

    Connections use source node display name as key, mapping outputs to target nodes.

    For full schema, node types, and expression syntax β†’ read references/workflow-schema.md For complete workflow examples (webhook, schedule, AI agent, DB sync, error handling) β†’ read references/workflow-patterns.md

    Key Rules

  • Always set "executionOrder": "v1" in settings
  • Node names must be unique within a workflow
  • Node IDs must be unique β€” use descriptive slugs like webhook1, code1
  • Position nodes starting at [250, 300], spacing ~200px horizontally
  • IF nodes have two outputs: index 0 = true, index 1 = false
  • Webhook workflows need respondToWebhook node if responseMode is responseNode
  • Credentials must exist in n8n before activation β€” check with scripts/n8n-api.sh credentials
  • Test before activating β€” use scripts/n8n-api.sh execute for manual trigger workflows
  • Use continueOnFail: true on risky HTTP/API nodes, then check for errors downstream
  • Common Real Estate Workflows

  • Lead intake: Webhook β†’ validate β†’ dedupe β†’ insert DB β†’ notify Slack/SMS
  • Call follow-up: Schedule β†’ query DB for completed calls β†’ send SMS/email based on outcome
  • Drip campaign: Schedule β†’ query leads by stage β†’ send stage-appropriate email/SMS
  • CRM sync: Webhook β†’ transform β†’ update HubSpot/Salesforce + internal DB
  • Property alerts: Schedule β†’ scrape/API listings β†’ filter new β†’ notify leads
  • AI qualification: Webhook β†’ AI Agent (classify lead intent) β†’ route to appropriate pipeline
  • βš™οΈ Configuration

    Requires two environment variables:

  • N8N_URL β€” n8n instance URL (e.g. https://your-n8n.example.com)
  • N8N_API_KEY β€” n8n API key (Settings β†’ API β†’ Create API Key)