{
  "name": "TokenEnrich - Outbound Data Cost Reducer (70% Savings)",
  "nodes": [
    {
      "parameters": {
        "rule": {
          "interval": [
            {
              "field": "hours",
              "hoursInterval": 24
            }
          ]
        }
      },
      "id": "1",
      "name": "Schedule Trigger / Webhook",
      "type": "n8n-nodes-base.scheduleTrigger",
      "typeVersion": 1.1,
      "position": [
        250,
        300
      ]
    },
    {
      "parameters": {
        "url": "=https://tokenenrich.com/v1/enrich?domain={{ $json.domain }}",
        "authentication": "genericCredentialType",
        "genericAuthType": "httpHeaderAuth",
        "sendHeaders": true,
        "headerParameters": {
          "parameters": [
            {
              "name": "Authorization",
              "value": "Bearer YOUR_TOKENENRICH_API_KEY"
            }
          ]
        },
        "options": {
          "timeout": 3000
        }
      },
      "id": "2",
      "name": "TokenEnrich 140ms Pre-Filter",
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 4.1,
      "position": [
        480,
        300
      ]
    },
    {
      "parameters": {
        "conditions": {
          "options": {
            "caseSensitive": false
          },
          "conditions": [
            {
              "id": "c1",
              "leftValue": "={{ $json.tech_stack.join(',') }}",
              "rightValue": "Shopify,Stripe,Next.js",
              "operator": {
                "type": "string",
                "operation": "contains"
              }
            },
            {
              "id": "c2",
              "leftValue": "={{ $json.mail_infrastructure.provider }}",
              "rightValue": "Google Workspace,Microsoft 365",
              "operator": {
                "type": "string",
                "operation": "contains"
              }
            }
          ],
          "combinator": "or"
        }
      },
      "id": "3",
      "name": "Filter: Qualified ICP Only",
      "type": "n8n-nodes-base.if",
      "typeVersion": 2,
      "position": [
        720,
        300
      ]
    },
    {
      "parameters": {
        "url": "https://api.apollo.io/v1/people/match",
        "method": "POST",
        "sendBody": true,
        "specifyBody": "json",
        "jsonBody": "={\n  \"domain\": \"{{ $('TokenEnrich 140ms Pre-Filter').item.json.domain }}\",\n  \"reveal_personal_emails\": true\n}",
        "options": {}
      },
      "id": "4",
      "name": "Apollo / Hunter (Qualified Only)",
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 4.1,
      "position": [
        960,
        200
      ]
    },
    {
      "parameters": {
        "values": {
          "string": [
            {
              "name": "status",
              "value": "Disqualified - Saved $0.20 Contact Lookup Cost"
            }
          ]
        },
        "options": {}
      },
      "id": "5",
      "name": "Discard / Log Cost Saved",
      "type": "n8n-nodes-base.set",
      "typeVersion": 3.2,
      "position": [
        960,
        420
      ]
    }
  ],
  "connections": {
    "Schedule Trigger / Webhook": {
      "main": [
        [
          {
            "node": "TokenEnrich 140ms Pre-Filter",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "TokenEnrich 140ms Pre-Filter": {
      "main": [
        [
          {
            "node": "Filter: Qualified ICP Only",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Filter: Qualified ICP Only": {
      "main": [
        [
          {
            "node": "Apollo / Hunter (Qualified Only)",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Discard / Log Cost Saved",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  },
  "active": false,
  "settings": {
    "executionOrder": "v1"
  }
}