{
  "name": "Extract and score Google Maps Reviews Scraper | $0.25/1K All 10K Reviews data to Google Sheets, CSV, and Slack with Apify",
  "nodes": [
    {
      "parameters": {
        "content": "## Google Maps Reviews Scraper | $0.25/1K All 10K Reviews — Automated Sheets, CSV & Slack Pipeline\n\nBuilt for market research, e-commerce, and growth teams. This workflow runs on a schedule to extract fresh data with the **[google-maps-reviews-scraper Apify Actor](https://apify.com/unitbytes/google-maps-reviews-scraper?fpr=939u3w&fp_sid=n8n_io)** ($0.00035 / item), skips previously seen records, scores each item, logs results to **Google Sheets** and **CSV**, and posts **Slack** alerts for top matches.\n\n### How it works\n1. **Every 6 Hours** triggers the run and loads search settings from **1. Configure Search & Rules**.\n2. **2. Run UnitBytes (google-maps-reviews-scraper)** executes the actor via Apify's synchronous endpoint.\n3. **3. Skip Seen Records** deduplicates items by `review_id` across runs.\n4. **4. Clean & Score Items** and **5. Map Export Fields** normalize fields (`input_url, resolved_url, status, is_active, is_removed`) and compute a 0–100 `priorityScore`.\n5. **6a. Log to Google Sheets** and **6b. Export Backup CSV** store all rows, while **6c. Filter High-Priority Items** sends top matches to **7. Send Slack Alert**.\n\n### Setup\n1. Copy your API token from [google-maps-reviews-scraper on Apify Store](https://apify.com/unitbytes/google-maps-reviews-scraper?fpr=939u3w&fp_sid=n8n_io) into the **HTTP Header Auth** credential (`Authorization: Bearer <TOKEN>`) on node 2.\n2. Edit `actorInput`, `sheetTab`, and `maxTargetPrice` in **1. Configure Search & Rules**.\n3. Connect **Google Sheets** and **Slack** credentials (or test immediately via CSV export).\n\n### Customization\n- Tune `maxTargetPrice` or `priorityKeyword` in node 1 to adjust Slack alert sensitivity.\n- Full schema reference: [https://unitbytes.com/actors/google-maps-reviews-scraper/](https://unitbytes.com/actors/google-maps-reviews-scraper/)",
        "height": 760,
        "width": 560,
        "color": 1
      },
      "id": "ab5af5ed-3275-5e78-8042-568c76cea756",
      "name": "Overview",
      "type": "n8n-nodes-base.stickyNote",
      "typeVersion": 1,
      "position": [
        -640,
        -80
      ]
    },
    {
      "parameters": {
        "content": "## 1. Schedule & Search Settings\nTriggers on schedule and sets target search parameters, Google Sheets tab, and alert thresholds.",
        "height": 380,
        "width": 440,
        "color": 7
      },
      "id": "10d9780d-a5d0-5a64-bb00-7ad819fc5892",
      "name": "Section 1 — Schedule & Settings",
      "type": "n8n-nodes-base.stickyNote",
      "typeVersion": 1,
      "position": [
        0,
        60
      ]
    },
    {
      "parameters": {
        "content": "## 2. Extract & Deduplicate\nRuns the UnitBytes Apify Actor and skips records already processed in previous runs.",
        "height": 380,
        "width": 440,
        "color": 7
      },
      "id": "8f078a87-80f7-5a95-a887-1a301a876fc9",
      "name": "Section 2 — Extract & Deduplicate",
      "type": "n8n-nodes-base.stickyNote",
      "typeVersion": 1,
      "position": [
        460,
        60
      ]
    },
    {
      "parameters": {
        "content": "## 3. Clean, Score & Flatten\nNormalizes fields, parses numeric metrics, and calculates a 0–100 priority score.",
        "height": 380,
        "width": 440,
        "color": 7
      },
      "id": "2cc0c5dd-8752-5479-9677-a53ecc318a89",
      "name": "Section 3 — Clean, Score & Flatten",
      "type": "n8n-nodes-base.stickyNote",
      "typeVersion": 1,
      "position": [
        920,
        60
      ]
    },
    {
      "parameters": {
        "content": "## 4. Sync to Sheets, CSV & Slack\nLogs all new records to Google Sheets and CSV, and routes high-priority matches to Slack.",
        "height": 660,
        "width": 540,
        "color": 7
      },
      "id": "bf4e7c43-bb67-51cf-864f-0d646b33af2b",
      "name": "Section 4 — Sheets, CSV & Slack",
      "type": "n8n-nodes-base.stickyNote",
      "typeVersion": 1,
      "position": [
        1380,
        -80
      ]
    },
    {
      "parameters": {
        "rule": {
          "interval": [
            {
              "field": "hours",
              "hoursInterval": 6
            }
          ]
        }
      },
      "id": "5137aced-107d-57c2-9142-fa3e3cd4656d",
      "name": "Every 6 Hours",
      "type": "n8n-nodes-base.scheduleTrigger",
      "typeVersion": 1.2,
      "position": [
        40,
        220
      ]
    },
    {
      "parameters": {
        "assignments": {
          "assignments": [
            {
              "id": "09d61739-8336-5f91-b2c4-d2e12a703b7c",
              "name": "actorInput",
              "value": "{\"reviewsToCheck\": [\"https://www.google.com/maps/place/Katz's+Delicatessen/@40.722233,-73.987429,17z/\"], \"reviewsSort\": \"newest\", \"language\": \"en\", \"region\": \"us\", \"proxyConfiguration\": {\"useApifyProxy\": true}}",
              "type": "object"
            },
            {
              "id": "49087399-d9eb-5b75-b626-7d7b0a989fa9",
              "name": "sheetTab",
              "value": "MarketplaceDeals",
              "type": "string"
            },
            {
              "id": "1ca2aa74-af33-580f-9fda-d1919d84f403",
              "name": "maxTargetPrice",
              "value": 500,
              "type": "number"
            },
            {
              "id": "745c7853-63cc-56c9-a5b6-90247ad9bf96",
              "name": "priorityKeyword",
              "value": "",
              "type": "string"
            }
          ]
        },
        "options": {}
      },
      "id": "7f4ad24f-b0c2-522e-8ea1-b76f691a2ee2",
      "name": "1. Configure Search & Rules",
      "type": "n8n-nodes-base.set",
      "typeVersion": 3.4,
      "position": [
        260,
        220
      ]
    },
    {
      "parameters": {
        "method": "POST",
        "url": "https://api.apify.com/v2/acts/unitbytes~google-maps-reviews-scraper/run-sync-get-dataset-items?format=json&clean=true",
        "authentication": "genericCredentialType",
        "genericAuthType": "httpHeaderAuth",
        "sendHeaders": true,
        "headerParameters": {
          "parameters": [
            {
              "name": "Content-Type",
              "value": "application/json"
            }
          ]
        },
        "sendBody": true,
        "specifyBody": "json",
        "jsonBody": "={{ JSON.stringify($json.actorInput) }}",
        "options": {
          "timeout": 300000
        }
      },
      "credentials": {
        "httpHeaderAuth": {
          "id": "58e4a8b3-3798-5837-9e9c-c5513711f4d1",
          "name": "Apify API Token (Header Auth)"
        }
      },
      "id": "e0e504bb-a5eb-5a0f-ad2d-a2a91388f375",
      "name": "2. Run UnitBytes (google-maps-reviews-scraper)",
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 4.2,
      "position": [
        500,
        220
      ]
    },
    {
      "parameters": {
        "operation": "removeItemsSeenInPreviousExecutions",
        "dedupeValue": "={{ $json.review_id || $json.id || $json.url }}",
        "options": {}
      },
      "id": "a652f8a2-3382-5748-84e3-e27331a790e4",
      "name": "3. Skip Seen Records",
      "type": "n8n-nodes-base.removeDuplicates",
      "typeVersion": 2,
      "position": [
        720,
        220
      ]
    },
    {
      "parameters": {
        "jsCode": "// Normalize fields, parse numeric metrics, and score items for Slack alerts\nconst config = $('1. Configure Search & Rules').first().json;\nconst threshold = Number(config.maxTargetPrice ?? 500);\nconst keywordFilter = String(config.priorityKeyword || '').trim().toLowerCase();\nconst primaryKeys = [\"input_url\", \"resolved_url\", \"status\", \"is_active\", \"is_removed\", \"review_id\"];\n\nreturn $input.all().map((item) => {\n  const raw = item.json || {};\n  const cleaned = { ...raw };\n\n  for (const k of primaryKeys) {\n    if (typeof cleaned[k] === 'string') {\n      cleaned[k] = cleaned[k].replace(/\\s+/g, ' ').trim();\n    }\n  }\n\n  const recordId = String(cleaned.review_id || cleaned.id || cleaned.url || '');\n  const titleText = String(cleaned.title || cleaned.content || cleaned.body || cleaned.keyword || cleaned.name || cleaned.sellerNick || recordId).slice(0, 180);\n  const itemUrl = String(cleaned.url || cleaned.productUrl || cleaned.taobaoUrl || cleaned.resolved_url || cleaned.input_url || cleaned.contributor_url || '');\n  const rawMetric = cleaned.price ?? cleaned.promotionPrice ?? cleaned.priceMin ?? cleaned.score ?? cleaned.likedCount ?? cleaned.likeCount ?? cleaned.value ?? cleaned.review_stars ?? cleaned.local_guide_level ?? 0;\n  const numericValue = Number(String(rawMetric).replace(/[^0-9.-]/g, '')) || 0;\n\n  let priorityScore = 50;\n  let isHighPriority = false;\n  const mode = 'price_deal';\n\n  if (mode === 'price_deal') {\n    if (numericValue > 0 && numericValue <= threshold) {\n      priorityScore = Math.min(100, Math.round(70 + ((threshold - numericValue) / Math.max(threshold, 1)) * 30));\n      isHighPriority = true;\n    }\n  } else if (mode === 'review_audit') {\n    if (cleaned.is_removed === true || cleaned.is_edited === true || (numericValue > 0 && numericValue <= threshold)) {\n      priorityScore = 95;\n      isHighPriority = true;\n    }\n  } else {\n    if (numericValue >= threshold) {\n      priorityScore = Math.min(100, Math.round(70 + Math.min(numericValue / Math.max(threshold, 1), 3) * 10));\n      isHighPriority = true;\n    }\n  }\n\n  if (keywordFilter && titleText.toLowerCase().includes(keywordFilter)) {\n    priorityScore = Math.min(100, priorityScore + 20);\n    isHighPriority = true;\n  }\n\n  return {\n    json: {\n      ...cleaned,\n      recordId,\n      titleText,\n      itemUrl,\n      numericValue,\n      priorityScore,\n      isHighPriority,\n      alertSummary: `${titleText} (Metric: ${numericValue} | Score: ${priorityScore}/100)`,\n      scrapedAt: new Date().toISOString(),\n    },\n  };\n});"
      },
      "id": "92ce9502-dded-5cda-a7f1-75bae705fd55",
      "name": "4. Clean & Score Items",
      "type": "n8n-nodes-base.code",
      "typeVersion": 2,
      "position": [
        960,
        220
      ]
    },
    {
      "parameters": {
        "assignments": {
          "assignments": [
            {
              "id": "640f5390-3c0d-5113-9512-e74e2bd4d32c",
              "name": "input_url",
              "value": "={{ $json.input_url }}",
              "type": "string"
            },
            {
              "id": "2ea74d1a-7ad8-5cff-9aeb-3f7a87ac74c7",
              "name": "resolved_url",
              "value": "={{ $json.resolved_url }}",
              "type": "string"
            },
            {
              "id": "123516a6-87f6-5d34-9207-77cbac05fc8c",
              "name": "status",
              "value": "={{ $json.status }}",
              "type": "string"
            },
            {
              "id": "2b336f75-668e-5350-a9dd-56dd003208ce",
              "name": "is_active",
              "value": "={{ $json.is_active }}",
              "type": "string"
            },
            {
              "id": "a3394389-e62e-5570-b0dd-c72407de7d72",
              "name": "is_removed",
              "value": "={{ $json.is_removed }}",
              "type": "string"
            },
            {
              "id": "d4f6d62a-dc77-58fc-abab-65168e531757",
              "name": "review_id",
              "value": "={{ $json.review_id }}",
              "type": "string"
            },
            {
              "id": "0851b8cf-9743-5734-b114-63d9bc29adc6",
              "name": "numericValue",
              "value": "={{ $json.numericValue }}",
              "type": "number"
            },
            {
              "id": "369f5e5d-f440-529b-8219-b90d71bdd286",
              "name": "priorityScore",
              "value": "={{ $json.priorityScore }}",
              "type": "number"
            },
            {
              "id": "efb3c227-9c46-59bf-916b-11dd949ca838",
              "name": "isHighPriority",
              "value": "={{ $json.isHighPriority }}",
              "type": "boolean"
            },
            {
              "id": "f2cfd0ba-58f7-52af-abc5-24ecf6576071",
              "name": "alertSummary",
              "value": "={{ $json.alertSummary }}",
              "type": "string"
            },
            {
              "id": "35bb5756-6f1d-52a9-a341-6d13242cf760",
              "name": "scrapedAt",
              "value": "={{ $json.scrapedAt }}",
              "type": "string"
            }
          ]
        },
        "includeOtherFields": true,
        "options": {}
      },
      "id": "1efa2251-1e40-5a8c-9f59-f3dc92049789",
      "name": "5. Map Export Fields",
      "type": "n8n-nodes-base.set",
      "typeVersion": 3.4,
      "position": [
        1180,
        220
      ]
    },
    {
      "parameters": {
        "resource": "sheet",
        "operation": "append",
        "documentId": {
          "__rl": true,
          "mode": "list",
          "value": ""
        },
        "sheetName": {
          "__rl": true,
          "mode": "name",
          "value": "={{ $('1. Configure Search & Rules').first().json.sheetTab }}"
        },
        "columns": {
          "mappingMode": "defineBelow",
          "value": {
            "input_url": "={{ $json.input_url }}",
            "resolved_url": "={{ $json.resolved_url }}",
            "status": "={{ $json.status }}",
            "is_active": "={{ $json.is_active }}",
            "is_removed": "={{ $json.is_removed }}",
            "review_id": "={{ $json.review_id }}",
            "numericValue": "={{ $json.numericValue }}",
            "priorityScore": "={{ $json.priorityScore }}",
            "isHighPriority": "={{ $json.isHighPriority }}",
            "alertSummary": "={{ $json.alertSummary }}",
            "scrapedAt": "={{ $json.scrapedAt }}"
          },
          "matchingColumns": [],
          "schema": [
            {
              "id": "input_url",
              "displayName": "input_url",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true
            },
            {
              "id": "resolved_url",
              "displayName": "resolved_url",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true
            },
            {
              "id": "status",
              "displayName": "status",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true
            },
            {
              "id": "is_active",
              "displayName": "is_active",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true
            },
            {
              "id": "is_removed",
              "displayName": "is_removed",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true
            },
            {
              "id": "review_id",
              "displayName": "review_id",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true
            },
            {
              "id": "numericValue",
              "displayName": "numericValue",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true
            },
            {
              "id": "priorityScore",
              "displayName": "priorityScore",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true
            },
            {
              "id": "isHighPriority",
              "displayName": "isHighPriority",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true
            },
            {
              "id": "alertSummary",
              "displayName": "alertSummary",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true
            },
            {
              "id": "scrapedAt",
              "displayName": "scrapedAt",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true
            }
          ]
        },
        "options": {
          "cellFormat": "RAW"
        }
      },
      "credentials": {
        "googleSheetsOAuth2Api": {
          "id": "392f8733-93e7-5818-aa0c-b1fd35cc5d9c",
          "name": "Google Sheets account"
        }
      },
      "id": "3bbb2aa2-b246-5011-bdad-dd94ab62521b",
      "name": "6a. Log to Google Sheets",
      "type": "n8n-nodes-base.googleSheets",
      "typeVersion": 4.7,
      "position": [
        1440,
        -20
      ]
    },
    {
      "parameters": {
        "operation": "csv",
        "options": {
          "fileName": "google-maps-reviews-scraper-dataset-export.csv"
        }
      },
      "id": "9e273dba-3fc8-5ac6-b9a5-e268efd858bf",
      "name": "6b. Export Backup CSV",
      "type": "n8n-nodes-base.convertToFile",
      "typeVersion": 1.1,
      "position": [
        1440,
        160
      ]
    },
    {
      "parameters": {
        "conditions": {
          "options": {
            "caseSensitive": true,
            "leftValue": "",
            "typeValidation": "loose",
            "version": 2
          },
          "conditions": [
            {
              "id": "c12454dc-a399-5921-b454-8d22ce2a93c3",
              "leftValue": "={{ $json.isHighPriority }}",
              "rightValue": true,
              "operator": {
                "type": "boolean",
                "operation": "true",
                "singleValue": true
              }
            }
          ],
          "combinator": "and"
        },
        "options": {}
      },
      "id": "956c4e31-0770-5013-8d53-eae58c70139b",
      "name": "6c. Filter High-Priority Items",
      "type": "n8n-nodes-base.filter",
      "typeVersion": 2.2,
      "position": [
        1440,
        360
      ]
    },
    {
      "parameters": {
        "resource": "message",
        "operation": "post",
        "select": "channel",
        "channelId": {
          "__rl": true,
          "mode": "list",
          "value": ""
        },
        "messageType": "text",
        "text": "=:bell: *New High-Priority Match (Google Maps Reviews Scraper | $0.25/1K All 10K Reviews)*\n*<{{ $json.itemUrl }}|{{ $json.titleText }}>*\n• *Priority Score:* {{ $json.priorityScore }}/100 ({{ $json.numericValue }})\n• *Record ID:* `{{ $json.recordId }}`\n• *Scraped At:* {{ $json.scrapedAt }}",
        "otherOptions": {
          "includeLinkToWorkflow": false,
          "unfurl_links": false
        }
      },
      "credentials": {
        "slackApi": {
          "id": "6c67b0db-bde1-5e74-9d67-b43b6bfdb500",
          "name": "Slack account"
        }
      },
      "id": "64a830dd-d2a4-5b98-ad91-ca15fc8de25a",
      "name": "7. Send Slack Alert",
      "type": "n8n-nodes-base.slack",
      "typeVersion": 2.3,
      "position": [
        1680,
        360
      ]
    }
  ],
  "connections": {
    "Every 6 Hours": {
      "main": [
        [
          {
            "node": "1. Configure Search & Rules",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "1. Configure Search & Rules": {
      "main": [
        [
          {
            "node": "2. Run UnitBytes (google-maps-reviews-scraper)",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "2. Run UnitBytes (google-maps-reviews-scraper)": {
      "main": [
        [
          {
            "node": "3. Skip Seen Records",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "3. Skip Seen Records": {
      "main": [
        [
          {
            "node": "4. Clean & Score Items",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "4. Clean & Score Items": {
      "main": [
        [
          {
            "node": "5. Map Export Fields",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "5. Map Export Fields": {
      "main": [
        [
          {
            "node": "6a. Log to Google Sheets",
            "type": "main",
            "index": 0
          },
          {
            "node": "6b. Export Backup CSV",
            "type": "main",
            "index": 0
          },
          {
            "node": "6c. Filter High-Priority Items",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "6c. Filter High-Priority Items": {
      "main": [
        [
          {
            "node": "7. Send Slack Alert",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  },
  "pinData": {},
  "settings": {
    "executionOrder": "v1"
  },
  "meta": {
    "templateCredsSetupCompleted": false,
    "instanceId": "030f9420-0ca8-5240-8fe8-208e287a8b19"
  },
  "tags": [
    {
      "name": "Web Scraping"
    },
    {
      "name": "Apify"
    },
    {
      "name": "UnitBytes"
    },
    {
      "name": "Reputation Intelligence"
    }
  ]
}