{
  "name": "Monitor CRM hiring spikes and send Slack alerts with HubSpot and PredictLeads",
  "nodes": [
    {
      "id": "b070e426-c383-4350-8e5b-0bf42da3d888",
      "name": "About This Workflow",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -2880,
        480
      ],
      "parameters": {
        "width": 420,
        "height": 400,
        "content": "ABOUT THIS WORKFLOW\n\nPulls HubSpot companies, checks PredictLeads for new job openings, and sends Slack alerts when hiring spikes above 50%.\n\nSetup: HubSpot API, Google Sheets (for historical tracking"
      }
    },
    {
      "id": "80fa2c54-73ff-4d86-a3cc-99240a150b17",
      "name": "📋 Sticky: Trigger & Input",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -2368,
        64
      ],
      "parameters": {
        "width": 460,
        "height": 778,
        "content": "## ⏰ Trigger & Company Source\n\n**Nodes:**  \n⏰ Daily 9AM Trigger → 🏢 HubSpot Get Companies\n\n**Description:**  \nThe workflow begins with a scheduled trigger that runs every day at 9 AM.\n\nIt retrieves al"
      }
    },
    {
      "id": "cd07e49b-a398-45b0-b8ad-f2589b3f0c3e",
      "name": "📋 Sticky: Enrichment",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1824,
        112
      ],
      "parameters": {
        "width": 780,
        "height": 938,
        "content": "## 🔍 Hiring Data Collection\n\n**Nodes:**  \n🔄 Loop Over Companies → 🔍 Fetch Job Openings → ⚙️ Filter Target Roles → 📂 Read Historical Counts\n\n**Description:**  \nEach company is processed individually us"
      }
    },
    {
      "id": "8441a9af-8161-449e-956b-521a8132379c",
      "name": "📋 Sticky: Processing",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -944,
        96
      ],
      "parameters": {
        "width": 668,
        "height": 746,
        "content": "## 📊 Hiring Spike Detection\n\n**Nodes:**  \nMerge → 📊 Compare vs Historical → ❓ Spike Detected?\n\n**Description:**  \nCurrent hiring data is merged with the historical job counts retrieved from Google She"
      }
    },
    {
      "id": "07be4ad9-94af-4567-97a4-a6a257602db1",
      "name": "📋 Sticky: Output",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -160,
        -80
      ],
      "parameters": {
        "width": 556,
        "height": 1114,
        "content": "## 📤 Actions & Alerts\n\n**Nodes:**  \n🏢 HubSpot Update Company → 💬 Slack Spike Alert → 📝 Update Google Sheets → 📝 Update Sheets (No Spike)\n\n**Description:**  \nWhen a hiring spike is detected, the workfl"
      }
    },
    {
      "id": "87a23924-057b-4d87-8750-50723438f9d1",
      "name": "⏰ Daily 9AM Trigger",
      "type": "n8n-nodes-base.scheduleTrigger",
      "position": [
        -2304,
        608
      ]
    },
    {
      "id": "729320a5-0483-42b5-8051-e3f63d888d31",
      "name": "🏢 HubSpot Get Companies",
      "type": "n8n-nodes-base.hubspot",
      "position": [
        -2080,
        608
      ]
    },
    {
      "id": "e71918e2-8d65-4d89-8977-9491c22dc3e1",
      "name": "🔄 Loop Over Companies",
      "type": "n8n-nodes-base.splitInBatches",
      "position": [
        -1760,
        608
      ]
    },
    {
      "id": "68ce9eea-9e77-4021-9c12-cf3e50ffad19",
      "name": "🔍 Fetch Job Openings",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        -1488,
        624
      ]
    },
    {
      "id": "c9fbec2f-aebc-4b0f-aa3a-06d1dca17973",
      "name": "⚙️ Filter Target Roles",
      "type": "n8n-nodes-base.code",
      "position": [
        -1264,
        624
      ]
    },
    {
      "id": "858b869b-50f8-48c8-867c-3777dcaa8bef",
      "name": "📊 Compare vs Historical",
      "type": "n8n-nodes-base.code",
      "position": [
        -672,
        640
      ]
    },
    {
      "id": "21bcd2c9-65d7-448d-9d06-5dfb3362c296",
      "name": "📂 Read Historical Counts",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        -1376,
        800
      ]
    },
    {
      "id": "e0d06224-bf31-44f0-8a35-91c4c0d26afa",
      "name": "❓ Spike Detected?",
      "type": "n8n-nodes-base.if",
      "position": [
        -480,
        640
      ]
    },
    {
      "id": "4365992b-105e-432b-8add-481f728abdcb",
      "name": "🏢 HubSpot Update Company",
      "type": "n8n-nodes-base.hubspot",
      "position": [
        -48,
        416
      ]
    },
    {
      "id": "0197217f-01f7-4017-80ae-63e0cd42db11",
      "name": "📝 Update Google Sheets",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        208,
        416
      ]
    },
    {
      "id": "1a954f94-3192-416e-92c5-eece04c75309",
      "name": "💬 Slack Spike Alert",
      "type": "n8n-nodes-base.slack",
      "position": [
        112,
        624
      ]
    },
    {
      "id": "d7a6621e-9690-4570-8e58-ea4014dd0c7f",
      "name": "📝 Update Sheets (No Spike)",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        16,
        816
      ]
    },
    {
      "id": "e869fe10-e812-4ce4-ba0d-2be5085133a1",
      "name": "Merge",
      "type": "n8n-nodes-base.merge",
      "position": [
        -864,
        640
      ]
    }
  ],
  "connections": {
    "Merge": {
      "main": [
        [
          {
            "node": "📊 Compare vs Historical",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "❓ Spike Detected?": {
      "main": [
        [
          {
            "node": "🏢 HubSpot Update Company",
            "type": "main",
            "index": 0
          },
          {
            "node": "💬 Slack Spike Alert",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "📝 Update Sheets (No Spike)",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "⏰ Daily 9AM Trigger": {
      "main": [
        [
          {
            "node": "🏢 HubSpot Get Companies",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "🔍 Fetch Job Openings": {
      "main": [
        [
          {
            "node": "⚙️ Filter Target Roles",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "🔄 Loop Over Companies": {
      "main": [
        [],
        [
          {
            "node": "🔍 Fetch Job Openings",
            "type": "main",
            "index": 0
          },
          {
            "node": "📂 Read Historical Counts",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "📝 Update Google Sheets": {
      "main": [
        [
          {
            "node": "🔄 Loop Over Companies",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "⚙️ Filter Target Roles": {
      "main": [
        [
          {
            "node": "Merge",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "🏢 HubSpot Get Companies": {
      "main": [
        [
          {
            "node": "🔄 Loop Over Companies",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "📊 Compare vs Historical": {
      "main": [
        [
          {
            "node": "❓ Spike Detected?",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "🏢 HubSpot Update Company": {
      "main": [
        [
          {
            "node": "📝 Update Google Sheets",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "📂 Read Historical Counts": {
      "main": [
        [
          {
            "node": "Merge",
            "type": "main",
            "index": 1
          }
        ]
      ]
    },
    "📝 Update Sheets (No Spike)": {
      "main": [
        [
          {
            "node": "🔄 Loop Over Companies",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}