{
  "name": "Generate local business leads with Google Places API & website email scraping",
  "nodes": [
    {
      "id": "9a322143-0fb1-45d0-8629-2655f36cdb52",
      "name": "Form Trigger",
      "type": "n8n-nodes-base.formTrigger",
      "position": [
        -5904,
        96
      ]
    },
    {
      "id": "f0f1b7a5-12bd-4e8b-b15b-48c89e648244",
      "name": "Parse Form Data",
      "type": "n8n-nodes-base.set",
      "position": [
        -5664,
        96
      ]
    },
    {
      "id": "8c495a57-6270-4099-86d3-7582ce0007f7",
      "name": "Create Search Combinations",
      "type": "n8n-nodes-base.set",
      "position": [
        -5456,
        96
      ]
    },
    {
      "id": "04fa7763-85d8-4840-bade-6c5300b98c84",
      "name": "Split Into Searches",
      "type": "n8n-nodes-base.splitOut",
      "position": [
        -5136,
        96
      ]
    },
    {
      "id": "8b71794d-a8d1-45ed-855b-95dca33036b4",
      "name": "Extract Place Info",
      "type": "n8n-nodes-base.code",
      "position": [
        -4528,
        192
      ]
    },
    {
      "id": "aca73bc9-2a3f-4c7f-be48-a55128095cb1",
      "name": "Wait (Rate Limit)",
      "type": "n8n-nodes-base.wait",
      "position": [
        -4176,
        96
      ]
    },
    {
      "id": "2b6e5746-633c-4549-aa0b-ab633c5a4ded",
      "name": "Get Business Details",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        -3952,
        96
      ]
    },
    {
      "id": "b66da1b4-034e-41e6-9a51-5d5c964cb90f",
      "name": "Merge Details",
      "type": "n8n-nodes-base.set",
      "position": [
        -3728,
        96
      ]
    },
    {
      "id": "d1c4c00e-3b79-4c3b-99f9-316d3a6a1c7e",
      "name": "Has Website?",
      "type": "n8n-nodes-base.if",
      "position": [
        -3392,
        96
      ]
    },
    {
      "id": "08d25785-79f9-4ef4-8191-625474ba7eb9",
      "name": "Extract Emails & Clean",
      "type": "n8n-nodes-base.code",
      "position": [
        -2656,
        -192
      ]
    },
    {
      "id": "1568297a-ea26-4bb0-81c1-f79c29b82f8f",
      "name": "No Website Fallback",
      "type": "n8n-nodes-base.set",
      "position": [
        -2704,
        560
      ]
    },
    {
      "id": "f376c4a7-d8ec-442d-b95e-6a48d7c5a786",
      "name": "Convert to CSV",
      "type": "n8n-nodes-base.convertToFile",
      "position": [
        -1536,
        160
      ]
    },
    {
      "id": "c10ee18e-0c5e-4aa1-ab81-e370d45cdad9",
      "name": "Google Places Search1",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        -4944,
        96
      ]
    },
    {
      "id": "8d309273-68ec-4877-a75e-4124b3de661e",
      "name": "Scrape Website1",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        -2656,
        -16
      ]
    },
    {
      "id": "af5b4f14-7c13-46b6-a51e-002e732a43f8",
      "name": "Merge",
      "type": "n8n-nodes-base.merge",
      "position": [
        -2176,
        160
      ]
    },
    {
      "id": "5a25b646-4bdb-4f4e-bf82-81301a4e9791",
      "name": "Final Data",
      "type": "n8n-nodes-base.set",
      "position": [
        -1904,
        160
      ]
    },
    {
      "id": "fa8ca75b-46f7-4c93-8d9f-8cc14e7c503f",
      "name": "Loop Over Items",
      "type": "n8n-nodes-base.splitInBatches",
      "position": [
        -4736,
        96
      ]
    },
    {
      "id": "90d8e99b-e5b3-490f-9e6b-93151e2fa2d4",
      "name": "Loop Over Items1",
      "type": "n8n-nodes-base.splitInBatches",
      "position": [
        -3024,
        -176
      ]
    },
    {
      "id": "939af563-a020-4561-ae54-1279e47ce31b",
      "name": "Wait",
      "type": "n8n-nodes-base.wait",
      "position": [
        -2656,
        176
      ]
    },
    {
      "id": "304cb33c-08e0-42a8-90da-69c24422cc90",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -5984,
        -48
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    },
    {
      "id": "03786d08-2e0e-4378-8d08-3d04d82dea37",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -5200,
        -48
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    },
    {
      "id": "5bdecbdc-af35-49ca-8d6d-ca5977ea9ebe",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -4288,
        -48
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    },
    {
      "id": "f44870cc-3ce8-4f56-bff5-8a4ae825bd78",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -3424,
        -304
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    },
    {
      "id": "946c84bf-4d57-46d2-9741-56cf2edf5b3f",
      "name": "Sticky Note4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -2272,
        32
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    },
    {
      "id": "be763aae-67ab-4181-a1cc-826264bce29f",
      "name": "Sticky Note5",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1648,
        32
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    },
    {
      "id": "a357ad24-4cc9-45de-b97f-964e0e880035",
      "name": "Sticky Note7",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -6560,
        -544
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    }
  ],
  "connections": {
    "Wait": {
      "main": [
        [
          {
            "node": "Loop Over Items1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Merge": {
      "main": [
        [
          {
            "node": "Final Data",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Final Data": {
      "main": [
        [
          {
            "node": "Convert to CSV",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Form Trigger": {
      "main": [
        [
          {
            "node": "Parse Form Data",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Has Website?": {
      "main": [
        [
          {
            "node": "Loop Over Items1",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "No Website Fallback",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Merge Details": {
      "main": [
        [
          {
            "node": "Has Website?",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Convert to CSV": {
      "main": [
        []
      ]
    },
    "Loop Over Items": {
      "main": [
        [
          {
            "node": "Wait (Rate Limit)",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Extract Place Info",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Parse Form Data": {
      "main": [
        [
          {
            "node": "Create Search Combinations",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Scrape Website1": {
      "main": [
        [
          {
            "node": "Wait",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Loop Over Items1": {
      "main": [
        [
          {
            "node": "Extract Emails & Clean",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Scrape Website1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Wait (Rate Limit)": {
      "main": [
        [
          {
            "node": "Get Business Details",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Extract Place Info": {
      "main": [
        [
          {
            "node": "Loop Over Items",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "No Website Fallback": {
      "main": [
        [
          {
            "node": "Merge",
            "type": "main",
            "index": 1
          }
        ]
      ]
    },
    "Split Into Searches": {
      "main": [
        [
          {
            "node": "Google Places Search1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get Business Details": {
      "main": [
        [
          {
            "node": "Merge Details",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Google Places Search1": {
      "main": [
        [
          {
            "node": "Loop Over Items",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Extract Emails & Clean": {
      "main": [
        [
          {
            "node": "Merge",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Create Search Combinations": {
      "main": [
        [
          {
            "node": "Split Into Searches",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}