{
  "name": "Enrich Google Maps Businesses with Verified Emails, MX/DMARC & Tech Stack",
  "nodes": [
    {
      "parameters": {
        "content": "## Google Maps Local Lead & DNS Enricher\n\nDiscovers local B2B businesses from Google Maps, extracts unique website domains, and enriches each reachable site with contact emails, MX/SPF/DMARC deliverability checks, and 70+ tech signatures.\n\n### Prerequisites\n- **Apify API Token** (`$5` free monthly credits included): https://apify.com/tsun_tsun/website-lead-tech-enricher?fpr=cn0u9m\n\n### Quick Setup\n1. Create one **Header Auth** credential in n8n (`Name`: `Authorization`, `Value`: `Bearer <apify-api-token>`).\n2. Attach it to both Apify HTTP nodes and edit `searchStringsArray` in **Configure Search Query**.",
        "height": 220,
        "width": 700,
        "color": 5
      },
      "id": "33333333-3333-4333-8333-333333333001",
      "name": "Sticky Note Overview",
      "type": "n8n-nodes-base.stickyNote",
      "typeVersion": 1,
      "position": [140, 20]
    },
    {
      "parameters": {
        "content": "## 1. Search Local Businesses\nConfigures city and niche queries, then pulls Google Maps business listings with website URLs.",
        "height": 220,
        "width": 740,
        "color": 7
      },
      "id": "33333333-3333-4333-8333-333333333002",
      "name": "Sticky Note Scrape",
      "type": "n8n-nodes-base.stickyNote",
      "typeVersion": 1,
      "position": [150, 270]
    },
    {
      "parameters": {
        "content": "## 2. Deduplicate & Enrich Websites\nExtracts unique domains and runs contact email, MX/DMARC, and tech stack enrichment.",
        "height": 220,
        "width": 520,
        "color": 7
      },
      "id": "33333333-3333-4333-8333-333333333003",
      "name": "Sticky Note Enrich",
      "type": "n8n-nodes-base.stickyNote",
      "typeVersion": 1,
      "position": [930, 270]
    },
    {
      "parameters": {
        "content": "## Setup Required\nSelect your Apify Header Auth credential (`Authorization: Bearer <TOKEN>`) on both **Scrape Local Businesses** and **Enrich Emails & DNS** before executing.",
        "height": 140,
        "width": 420,
        "color": 3
      },
      "id": "33333333-3333-4333-8333-333333333004",
      "name": "Sticky Note Warning",
      "type": "n8n-nodes-base.stickyNote",
      "typeVersion": 1,
      "position": [680, 520]
    },
    {
      "parameters": {},
      "id": "33333333-3333-4333-8333-333333333011",
      "name": "Manual Trigger",
      "type": "n8n-nodes-base.manualTrigger",
      "typeVersion": 1,
      "position": [200, 340]
    },
    {
      "parameters": {
        "assignments": {
          "assignments": [
            {
              "id": "c3333333-0001-4000-8000-000000000001",
              "name": "searchStringsArray",
              "value": "={{ [\"marketing agency Bangkok\"] }}",
              "type": "array"
            },
            {
              "id": "c3333333-0001-4000-8000-000000000002",
              "name": "maxCrawledPlacesPerSearch",
              "value": 20,
              "type": "number"
            },
            {
              "id": "c3333333-0001-4000-8000-000000000003",
              "name": "includeDnsChecks",
              "value": true,
              "type": "boolean"
            },
            {
              "id": "c3333333-0001-4000-8000-000000000004",
              "name": "maxPagesPerDomain",
              "value": 3,
              "type": "number"
            }
          ]
        },
        "options": {}
      },
      "id": "33333333-3333-4333-8333-333333333012",
      "name": "Configure Search Query",
      "type": "n8n-nodes-base.set",
      "typeVersion": 3.4,
      "position": [460, 340]
    },
    {
      "parameters": {
        "method": "POST",
        "url": "https://api.apify.com/v2/acts/compass~crawler-google-places/run-sync-get-dataset-items",
        "authentication": "genericCredentialType",
        "genericAuthType": "httpHeaderAuth",
        "sendBody": true,
        "specifyBody": "json",
        "jsonBody": "={{ JSON.stringify({ searchStringsArray: $json.searchStringsArray, maxCrawledPlacesPerSearch: $json.maxCrawledPlacesPerSearch }) }}",
        "options": {}
      },
      "id": "33333333-3333-4333-8333-333333333013",
      "name": "Scrape Local Businesses",
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 4.2,
      "position": [720, 340]
    },
    {
      "parameters": {
        "jsCode": "const seen = new Set();\nconst urls = [];\n\nfor (const item of $input.all()) {\n  const raw = String(item.json?.website || '').trim();\n  if (!raw) continue;\n  const normalized = /^https?:\\/\\//i.test(raw) ? raw : `https://${raw}`;\n  if (seen.has(normalized)) continue;\n  seen.add(normalized);\n  urls.push(normalized);\n}\n\nif (urls.length === 0) return [];\nreturn [{ json: { urls } }];"
      },
      "id": "33333333-3333-4333-8333-333333333014",
      "name": "Extract Unique Domains",
      "type": "n8n-nodes-base.code",
      "typeVersion": 2,
      "position": [980, 340]
    },
    {
      "parameters": {
        "method": "POST",
        "url": "https://api.apify.com/v2/acts/tsun_tsun~website-lead-tech-enricher/run-sync-get-dataset-items",
        "authentication": "genericCredentialType",
        "genericAuthType": "httpHeaderAuth",
        "sendBody": true,
        "specifyBody": "json",
        "jsonBody": "={{ JSON.stringify({ urls: $json.urls, includeDnsChecks: $('Configure Search Query').first().json.includeDnsChecks, maxPagesPerDomain: $('Configure Search Query').first().json.maxPagesPerDomain }) }}",
        "options": {}
      },
      "id": "33333333-3333-4333-8333-333333333015",
      "name": "Enrich Emails & DNS",
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 4.2,
      "position": [1240, 340]
    }
  ],
  "connections": {
    "Manual Trigger": {
      "main": [
        [
          {
            "node": "Configure Search Query",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Configure Search Query": {
      "main": [
        [
          {
            "node": "Scrape Local Businesses",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Scrape Local Businesses": {
      "main": [
        [
          {
            "node": "Extract Unique Domains",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Extract Unique Domains": {
      "main": [
        [
          {
            "node": "Enrich Emails & DNS",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  },
  "active": false,
  "settings": {
    "executionOrder": "v1"
  },
  "pinData": {}
}
