{
  "name": "Okroh · Day 01 · Summit Lead Router (Speed-to-Lead)",
  "nodes": [
    {
      "parameters": {
        "content": "## 🏔️ Okroh — Day 1: The Lead Router\n\n**What this does:** the moment a lead fills out Summit Heating & Air's form, the owner's phone buzzes in Slack with a prioritized lead card, the customer gets an instant confirmation email, and everything is logged. Five seconds, every time, forever.\n\n**Why it matters:** call a lead within 5 minutes and you're ~21× more likely to qualify them than waiting 30 (InsideSales.com Lead Response study).\n\n**This is Day 1 of 30.** One real build every day — full walkthrough on the Okroh YouTube channel.",
        "height": 340,
        "width": 400,
        "color": 4
      },
      "id": "ok-d1-sticky-intro",
      "name": "Sticky Note — About",
      "type": "n8n-nodes-base.stickyNote",
      "typeVersion": 1,
      "position": [-780, -180]
    },
    {
      "parameters": {
        "content": "## ⚙️ SETUP (2 credentials, ~5 min)\n\n1. **Google OAuth** — one credential covers both the Gmail and Google Sheets nodes. Create it on either node; select it on both.\n2. **Slack** — create a Slack app, add `chat:write` scope, install to your workspace, paste the Bot token. Create a **#leads** channel and invite the bot.\n3. In both Slack nodes, replace `@mike` with your own @mention.\n4. Make a Google Sheet with headers: `name, email, phone, service, timing, message, emailDomain, isBusinessEmail, priority, receivedAt` — then pick it in the Sheets node.\n5. Run once with the **Test URL**, then activate and switch your website to the **Production URL**.",
        "height": 380,
        "width": 400,
        "color": 7
      },
      "id": "ok-d1-sticky-setup",
      "name": "Sticky Note — Setup",
      "type": "n8n-nodes-base.stickyNote",
      "typeVersion": 1,
      "position": [-780, 200]
    },
    {
      "parameters": {
        "content": "## 🧳 The mental model\n\nEvery item is a **suitcase** on a conveyor belt. The JSON is the **packing list** taped on top. Every node is a **baggage handler**: opens it, does one job, sends it down the belt.\n\nIf a node ever errors, read the packing list — 9 times out of 10 a handler is looking for a label that got renamed upstream (`Email` vs `email`). Day 4 of the series is entirely about this.",
        "height": 260,
        "width": 360,
        "color": 5
      },
      "id": "ok-d1-sticky-model",
      "name": "Sticky Note — Mental Model",
      "type": "n8n-nodes-base.stickyNote",
      "typeVersion": 1,
      "position": [-160, -260]
    },
    {
      "parameters": {
        "content": "## 🎯 Your challenge\n\nRebuild this for a **different business** — dentist, landscaper, gym, whatever. Change the form fields, the priority rule, and the confirmation copy. Tell me in the comments which one you picked.\n\nTomorrow (Day 2): connect n8n to apps that have **no integration at all**.",
        "height": 240,
        "width": 340,
        "color": 6
      },
      "id": "ok-d1-sticky-challenge",
      "name": "Sticky Note — Challenge",
      "type": "n8n-nodes-base.stickyNote",
      "typeVersion": 1,
      "position": [1180, -260]
    },
    {
      "parameters": {
        "formTitle": "Summit Heating & Air — Request Service",
        "formDescription": "Tell us what's going on. A Summit tech will call you back fast — usually within the hour.",
        "formFields": {
          "values": [
            {
              "fieldLabel": "Name",
              "requiredField": true
            },
            {
              "fieldLabel": "Email",
              "fieldType": "email",
              "requiredField": true
            },
            {
              "fieldLabel": "Phone",
              "requiredField": true
            },
            {
              "fieldLabel": "Service Needed",
              "fieldType": "dropdown",
              "fieldOptions": {
                "values": [
                  { "option": "Emergency repair" },
                  { "option": "Repair" },
                  { "option": "New install" },
                  { "option": "Maintenance" }
                ]
              },
              "requiredField": true
            },
            {
              "fieldLabel": "Preferred timing"
            },
            {
              "fieldLabel": "Message",
              "fieldType": "textarea"
            }
          ]
        },
        "options": {}
      },
      "id": "ok-d1-form-trigger",
      "name": "New Lead Form",
      "type": "n8n-nodes-base.formTrigger",
      "typeVersion": 2.2,
      "position": [-560, 60],
      "webhookId": "summit-lead-form-day1"
    },
    {
      "parameters": {
        "mode": "manual",
        "includeOtherFields": false,
        "assignments": {
          "assignments": [
            {
              "id": "a1-name",
              "name": "name",
              "type": "string",
              "value": "={{ ($json.Name || '').trim() }}"
            },
            {
              "id": "a2-email",
              "name": "email",
              "type": "string",
              "value": "={{ ($json.Email || '').trim().toLowerCase() }}"
            },
            {
              "id": "a3-phone",
              "name": "phone",
              "type": "string",
              "value": "={{ $json.Phone }}"
            },
            {
              "id": "a4-service",
              "name": "service",
              "type": "string",
              "value": "={{ $json['Service Needed'] }}"
            },
            {
              "id": "a5-timing",
              "name": "timing",
              "type": "string",
              "value": "={{ $json['Preferred timing'] || 'not specified' }}"
            },
            {
              "id": "a6-message",
              "name": "message",
              "type": "string",
              "value": "={{ $json.Message || '' }}"
            },
            {
              "id": "a7-receivedat",
              "name": "receivedAt",
              "type": "string",
              "value": "={{ $now.toISO() }}"
            }
          ]
        },
        "options": {}
      },
      "id": "ok-d1-clean",
      "name": "Clean & Stamp",
      "type": "n8n-nodes-base.set",
      "typeVersion": 3.4,
      "position": [-340, 60]
    },
    {
      "parameters": {
        "jsCode": "// Six lines that make Mike look psychic.\n// A business-domain email usually means a bigger job than a gmail address.\nconst free = ['gmail.com', 'yahoo.com', 'outlook.com', 'hotmail.com', 'icloud.com', 'aol.com', 'me.com', 'live.com', 'msn.com', 'comcast.net', 'att.net', 'protonmail.com'];\n\nfor (const item of items) {\n  const domain = (item.json.email || '').split('@')[1] || '';\n  item.json.emailDomain = domain;\n  item.json.isBusinessEmail = domain !== '' && !free.includes(domain);\n  item.json.leadType = item.json.isBusinessEmail ? '🏢 Business' : '🏠 Homeowner';\n  item.json.priority = item.json.service === 'Emergency repair' ? 'EMERGENCY' : 'standard';\n}\n\nreturn items;"
      },
      "id": "ok-d1-flag",
      "name": "Business Email Flag",
      "type": "n8n-nodes-base.code",
      "typeVersion": 2,
      "position": [-120, 60]
    },
    {
      "parameters": {
        "conditions": {
          "options": {
            "caseSensitive": true,
            "leftValue": "",
            "typeValidation": "strict",
            "version": 2
          },
          "conditions": [
            {
              "id": "cond-emergency",
              "leftValue": "={{ $json.priority }}",
              "rightValue": "EMERGENCY",
              "operator": {
                "type": "string",
                "operation": "equals"
              }
            }
          ],
          "combinator": "and"
        },
        "options": {}
      },
      "id": "ok-d1-if",
      "name": "Emergency?",
      "type": "n8n-nodes-base.if",
      "typeVersion": 2.2,
      "position": [100, 60]
    },
    {
      "parameters": {
        "select": "channel",
        "channelId": {
          "__rl": true,
          "mode": "name",
          "value": "#leads"
        },
        "text": "=🚨🚨 *EMERGENCY LEAD — CALL NOW* 🚨🚨\n@mike\n\n*{{ $json.name }}* · {{ $json.leadType }}\n📞 {{ $json.phone }}\n✉️ {{ $json.email }}\n🔧 {{ $json.service }} — wants: {{ $json.timing }}\n💬 “{{ $json.message }}”\n\n_Received {{ $json.receivedAt }} — every minute counts._",
        "otherOptions": {
          "includeLinkToWorkflow": false
        }
      },
      "id": "ok-d1-slack-priority",
      "name": "Slack — 🚨 Priority Alert",
      "type": "n8n-nodes-base.slack",
      "typeVersion": 2.2,
      "position": [340, -60]
    },
    {
      "parameters": {
        "select": "channel",
        "channelId": {
          "__rl": true,
          "mode": "name",
          "value": "#leads"
        },
        "text": "=📥 *New lead*\n\n*{{ $json.name }}* · {{ $json.leadType }}\n📞 {{ $json.phone }}\n✉️ {{ $json.email }}\n🔧 {{ $json.service }} — wants: {{ $json.timing }}\n💬 “{{ $json.message }}”\n\n_Received {{ $json.receivedAt }}_",
        "otherOptions": {
          "includeLinkToWorkflow": false
        }
      },
      "id": "ok-d1-slack-standard",
      "name": "Slack — New Lead",
      "type": "n8n-nodes-base.slack",
      "typeVersion": 2.2,
      "position": [340, 180]
    },
    {
      "parameters": {
        "sendTo": "={{ $json.email }}",
        "subject": "Got your request — Summit Heating & Air",
        "emailType": "text",
        "message": "=Hi {{ $json.name.split(' ')[0] }},\n\nWe got your request ({{ $json.service }}) — a Summit tech will call you at {{ $json.phone }} within the hour.\n\nIf it's urgent, call us any time: (555) 010-4400.\n\n— Summit Heating & Air",
        "options": {}
      },
      "id": "ok-d1-gmail",
      "name": "Confirmation Email",
      "type": "n8n-nodes-base.gmail",
      "typeVersion": 2.1,
      "position": [600, 60]
    },
    {
      "parameters": {
        "operation": "append",
        "documentId": {
          "__rl": true,
          "mode": "list",
          "value": ""
        },
        "sheetName": {
          "__rl": true,
          "mode": "list",
          "value": ""
        },
        "columns": {
          "mappingMode": "autoMapInputData",
          "value": {},
          "matchingColumns": [],
          "schema": []
        },
        "options": {}
      },
      "id": "ok-d1-sheets",
      "name": "Log to Lead Sheet",
      "type": "n8n-nodes-base.googleSheets",
      "typeVersion": 4.5,
      "position": [860, 60]
    }
  ],
  "connections": {
    "New Lead Form": {
      "main": [
        [
          {
            "node": "Clean & Stamp",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Clean & Stamp": {
      "main": [
        [
          {
            "node": "Business Email Flag",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Business Email Flag": {
      "main": [
        [
          {
            "node": "Emergency?",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Emergency?": {
      "main": [
        [
          {
            "node": "Slack — 🚨 Priority Alert",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Slack — New Lead",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Slack — 🚨 Priority Alert": {
      "main": [
        [
          {
            "node": "Confirmation Email",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Slack — New Lead": {
      "main": [
        [
          {
            "node": "Confirmation Email",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Confirmation Email": {
      "main": [
        [
          {
            "node": "Log to Lead Sheet",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  },
  "settings": {
    "executionOrder": "v1"
  },
  "pinData": {},
  "meta": {
    "templateCredsSetupCompleted": false
  }
}
