{
  "name": "Leadmaps — weekly local B2B prospecting",
  "nodes": [
    {
      "name": "Cron — Monday 07:00",
      "type": "n8n-nodes-base.scheduleTrigger",
      "typeVersion": 1.2,
      "position": [0, 0],
      "parameters": {
        "rule": { "interval": [{ "field": "weeks", "triggerAtDay": [1], "triggerAtHour": 7 }] }
      }
    },
    {
      "name": "HTTP — GET /v1/places",
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 4.2,
      "position": [220, 0],
      "parameters": {
        "url": "https://api.leadmaps.io/v1/places",
        "sendQuery": true,
        "queryParameters": {
          "parameters": [
            { "name": "category", "value": "real_estate_agency" },
            { "name": "city", "value": "Lille" },
            { "name": "min_rating", "value": "4.4" }
          ]
        },
        "sendHeaders": true,
        "headerParameters": {
          "parameters": [{ "name": "Authorization", "value": "Bearer lm_live_REPLACE_ME" }]
        }
      }
    },
    {
      "name": "Filter — has_website",
      "type": "n8n-nodes-base.filter",
      "typeVersion": 2,
      "position": [440, 0],
      "parameters": {
        "conditions": { "boolean": [{ "value1": "={{ $json.has_website }}", "value2": true }] }
      }
    },
    {
      "name": "Google Sheets — append",
      "type": "n8n-nodes-base.googleSheets",
      "typeVersion": 4.5,
      "position": [660, 0],
      "parameters": { "operation": "append", "documentId": "REPLACE_ME", "sheetName": "Leads" }
    }
  ],
  "connections": {
    "Cron — Monday 07:00": { "main": [[{ "node": "HTTP — GET /v1/places", "type": "main", "index": 0 }]] },
    "HTTP — GET /v1/places": { "main": [[{ "node": "Filter — has_website", "type": "main", "index": 0 }]] },
    "Filter — has_website": { "main": [[{ "node": "Google Sheets — append", "type": "main", "index": 0 }]] }
  }
}
