{
  "name": "Google Maps lead generation with Apify & email extraction for Airtable",
  "nodes": [
    {
      "id": "1ed880cf-9d9d-4e2d-bc1d-76ab49a44164",
      "name": "Limit",
      "type": "n8n-nodes-base.limit",
      "position": [
        520,
        180
      ]
    },
    {
      "id": "b106fc00-65fa-4300-adda-99822ac96d44",
      "name": "On form submission",
      "type": "n8n-nodes-base.formTrigger",
      "position": [
        -360,
        180
      ]
    },
    {
      "id": "1a61eada-9883-437b-9b85-7553ad972639",
      "name": "Run an Actor",
      "type": "@apify/n8n-nodes-apify.apify",
      "position": [
        -140,
        180
      ]
    },
    {
      "id": "1eab0a81-e729-49f0-add9-7a3d9de9844f",
      "name": "Get dataset items",
      "type": "@apify/n8n-nodes-apify.apify",
      "position": [
        80,
        180
      ]
    },
    {
      "id": "043184f1-353d-460c-9104-bd68158e8530",
      "name": "Grab Desired Fields",
      "type": "n8n-nodes-base.set",
      "position": [
        300,
        180
      ]
    },
    {
      "id": "26e3f96c-79e5-4135-96ec-a89441618ed0",
      "name": "Loop Over Items",
      "type": "n8n-nodes-base.splitInBatches",
      "position": [
        740,
        180
      ]
    },
    {
      "id": "20d15211-f36d-4ce1-ab7f-f3606e40f198",
      "name": "Markdown",
      "type": "n8n-nodes-base.markdown",
      "position": [
        1840,
        105
      ]
    },
    {
      "id": "58b07df7-6d08-40db-b489-dd1e8f7544a6",
      "name": "Loop Over Items1",
      "type": "n8n-nodes-base.splitInBatches",
      "position": [
        960,
        -245
      ]
    },
    {
      "id": "1476a2bb-7943-457c-bf74-4ae07ea4005a",
      "name": "Wait1",
      "type": "n8n-nodes-base.wait",
      "position": [
        1400,
        -320
      ]
    },
    {
      "id": "2f112d83-278b-42d9-ac8b-ba88588abdf4",
      "name": "Merge",
      "type": "n8n-nodes-base.merge",
      "position": [
        2280,
        255
      ]
    },
    {
      "id": "5489d865-ac36-4be8-a822-a673d5f85ab9",
      "name": "Grab Desired Fields1",
      "type": "n8n-nodes-base.set",
      "position": [
        1400,
        -520
      ]
    },
    {
      "id": "8e194e31-0a42-41b9-ba8e-1ab513fe619d",
      "name": "Merge1",
      "type": "n8n-nodes-base.merge",
      "position": [
        1620,
        -170
      ]
    },
    {
      "id": "87be44e2-d4e4-4e58-9aee-36aca8025e6a",
      "name": "Parse url/website",
      "type": "n8n-nodes-base.set",
      "position": [
        960,
        105
      ]
    },
    {
      "id": "532b375f-a0b2-42c3-8344-89a9f401a97d",
      "name": "Remove Query Parameters & Fragments",
      "type": "n8n-nodes-base.code",
      "position": [
        1180,
        105
      ]
    },
    {
      "id": "8c1b4f28-cb4e-4e8d-9783-b68175ee26fc",
      "name": "User-Agents",
      "type": "n8n-nodes-base.set",
      "position": [
        1400,
        105
      ]
    },
    {
      "id": "79882f8b-ad9d-481d-ab8a-38191f78868b",
      "name": "Website Scraping",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        1620,
        105
      ]
    },
    {
      "id": "00890b55-73a1-4995-a0aa-d55c76b4dcc3",
      "name": "Random Wait",
      "type": "n8n-nodes-base.wait",
      "position": [
        2060,
        105
      ]
    },
    {
      "id": "a3f3f96e-1187-4e30-8b6f-b8d008244a0c",
      "name": "Extract Email Address",
      "type": "n8n-nodes-base.code",
      "position": [
        1180,
        -320
      ]
    },
    {
      "id": "4e16b580-50c8-4a99-8027-21f43913817d",
      "name": "Filter Leads with Email only",
      "type": "n8n-nodes-base.filter",
      "position": [
        1180,
        -520
      ]
    },
    {
      "id": "7f10d476-4787-4632-90cb-3b006e8675c3",
      "name": "Database",
      "type": "n8n-nodes-base.airtable",
      "position": [
        1620,
        -520
      ]
    },
    {
      "id": "ed41e59c-c9c0-4673-af40-fc2d3f08a2ef",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -460,
        80
      ],
      "parameters": {
        "width": 260,
        "height": 260,
        "content": "  ## Form Submission\n  **(Lead Input)**"
      }
    },
    {
      "id": "4737b43b-d22e-4b7d-ae58-4e279a6167ca",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -160,
        80
      ],
      "parameters": {
        "width": 800,
        "height": 260,
        "content": "   ## Scrape Business Info (via Apify) and Grab desired fields"
      }
    },
    {
      "id": "fde95017-afe6-494e-8752-6498c56fa73f",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        680,
        40
      ],
      "parameters": {
        "width": 1780,
        "height": 400,
        "content": "\n   ## Scrape Websites and return markdown"
      }
    },
    {
      "id": "e36373c3-0e42-49c6-9981-afe723576463",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        680,
        -340
      ],
      "parameters": {
        "width": 1140,
        "height": 360,
        "content": "\n## Extract Emails"
      }
    },
    {
      "id": "57abe783-4152-4342-983c-f97ea53cef2a",
      "name": "Sticky Note4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1080,
        -620
      ],
      "parameters": {
        "width": 660,
        "height": 260,
        "content": "## Filter, Clean, and Store"
      }
    },
    {
      "id": "4408295c-b2ac-4207-9e86-079f50e6f051",
      "name": "Sticky Note5",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -500,
        -520
      ],
      "parameters": {
        "width": 580,
        "height": 420,
        "content": "## 🛠 How to Set It Up\n1. **Open n8n** (Cloud or Self-Hosted).\n2. **Import the provided .json** file into your n8n editor.\n3. **Set up the required credentials:**\n   - **🔑 Apify API Key** used for Goog"
      }
    }
  ],
  "connections": {
    "Limit": {
      "main": [
        [
          {
            "node": "Loop Over Items",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Merge": {
      "main": [
        [
          {
            "node": "Loop Over Items",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Wait1": {
      "main": [
        [
          {
            "node": "Merge1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Merge1": {
      "main": [
        [
          {
            "node": "Loop Over Items1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Database": {
      "main": [
        []
      ]
    },
    "Markdown": {
      "main": [
        [
          {
            "node": "Random Wait",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Random Wait": {
      "main": [
        [
          {
            "node": "Merge",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "User-Agents": {
      "main": [
        [
          {
            "node": "Website Scraping",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Run an Actor": {
      "main": [
        [
          {
            "node": "Get dataset items",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Loop Over Items": {
      "main": [
        [
          {
            "node": "Loop Over Items1",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Parse url/website",
            "type": "main",
            "index": 0
          },
          {
            "node": "Merge",
            "type": "main",
            "index": 1
          }
        ]
      ]
    },
    "Loop Over Items1": {
      "main": [
        [
          {
            "node": "Filter Leads with Email only",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Extract Email Address",
            "type": "main",
            "index": 0
          },
          {
            "node": "Merge1",
            "type": "main",
            "index": 1
          }
        ]
      ]
    },
    "Website Scraping": {
      "main": [
        [
          {
            "node": "Markdown",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get dataset items": {
      "main": [
        [
          {
            "node": "Grab Desired Fields",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Parse url/website": {
      "main": [
        [
          {
            "node": "Remove Query Parameters & Fragments",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "On form submission": {
      "main": [
        [
          {
            "node": "Run an Actor",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Grab Desired Fields": {
      "main": [
        [
          {
            "node": "Limit",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Grab Desired Fields1": {
      "main": [
        [
          {
            "node": "Database",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Extract Email Address": {
      "main": [
        [
          {
            "node": "Wait1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Filter Leads with Email only": {
      "main": [
        [
          {
            "node": "Grab Desired Fields1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Remove Query Parameters & Fragments": {
      "main": [
        [
          {
            "node": "User-Agents",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}