{
  "name": "Enrich form leads with Lusha, waterfall enrichment, HubSpot, and Slack",
  "nodes": [
    {
      "id": "f3c6c975-06cc-4e41-a18f-955709b5091b",
      "name": "📋 Form Enrichment with Waterfall Fallback",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -100,
        -540
      ],
      "parameters": {
        "width": 900,
        "height": 520,
        "content": "## Enrich Form Leads with Lusha and Waterfall Fallback Provider\n\n**Who it's for:** Growth & Ops teams who need maximum data coverage\n\n**What it does:** Enriches form leads first with Lusha, then calls"
      }
    },
    {
      "id": "33f8b565-a875-4154-9e33-4290a9066b9d",
      "name": "⚡ 1. Receive & Validate",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -30,
        50
      ],
      "parameters": {
        "width": 380,
        "height": 270,
        "content": "Webhook receives the form POST. A code node validates the email format before enrichment.\n\n**Nodes:** Webhook → Validate Email\n\n💡 Add more validation rules (e.g., block free email domains) in the code"
      }
    },
    {
      "id": "6bbff01a-2c40-4578-b926-dbab003962ea",
      "name": "🥇 2. Lusha (Primary Enrichment)",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        400,
        50
      ],
      "parameters": {
        "width": 500,
        "height": 270,
        "content": "Lusha is always called first as the primary enrichment provider. If both email and phone are found, the fallback provider is skipped entirely — saving API credits.\n\n**Nodes:** Lusha Enrich → Missing E"
      }
    },
    {
      "id": "6f67ef59-2f0c-4e9f-a60c-6d2944e2a188",
      "name": "🥈 3. Fallback + Merge",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        950,
        50
      ],
      "parameters": {
        "width": 500,
        "height": 270,
        "content": "When Lusha data is incomplete, a fallback HTTP provider fills the gaps. Both paths merge into a single clean record. If Lusha data is complete, the fallback is skipped.\n\n**Nodes:** Fallback HTTP → Mer"
      }
    },
    {
      "id": "7ba12faf-efee-4d8a-ab52-632f817c2cac",
      "name": "💾 4. CRM + Slack + Response",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1500,
        50
      ],
      "parameters": {
        "width": 500,
        "height": 270,
        "content": "The merged record is synced to HubSpot (create or update), an SDR alert is sent to Slack, and the enriched data is returned to the form as a JSON response.\n\n**Nodes:** Upsert HubSpot → Slack Alert → W"
      }
    },
    {
      "id": "631823aa-513d-4ff8-8194-8250668e9e99",
      "name": "Receive Form Submission",
      "type": "n8n-nodes-base.webhook",
      "position": [
        0,
        400
      ]
    },
    {
      "id": "46488728-9407-4f7a-9768-071b4bdb7e32",
      "name": "Validate Email",
      "type": "n8n-nodes-base.code",
      "position": [
        280,
        400
      ]
    },
    {
      "id": "357e40a4-90b7-49f7-ae60-d16f993908b0",
      "name": "Enrich with Lusha",
      "type": "@lusha-org/n8n-nodes-lusha.lusha",
      "position": [
        560,
        400
      ]
    },
    {
      "id": "88759d34-a61f-4f36-bed5-c749f439d9a8",
      "name": "Missing Email or Phone?",
      "type": "n8n-nodes-base.if",
      "position": [
        840,
        400
      ]
    },
    {
      "id": "e22d27e7-5687-40c7-9d9f-8ccf09f1ef8f",
      "name": "Fallback Provider Enrichment",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        1120,
        280
      ]
    },
    {
      "id": "0866c973-0d7c-4069-94c9-1c859a7c7e86",
      "name": "Merge All Data (Fallback)",
      "type": "n8n-nodes-base.code",
      "position": [
        1400,
        280
      ]
    },
    {
      "id": "0d581bdc-fe15-4878-9337-d52d81948110",
      "name": "Merge Data (Lusha Complete)",
      "type": "n8n-nodes-base.code",
      "position": [
        1120,
        540
      ]
    },
    {
      "id": "02eca794-e000-4f7f-993d-c93b0e72b44f",
      "name": "Upsert HubSpot Contact",
      "type": "n8n-nodes-base.hubspot",
      "position": [
        1700,
        300
      ]
    },
    {
      "id": "d1a765d2-aa76-4a61-8390-42be765ff1d8",
      "name": "SDR Slack Alert",
      "type": "n8n-nodes-base.slack",
      "position": [
        1700,
        500
      ]
    },
    {
      "id": "42cb0de4-9902-429d-b46f-f9bacf111e69",
      "name": "Return Enriched Lead",
      "type": "n8n-nodes-base.respondToWebhook",
      "position": [
        2000,
        400
      ]
    }
  ],
  "connections": {
    "Validate Email": {
      "main": [
        [
          {
            "node": "Enrich with Lusha",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Enrich with Lusha": {
      "main": [
        [
          {
            "node": "Missing Email or Phone?",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Upsert HubSpot Contact": {
      "main": [
        [
          {
            "node": "SDR Slack Alert",
            "type": "main",
            "index": 0
          },
          {
            "node": "Return Enriched Lead",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Missing Email or Phone?": {
      "main": [
        [
          {
            "node": "Fallback Provider Enrichment",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Merge Data (Lusha Complete)",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Receive Form Submission": {
      "main": [
        [
          {
            "node": "Validate Email",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Merge All Data (Fallback)": {
      "main": [
        [
          {
            "node": "Upsert HubSpot Contact",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Merge Data (Lusha Complete)": {
      "main": [
        [
          {
            "node": "Upsert HubSpot Contact",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Fallback Provider Enrichment": {
      "main": [
        [
          {
            "node": "Merge All Data (Fallback)",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}