{
  "name": "EntityStack ($0.09/Domain) — Zero-Retainer Clay Alternative in n8n",
  "nodes": [
    {
      "parameters": {},
      "id": "a1b2c3d4-0001-4000-8000-000000000001",
      "name": "When clicking Execute Workflow",
      "type": "n8n-nodes-base.manualTrigger",
      "typeVersion": 1,
      "position": [220, 300]
    },
    {
      "parameters": {
        "assignments": {
          "assignments": [
            {
              "id": "dom-1",
              "name": "domains",
              "value": "={{ [\"stripe.com\", \"shopify.com\"] }}",
              "type": "array"
            }
          ]
        },
        "options": {}
      },
      "id": "a1b2c3d4-0002-4000-8000-000000000002",
      "name": "Set Target Domains",
      "type": "n8n-nodes-base.set",
      "typeVersion": 3.4,
      "position": [440, 300]
    },
    {
      "parameters": {
        "method": "POST",
        "url": "https://api.apify.com/v2/acts/syncforgecloud~entitystack-lei-tech-intel/run-sync-get-dataset-items?maxTotalChargeUsd=2.00",
        "sendHeaders": true,
        "headerParameters": {
          "parameters": [
            {
              "name": "Authorization",
              "value": "=Bearer {{ $env.APIFY_TOKEN }}"
            },
            {
              "name": "Content-Type",
              "value": "application/json"
            }
          ]
        },
        "sendBody": true,
        "specifyBody": "json",
        "jsonBody": "={{ JSON.stringify({ domains: $json.domains, includeLei: true, includeTechStack: true }) }}",
        "options": {
          "timeout": 120000
        }
      },
      "id": "a1b2c3d4-0003-4000-8000-000000000003",
      "name": "Run EntityStack (Apify PPE)",
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 4.2,
      "position": [680, 300]
    },
    {
      "parameters": {
        "jsCode": "return items.map(item => {\n  const d = item.json || {};\n  const stack = Array.isArray(d.techStack) ? d.techStack.join(', ') : (d.tech_stack || 'N/A');\n  const lei = d.lei || d.leiCode || (d.gleif && d.gleif.lei) || 'Not registered';\n  const dnsScore = d.dnsSecurityScore ?? d.security_score ?? 'N/A';\n  return {\n    json: {\n      domain: d.domain || d.inputDomain || 'unknown',\n      gleif_lei: lei,\n      dns_security_score: dnsScore,\n      tech_stack: stack,\n      crm_note: `Enriched via EntityStack ($0.09-$0.14 PPE) | LEI: ${lei} | DNS Score: ${dnsScore}`\n    }\n  };\n});"
      },
      "id": "a1b2c3d4-0004-4000-8000-000000000004",
      "name": "Format CRM & Outreach Fields",
      "type": "n8n-nodes-base.code",
      "typeVersion": 2,
      "position": [940, 300]
    },
    {
      "parameters": {
        "content": "## EntityStack Zero-Retainer B2B Enrichment ($0.09-$0.14/Domain)\n\n**3-Step Setup:**\n1. Set `APIFY_TOKEN` in your n8n environment variables (or replace the Authorization header with your Apify Bearer token).\n2. Edit `Set Target Domains` (or swap it with a Google Sheets / HubSpot / Webhook node).\n3. Click **Execute Workflow** — hard spend cap `maxTotalChargeUsd=2.00` is built in.\n\n**Actor:** https://apify.com/syncforgecloud/entitystack-lei-tech-intel\n**1-Click Example:** https://apify.com/syncforgecloud/entitystack-lei-tech-intel/examples/entitystack-lei-tech-intel-task",
        "height": 240,
        "width": 520
      },
      "id": "a1b2c3d4-0005-4000-8000-000000000005",
      "name": "Setup Guide",
      "type": "n8n-nodes-base.stickyNote",
      "typeVersion": 1,
      "position": [220, 40]
    }
  ],
  "connections": {
    "When clicking Execute Workflow": {
      "main": [[{ "node": "Set Target Domains", "type": "main", "index": 0 }]]
    },
    "Set Target Domains": {
      "main": [[{ "node": "Run EntityStack (Apify PPE)", "type": "main", "index": 0 }]]
    },
    "Run EntityStack (Apify PPE)": {
      "main": [[{ "node": "Format CRM & Outreach Fields", "type": "main", "index": 0 }]]
    }
  },
  "active": false,
  "settings": { "executionOrder": "v1" },
  "tags": [{ "name": "EntityStack" }, { "name": "Apify" }, { "name": "B2B Enrichment" }]
}
