{
  "name": "Vulcani — Speed-to-Lead Responder (free)",
  "nodes": [
    {
      "parameters": {
        "content": "## Speed-to-Lead Responder  ·  free from vulcani.io\n\n**What it does:** any inbound lead (contact form, etc.) hits the webhook → Claude drafts a personalized reply → you get a ready-to-send Gmail draft. Big/urgent inquiries get flagged HIGH-VALUE.\n\n**Wire it (3 creds, ~3 min):**\n1. **Webhook** — copy the Production URL, point your site form at it (POST JSON: `name`, `email`, `message`).\n2. **Anthropic** — set the credential on the *Draft Reply (Claude)* node (Header Auth: name `x-api-key`, value = your key) or swap in the native Anthropic node.\n3. **Gmail** — set your Gmail OAuth credential on *Create Draft*.\n\nFlip *Create Draft* to *Send* once you trust it. Want it to auto-text instead? Swap the Gmail node for Twilio.\n\nMore packs → vulcani.io/automations",
        "height": 420,
        "width": 380,
        "color": 4
      },
      "id": "a1b2c3d4-0001-4000-8000-000000000001",
      "name": "README",
      "type": "n8n-nodes-base.stickyNote",
      "typeVersion": 1,
      "position": [-160, 80]
    },
    {
      "parameters": {
        "httpMethod": "POST",
        "path": "new-lead",
        "responseMode": "lastNode",
        "options": {}
      },
      "id": "a1b2c3d4-0002-4000-8000-000000000002",
      "name": "Inbound Lead",
      "type": "n8n-nodes-base.webhook",
      "typeVersion": 2,
      "position": [320, 300],
      "webhookId": "vulcani-speed-to-lead"
    },
    {
      "parameters": {
        "assignments": {
          "assignments": [
            {
              "id": "set-1",
              "name": "prompt",
              "value": "=You are the owner of a small service business replying to a new lead. Write a warm, concise, personalized reply (no more than 120 words) ready to send. If the message mentions urgency, large scope, catering, multiple units, or a deadline, begin the reply with the tag [HIGH-VALUE] on its own line.\n\nLead name: {{ $json.body.name || $json.name }}\nLead email: {{ $json.body.email || $json.email }}\nTheir message: {{ $json.body.message || $json.message }}",
              "type": "string"
            }
          ]
        },
        "options": {}
      },
      "id": "a1b2c3d4-0003-4000-8000-000000000003",
      "name": "Build Prompt",
      "type": "n8n-nodes-base.set",
      "typeVersion": 3.4,
      "position": [540, 300]
    },
    {
      "parameters": {
        "method": "POST",
        "url": "https://api.anthropic.com/v1/messages",
        "authentication": "genericCredentialType",
        "genericAuthType": "httpHeaderAuth",
        "sendHeaders": true,
        "headerParameters": {
          "parameters": [
            { "name": "anthropic-version", "value": "2023-06-01" },
            { "name": "content-type", "value": "application/json" }
          ]
        },
        "sendBody": true,
        "specifyBody": "json",
        "jsonBody": "={\n  \"model\": \"claude-sonnet-4-6\",\n  \"max_tokens\": 400,\n  \"messages\": [{ \"role\": \"user\", \"content\": {{ JSON.stringify($json.prompt) }} }]\n}",
        "options": {}
      },
      "id": "a1b2c3d4-0004-4000-8000-000000000004",
      "name": "Draft Reply (Claude)",
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 4.2,
      "position": [760, 300]
    },
    {
      "parameters": {
        "assignments": {
          "assignments": [
            {
              "id": "set-2",
              "name": "reply",
              "value": "={{ $json.content[0].text }}",
              "type": "string"
            },
            {
              "id": "set-3",
              "name": "to",
              "value": "={{ $('Inbound Lead').item.json.body.email || $('Inbound Lead').item.json.email }}",
              "type": "string"
            }
          ]
        },
        "options": {}
      },
      "id": "a1b2c3d4-0005-4000-8000-000000000005",
      "name": "Extract Reply",
      "type": "n8n-nodes-base.set",
      "typeVersion": 3.4,
      "position": [980, 300]
    },
    {
      "parameters": {
        "resource": "draft",
        "subject": "=Re: your inquiry",
        "emailType": "text",
        "message": "={{ $json.reply }}",
        "options": {
          "sendTo": "={{ $json.to }}"
        }
      },
      "id": "a1b2c3d4-0006-4000-8000-000000000006",
      "name": "Create Draft",
      "type": "n8n-nodes-base.gmail",
      "typeVersion": 2.1,
      "position": [1200, 300]
    }
  ],
  "connections": {
    "Inbound Lead": { "main": [[{ "node": "Build Prompt", "type": "main", "index": 0 }]] },
    "Build Prompt": { "main": [[{ "node": "Draft Reply (Claude)", "type": "main", "index": 0 }]] },
    "Draft Reply (Claude)": { "main": [[{ "node": "Extract Reply", "type": "main", "index": 0 }]] },
    "Extract Reply": { "main": [[{ "node": "Create Draft", "type": "main", "index": 0 }]] }
  },
  "settings": { "executionOrder": "v1" }
}
