{
  "name": "Build targeted prospect lists: find & enrich leads with Surfe to HubSpot",
  "nodes": [
    {
      "id": "2299f88a-bfeb-4d28-8164-704a40c9cdae",
      "name": "Search ICP Companies",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        -1560,
        125
      ]
    },
    {
      "id": "5b7477c1-1a29-42ff-bd2c-207edeb49839",
      "name": "Search People in Companies",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        -1120,
        125
      ]
    },
    {
      "id": "de26445a-750e-4b12-83f7-4a864e146b8e",
      "name": "Prepare JSON Payload Enrichment Request",
      "type": "n8n-nodes-base.code",
      "position": [
        -900,
        125
      ]
    },
    {
      "id": "a4e45b9e-327b-4ca2-9338-c2739ef93841",
      "name": "Surfe Bulk Enrichments API",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        -680,
        125
      ]
    },
    {
      "id": "8ec1dbe8-b0c3-413b-9576-74cabfbaed70",
      "name": "Surfe check enrichement status",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        -460,
        125
      ]
    },
    {
      "id": "b9bba6b6-6d14-400a-bba0-64a06f4ce343",
      "name": "Is enrichment complete ?",
      "type": "n8n-nodes-base.if",
      "position": [
        -240,
        50
      ]
    },
    {
      "id": "d6a21f33-d87d-4d9f-8d1d-597a943a0391",
      "name": "Wait 3 secondes",
      "type": "n8n-nodes-base.wait",
      "position": [
        -20,
        225
      ]
    },
    {
      "id": "1f811e79-79b2-46b6-8bac-0e94eb63c2d8",
      "name": "Extract list of peoples from Surfe API response",
      "type": "n8n-nodes-base.code",
      "position": [
        -20,
        0
      ]
    },
    {
      "id": "043348d5-0bb7-40d6-be4d-ad3c2a7658de",
      "name": "Filter: phone AND email",
      "type": "n8n-nodes-base.filter",
      "position": [
        200,
        0
      ]
    },
    {
      "id": "814c954b-749c-4b9a-93ca-70cdf9a48505",
      "name": "HubSpot: Create or Update",
      "type": "n8n-nodes-base.hubspot",
      "position": [
        420,
        0
      ]
    },
    {
      "id": "25faa3d0-e800-4a68-a7da-b4295f9b03ae",
      "name": "Gmail",
      "type": "n8n-nodes-base.gmail",
      "position": [
        640,
        0
      ]
    },
    {
      "id": "e6daaf79-f53c-4059-80f7-8bfd2df14ebf",
      "name": "When clicking ‘Execute workflow’",
      "type": "n8n-nodes-base.manualTrigger",
      "position": [
        -1780,
        125
      ]
    },
    {
      "id": "b07b72bb-f631-4e60-9ad8-6cba88df6604",
      "name": "prepare JSON PAYLOAD WITH Company Domains",
      "type": "n8n-nodes-base.code",
      "position": [
        -1340,
        125
      ]
    }
  ],
  "connections": {
    "Wait 3 secondes": {
      "main": [
        [
          {
            "node": "Surfe check enrichement status",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Search ICP Companies": {
      "main": [
        [
          {
            "node": "prepare JSON PAYLOAD WITH Company Domains",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Filter: phone AND email": {
      "main": [
        [
          {
            "node": "HubSpot: Create or Update",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Is enrichment complete ?": {
      "main": [
        [
          {
            "node": "Extract list of peoples from Surfe API response",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Wait 3 secondes",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "HubSpot: Create or Update": {
      "main": [
        [
          {
            "node": "Gmail",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Search People in Companies": {
      "main": [
        [
          {
            "node": "Prepare JSON Payload Enrichment Request",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Surfe Bulk Enrichments API": {
      "main": [
        [
          {
            "node": "Surfe check enrichement status",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Surfe check enrichement status": {
      "main": [
        [
          {
            "node": "Is enrichment complete ?",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "When clicking ‘Execute workflow’": {
      "main": [
        [
          {
            "node": "Search ICP Companies",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Prepare JSON Payload Enrichment Request": {
      "main": [
        [
          {
            "node": "Surfe Bulk Enrichments API",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "prepare JSON PAYLOAD WITH Company Domains": {
      "main": [
        [
          {
            "node": "Search People in Companies",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Extract list of peoples from Surfe API response": {
      "main": [
        [
          {
            "node": "Filter: phone AND email",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}