{
  "name": "Enrich new signups with LinkedIn company data (Veezee)",
  "nodes": [
    {
      "parameters": {
        "content": "### Enrich new signups with LinkedIn company data (Veezee)\n\n**Who it's for:** teams that want new signups auto-enriched with company data the moment a webhook fires (signup form, CRM event, etc).\n\n**What it does:** takes an email or a company domain, looks up the company via the Veezee API, and returns name, industry, employee count, and website.\n\n**Setup:**\n1. Create a credential: type Header Auth, name it exactly `Veezee API`, header name `Authorization`, header value `Bearer <your key>`.\n2. Get a key: `POST https://api.veezee.io/v1/provision` returns a free trial key with 500 credits, no signup required.\n3. Open the **Get company** node below and select the `Veezee API` credential.\n4. Activate this workflow and send signup events to the webhook's production URL.\n\n**Input body:** `{ \"email\": \"jane@acme.com\", \"company_domain\": \"acme.com\" }`. Either field works; `company_domain` is used first if both are present.",
        "height": 460,
        "width": 480
      },
      "type": "n8n-nodes-base.stickyNote",
      "typeVersion": 1,
      "position": [-40, -520],
      "id": "73750c86-27e3-434c-b015-a98847b27023",
      "name": "Setup notes"
    },
    {
      "parameters": {
        "httpMethod": "POST",
        "path": "enrich-signup",
        "responseMode": "lastNode",
        "options": {}
      },
      "type": "n8n-nodes-base.webhook",
      "typeVersion": 2.1,
      "position": [0, 0],
      "id": "a3397f42-42e3-42b0-ad85-059bd7862d77",
      "name": "Webhook",
      "webhookId": "a3397f42-42e3-42b0-ad85-059bd7862d77"
    },
    {
      "parameters": {
        "method": "GET",
        "url": "https://api.veezee.io/v1/companies",
        "authentication": "genericCredentialType",
        "genericAuthType": "httpHeaderAuth",
        "sendQuery": true,
        "specifyQuery": "keypair",
        "queryParameters": {
          "parameters": [
            {
              "name": "identifier",
              "value": "={{ $json.body.company_domain || $json.body.email.split(\"@\")[1] }}"
            }
          ]
        },
        "sendHeaders": true,
        "specifyHeaders": "keypair",
        "headerParameters": {
          "parameters": [
            {
              "name": "Idempotency-Key",
              "value": "={{ $execution.id }}-{{ $itemIndex }}"
            }
          ]
        },
        "options": {}
      },
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 4.4,
      "position": [260, 0],
      "id": "0a3bc087-0cff-4ebb-ae76-f7a9c349525d",
      "name": "Get company",
      "credentials": {
        "httpHeaderAuth": {
          "id": "PLACEHOLDER",
          "name": "Veezee API"
        }
      }
    },
    {
      "parameters": {
        "mode": "manual",
        "duplicateItem": false,
        "assignments": {
          "assignments": [
            {
              "id": "bca8b123-f7a9-4a94-8a01-368b33c60feb",
              "name": "company_name",
              "value": "={{ $json.common.name }}",
              "type": "string"
            },
            {
              "id": "f43cb38f-d7de-4e9a-ab1a-09c21adf2948",
              "name": "industry",
              "value": "={{ ($json.common.industry || []).join(\", \") }}",
              "type": "string"
            },
            {
              "id": "bd125741-29a3-4dae-92e8-bbf8fcaa2a82",
              "name": "employee_count",
              "value": "={{ $json.common.employee_count }}",
              "type": "number"
            },
            {
              "id": "1a6b9312-2c76-435b-856d-4afd987572ea",
              "name": "website",
              "value": "={{ $json.common.website_url }}",
              "type": "string"
            }
          ]
        },
        "options": {}
      },
      "type": "n8n-nodes-base.set",
      "typeVersion": 3.4,
      "position": [520, 0],
      "id": "88a78ac9-5357-40b0-a3a7-5e3e0aab7c1e",
      "name": "Build enriched fields"
    }
  ],
  "connections": {
    "Webhook": {
      "main": [
        [
          {
            "node": "Get company",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get company": {
      "main": [
        [
          {
            "node": "Build enriched fields",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  },
  "pinData": {},
  "settings": {
    "executionOrder": "v1"
  },
  "meta": {
    "templateCredsSetupCompleted": true
  }
}
