{
  "name": "Typeform lead capture to HubSpot with scoring and Slack alerts",
  "nodes": [
    {
      "id": "8f79216b-2b12-4098-b375-c70bce4e2311",
      "name": "Typeform Trigger",
      "type": "n8n-nodes-base.typeformTrigger",
      "position": [
        -432,
        -272
      ]
    },
    {
      "id": "17064ca5-077c-49f4-b2f5-1d8dc8688a3f",
      "name": "Search HubSpot Contact",
      "type": "n8n-nodes-base.hubspot",
      "position": [
        -208,
        -272
      ]
    },
    {
      "id": "d9bcd04d-1081-4924-9072-7d3bdd66ba7f",
      "name": "Slack Notification",
      "type": "n8n-nodes-base.slack",
      "position": [
        688,
        -272
      ]
    },
    {
      "id": "2683bba4-24bf-4829-b3ae-880a810f7fa7",
      "name": "If",
      "type": "n8n-nodes-base.if",
      "position": [
        16,
        -272
      ]
    },
    {
      "id": "db204ea8-7e8b-428a-81e4-8dcc427fcb10",
      "name": "Update a contact",
      "type": "n8n-nodes-base.hubspot",
      "position": [
        240,
        -176
      ]
    },
    {
      "id": "0072205b-5bba-4501-8e4c-640e45eb39d8",
      "name": "Create a contact",
      "type": "n8n-nodes-base.hubspot",
      "position": [
        240,
        -368
      ]
    },
    {
      "id": "20280495-5d1a-449b-9da0-7043a25ec7c1",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -464,
        -416
      ],
      "parameters": {
        "width": 176,
        "height": 96,
        "content": "Typeform trigger:  Gets trigger after capturing lead data"
      }
    },
    {
      "id": "eb29d7a5-0452-4d2e-b475-6f6e1ecf9071",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -256,
        -64
      ],
      "parameters": {
        "width": 176,
        "height": 112,
        "content": "Checks and deduplicate data before creating a new contact"
      }
    },
    {
      "id": "d6169b09-8f12-4356-8a1b-fd94c2830a24",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        16,
        -464
      ],
      "parameters": {
        "width": 192,
        "height": 112,
        "content": "If contact isn't available in Hubspot CRM, a contact is created"
      }
    },
    {
      "id": "2b3c10a7-a9f8-4d82-b598-d47d4696d150",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        400,
        -80
      ],
      "parameters": {
        "width": 192,
        "height": 112,
        "content": "If contact is available in Hubspot CRM, it updates existing contact"
      }
    },
    {
      "id": "a86fb201-a389-4234-8377-daf6729ea4f3",
      "name": "Sticky Note4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        432,
        -448
      ],
      "parameters": {
        "width": 192,
        "height": 112,
        "content": "Function code checks and assigns a score based on defined rules"
      }
    },
    {
      "id": "aa203c82-8227-4778-9a6a-2f47bf856c9c",
      "name": "Sticky Note5",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        928,
        -288
      ],
      "parameters": {
        "width": 192,
        "height": 112,
        "content": "Finally, it triggers new lead alert with status as - Cold, Warm, & Hot "
      }
    },
    {
      "id": "87aa9fa8-dbf5-4ac9-8390-d47281b10a64",
      "name": "Lead Scoring",
      "type": "n8n-nodes-base.code",
      "position": [
        464,
        -272
      ]
    },
    {
      "id": "6e1b7142-47f7-40bd-b8f0-2eeac7aad6b3",
      "name": "Sticky Note6",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1456,
        -848
      ],
      "parameters": {
        "width": 928,
        "height": 1120,
        "content": "# 🛠️ Setup Guide  \n## **Author:** [Krishna Sharma]\n\nLead Capture & Scoring Flow in HubSpot\n\n### ✅ Step 1: Add a Typeform Trigger\nThis runs automatically whenever a new lead submits the form.\n\n### ✅ St"
      }
    }
  ],
  "connections": {
    "If": {
      "main": [
        [
          {
            "node": "Create a contact",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Update a contact",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Lead Scoring": {
      "main": [
        [
          {
            "node": "Slack Notification",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Create a contact": {
      "main": [
        [
          {
            "node": "Lead Scoring",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Typeform Trigger": {
      "main": [
        [
          {
            "node": "Search HubSpot Contact",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Update a contact": {
      "main": [
        [
          {
            "node": "Lead Scoring",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Search HubSpot Contact": {
      "main": [
        [
          {
            "node": "If",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}