{
  "name": "Scrape Google Maps business leads with Apify & GPT-4 email extraction",
  "nodes": [
    {
      "id": "b15db5d0-22ad-4ec2-8c7f-45ec329e70f8",
      "name": "Get dataset items",
      "type": "@apify/n8n-nodes-apify.apify",
      "position": [
        -1440,
        4032
      ]
    },
    {
      "id": "12f5d055-2bac-4f1b-872f-5dc96016519c",
      "name": "Remove Duplicates",
      "type": "n8n-nodes-base.removeDuplicates",
      "position": [
        -1200,
        4032
      ]
    },
    {
      "id": "6084326e-000e-49d4-8d01-939b25ff3c6d",
      "name": "Run Google Maps Scraper",
      "type": "@apify/n8n-nodes-apify.apify",
      "position": [
        -1680,
        4032
      ]
    },
    {
      "id": "bddaee65-4adb-49d7-b552-1f1f007e670e",
      "name": "Loop Over Items",
      "type": "n8n-nodes-base.splitInBatches",
      "position": [
        -800,
        4032
      ]
    },
    {
      "id": "ddc329c2-3b9d-4759-827c-164040e54113",
      "name": "Google maps database",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        -160,
        4048
      ]
    },
    {
      "id": "f61891c7-41d7-419a-9bef-bbd81bc76733",
      "name": "Pause for rate limit",
      "type": "n8n-nodes-base.wait",
      "position": [
        960,
        4272
      ]
    },
    {
      "id": "28826c4c-ed52-4297-8856-395b51a51f15",
      "name": "Telegram Trigger",
      "type": "n8n-nodes-base.telegramTrigger",
      "position": [
        -2144,
        4032
      ]
    },
    {
      "id": "dc6d2155-a004-4253-ab0c-ea5974d9429c",
      "name": "Extract Input Data",
      "type": "n8n-nodes-base.code",
      "position": [
        -1920,
        4032
      ]
    },
    {
      "id": "bf177f41-a447-4334-9a5f-7dd7e08b9ea5",
      "name": "Notification message",
      "type": "n8n-nodes-base.telegram",
      "position": [
        -784,
        4272
      ]
    },
    {
      "id": "6b940388-c1b4-490e-9f29-dfbbdac7d5a4",
      "name": "Extract Only Website URLs",
      "type": "n8n-nodes-base.set",
      "position": [
        128,
        4048
      ]
    },
    {
      "id": "097bdf79-90b3-4a75-9121-1f0d1b9d2016",
      "name": "Fetch Raw HTML Content from Business Website",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        384,
        4048
      ]
    },
    {
      "id": "452a2220-2f4f-4575-9da5-7661c35e7b72",
      "name": "Extract Business Email from Website HTML (GPT-4)",
      "type": "@n8n/n8n-nodes-langchain.openAi",
      "position": [
        608,
        4048
      ]
    },
    {
      "id": "26c43321-7082-4ff3-b0d7-ee93b607ea26",
      "name": "Email Update",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        960,
        4048
      ]
    },
    {
      "id": "e46d3db1-f7f4-4606-b46d-ca9198061e17",
      "name": "Step 2 - Extract Input Data Documentation",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -2208,
        3472
      ],
      "parameters": {
        "width": 1184,
        "height": 1056,
        "content": "## Step 1 - Extract Input Data and  Run Google Maps Scraper\n\n**Purpose:** Parses the Telegram message and extracts the three input parameters needed for the Google Maps scraper.\n\n**Configuration:**\n1."
      }
    },
    {
      "id": "a127a961-baea-4078-b05b-0f4e9d112847",
      "name": "Sticky Note8",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -976,
        3472
      ],
      "parameters": {
        "width": 2160,
        "height": 1056,
        "content": "## Step 2 - Google Maps Database and Extract Business Email\n\n**Purpose:** Appends the processed business data (including AI-generated summary) to a Google Sheet for storage and analysis.\n\n**Configurat"
      }
    },
    {
      "id": "86a2c246-bdc1-41cb-880a-c31b62148f93",
      "name": "AI Company Description Generator",
      "type": "@n8n/n8n-nodes-langchain.openAi",
      "position": [
        -544,
        4048
      ]
    },
    {
      "id": "543493d6-db18-45af-a214-9085b31f48bf",
      "name": "Workflow Overview Documentation",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -2832,
        3472
      ],
      "parameters": {
        "width": 592,
        "height": 1056,
        "content": "## 🔄 Google Maps Business Scraper with Email Enrichment\n\n@[youtube](cijBIHI6iLk)\n\n## **Global Purpose:**\nAutomated lead generation system that scrapes business listings from Google Maps, generates AI-"
      }
    }
  ],
  "connections": {
    "Email Update": {
      "main": [
        [
          {
            "node": "Pause for rate limit",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Loop Over Items": {
      "main": [
        [
          {
            "node": "Notification message",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "AI Company Description Generator",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Telegram Trigger": {
      "main": [
        [
          {
            "node": "Extract Input Data",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get dataset items": {
      "main": [
        [
          {
            "node": "Remove Duplicates",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Remove Duplicates": {
      "main": [
        [
          {
            "node": "Loop Over Items",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Extract Input Data": {
      "main": [
        [
          {
            "node": "Run Google Maps Scraper",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Google maps database": {
      "main": [
        [
          {
            "node": "Extract Only Website URLs",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Pause for rate limit": {
      "main": [
        [
          {
            "node": "Loop Over Items",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Run Google Maps Scraper": {
      "main": [
        [
          {
            "node": "Get dataset items",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Extract Only Website URLs": {
      "main": [
        [
          {
            "node": "Fetch Raw HTML Content from Business Website",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "AI Company Description Generator": {
      "main": [
        [
          {
            "node": "Google maps database",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Fetch Raw HTML Content from Business Website": {
      "main": [
        [
          {
            "node": "Extract Business Email from Website HTML (GPT-4)",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Extract Business Email from Website HTML (GPT-4)": {
      "main": [
        [
          {
            "node": "Email Update",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}