{
  "name": "LMCProtocol Sub-Second Lead Qualification",
  "nodes": [
    {
      "parameters": {
        "httpMethod": "POST",
        "path": "enrich-local-leads",
        "responseMode": "lastNode"
      },
      "name": "Webhook Inbound",
      "type": "n8n-nodes-base.webhook",
      "typeVersion": 1,
      "position": [250, 300]
    },
    {
      "parameters": {
        "url": "https://lmcprotocol.com/v1/search",
        "method": "POST",
        "sendBody": true,
        "specifyBody": "json",
        "jsonBody": "={\n  \"query\": $json.trade,\n  \"location\": $json.location,\n  \"limit\": 5,\n  \"filters\": {\n    \"missing_pixel\": true,\n    \"stalled_reviews\": true\n  }\n}",
        "headerParameters": {
          "parameters": [
            {
              "name": "Authorization",
              "value": "=Bearer {{$env.LMCP_API_KEY}}"
            },
            {
              "name": "Content-Type",
              "value": "application/json"
            }
          ]
        }
      },
      "name": "LMCProtocol Telemetry",
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 4.1,
      "position": [450, 300]
    },
    {
      "parameters": {
        "conditions": {
          "boolean": [
            {
              "value1": "={{ $json.data.length > 0 }}",
              "value2": true
            }
          ]
        }
      },
      "name": "Filter Qualified Leads",
      "type": "n8n-nodes-base.if",
      "typeVersion": 1,
      "position": [650, 300]
    }
  ],
  "connections": {
    "Webhook Inbound": {
      "main": [[{ "node": "LMCProtocol Telemetry", "type": "main", "index": 0 }]]
    },
    "LMCProtocol Telemetry": {
      "main": [[{ "node": "Filter Qualified Leads", "type": "main", "index": 0 }]]
    }
  }
}
