{
  "name": "TokenEnrich Autonomous SDR Lead Qualification Pipeline",
  "nodes": [
    {
      "parameters": {},
      "id": "1",
      "name": "Lead Webhook / Manual Trigger",
      "type": "n8n-nodes-base.manualTrigger",
      "typeVersion": 1,
      "position": [240, 300]
    },
    {
      "parameters": {
        "batchSize": 50,
        "options": {}
      },
      "id": "2",
      "name": "Split in Batches (50 Leads)",
      "type": "n8n-nodes-base.splitInBatches",
      "typeVersion": 3,
      "position": [460, 300]
    },
    {
      "parameters": {
        "url": "=https://tokenenrich.com/v1/enrich?domain={{ $json.domain }}",
        "authentication": "genericCredentialType",
        "genericAuthType": "httpHeaderAuth",
        "sendHeaders": true,
        "headerParameters": {
          "parameters": [
            {
              "name": "Authorization",
              "value": "Bearer ae_sandbox_trial"
            },
            {
              "name": "Accept",
              "value": "application/json"
            }
          ]
        },
        "options": {
          "timeout": 5000
        }
      },
      "id": "3",
      "name": "TokenEnrich Sub-Second Sockets",
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 4.2,
      "position": [680, 300]
    },
    {
      "parameters": {
        "conditions": {
          "boolean": [
            {
              "value1": "={{ $json.hiring.is_hiring }}",
              "value2": true
            }
          ],
          "string": [
            {
              "value1": "={{ $json.mail_infrastructure.provider }}",
              "operation": "notEqual",
              "value2": "Unknown"
            }
          ]
        }
      },
      "id": "4",
      "name": "High-Intent ICP Filter",
      "type": "n8n-nodes-base.if",
      "typeVersion": 2,
      "position": [900, 300]
    },
    {
      "parameters": {
        "channel": "#leads-high-intent",
        "text": "=🚀 *High-Intent Lead Qualified: {{ $json.company_name }} ({{ $json.domain }})*\n• *Tech Stack:* {{ $json.tech_stack.join(', ') }}\n• *ESP:* {{ $json.mail_infrastructure.provider }}\n• *Hiring:* {{ $json.hiring.ats || 'Active' }}\n• *SOC2:* {{ $json.security.has_soc2 ? '✅ Verified' : 'None' }}\n• *Tokens Consumed:* {{ $json.tokens_used }} tokens",
        "otherOptions": {}
      },
      "id": "5",
      "name": "Route to Slack / CRM",
      "type": "n8n-nodes-base.slack",
      "typeVersion": 2.2,
      "position": [1120, 240]
    }
  ],
  "connections": {
    "Lead Webhook / Manual Trigger": {
      "main": [
        [
          {
            "node": "Split in Batches (50 Leads)",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Split in Batches (50 Leads)": {
      "main": [
        [
          {
            "node": "TokenEnrich Sub-Second Sockets",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "TokenEnrich Sub-Second Sockets": {
      "main": [
        [
          {
            "node": "High-Intent ICP Filter",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "High-Intent ICP Filter": {
      "main": [
        [
          {
            "node": "Route to Slack / CRM",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  },
  "settings": {
    "executionOrder": "v1"
  }
}
