{
  "name": "Research a lead before the call (Veezee)",
  "nodes": [
    {
      "parameters": {
        "content": "### Research a lead before the call (Veezee)\n\n**Who it's for:** sales and success teams who want a quick research brief pulled together right before a call.\n\n**What it does:** takes a LinkedIn profile URL, or a name plus company, and returns a compact research summary. If a profile URL is given it looks up that profile directly; otherwise it searches people by name and company.\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 both **Get profile** and **Search people** nodes below and select the `Veezee API` credential.\n4. Activate this workflow and send it lead details before each call (from a calendar automation, CRM, or manual trigger).\n\n**Input body:** `{ \"profile_url\": \"https://www.linkedin.com/in/example\" }` OR `{ \"name\": \"Jane Doe\", \"company\": \"Acme\" }`.",
        "height": 460,
        "width": 500
      },
      "type": "n8n-nodes-base.stickyNote",
      "typeVersion": 1,
      "position": [-40, -560],
      "id": "9abeae81-18f7-47db-a809-ebef4439333c",
      "name": "Setup notes"
    },
    {
      "parameters": {
        "httpMethod": "POST",
        "path": "research-lead",
        "responseMode": "lastNode",
        "options": {}
      },
      "type": "n8n-nodes-base.webhook",
      "typeVersion": 2.1,
      "position": [0, 0],
      "id": "ff867e21-cdd7-41c4-b90a-2fc8aad259a8",
      "name": "Webhook",
      "webhookId": "ff867e21-cdd7-41c4-b90a-2fc8aad259a8"
    },
    {
      "parameters": {
        "conditions": {
          "options": {
            "caseSensitive": true,
            "leftValue": "",
            "typeValidation": "strict"
          },
          "conditions": [
            {
              "id": "a028310a-ba8e-4b48-87e4-7ac97a03cacd",
              "leftValue": "={{ $json.body.profile_url }}",
              "rightValue": "",
              "operator": {
                "type": "string",
                "operation": "notEmpty",
                "singleValue": true
              }
            }
          ],
          "combinator": "and"
        },
        "options": {}
      },
      "type": "n8n-nodes-base.if",
      "typeVersion": 2.2,
      "position": [260, 0],
      "id": "9345c149-feac-4ff6-8506-db47d0ae6047",
      "name": "Has profile URL?"
    },
    {
      "parameters": {
        "method": "GET",
        "url": "https://api.veezee.io/v1/profiles",
        "authentication": "genericCredentialType",
        "genericAuthType": "httpHeaderAuth",
        "sendQuery": true,
        "specifyQuery": "keypair",
        "queryParameters": {
          "parameters": [
            {
              "name": "identifier",
              "value": "={{ $json.body.profile_url }}"
            },
            {
              "name": "sections",
              "value": "experience"
            }
          ]
        },
        "sendHeaders": true,
        "specifyHeaders": "keypair",
        "headerParameters": {
          "parameters": [
            {
              "name": "Idempotency-Key",
              "value": "={{ $execution.id }}-{{ $itemIndex }}"
            }
          ]
        },
        "options": {}
      },
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 4.4,
      "position": [520, -120],
      "id": "ea0278c6-dbec-4893-a0b6-40e37a030805",
      "name": "Get profile",
      "credentials": {
        "httpHeaderAuth": {
          "id": "PLACEHOLDER",
          "name": "Veezee API"
        }
      }
    },
    {
      "parameters": {
        "method": "GET",
        "url": "https://api.veezee.io/v1/people",
        "authentication": "genericCredentialType",
        "genericAuthType": "httpHeaderAuth",
        "sendQuery": true,
        "specifyQuery": "keypair",
        "queryParameters": {
          "parameters": [
            {
              "name": "keywords",
              "value": "={{ $json.body.name }}"
            },
            {
              "name": "current_company",
              "value": "={{ $json.body.company }}"
            },
            {
              "name": "limit",
              "value": "10"
            }
          ]
        },
        "sendHeaders": true,
        "specifyHeaders": "keypair",
        "headerParameters": {
          "parameters": [
            {
              "name": "Idempotency-Key",
              "value": "={{ $execution.id }}-{{ $itemIndex }}"
            }
          ]
        },
        "options": {}
      },
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 4.4,
      "position": [520, 140],
      "id": "63dcf897-8f76-40a8-90c2-01f73ba9c143",
      "name": "Search people",
      "credentials": {
        "httpHeaderAuth": {
          "id": "PLACEHOLDER",
          "name": "Veezee API"
        }
      }
    },
    {
      "parameters": {
        "mode": "manual",
        "duplicateItem": false,
        "assignments": {
          "assignments": [
            {
              "id": "8f008f9c-858b-4475-83a4-2f7be9330255",
              "name": "research_type",
              "value": "profile_lookup",
              "type": "string"
            },
            {
              "id": "f2b98db1-cbd5-4c31-81c9-0926e62f802a",
              "name": "name",
              "value": "={{ $json.common.full_name }}",
              "type": "string"
            },
            {
              "id": "9ea65c15-fdfb-4195-ac7b-35034ce485fe",
              "name": "headline",
              "value": "={{ $json.common.headline }}",
              "type": "string"
            },
            {
              "id": "30e0a496-07fb-472b-b82d-ae6db11adf2d",
              "name": "current_position",
              "value": "={{ $json.common.current_position }}",
              "type": "object"
            },
            {
              "id": "1793131e-c156-4a85-99fe-68564fe22505",
              "name": "experience",
              "value": "={{ $json.common.experience }}",
              "type": "array"
            },
            {
              "id": "237eef90-01f3-458c-92a5-5b386d59166e",
              "name": "profile_url",
              "value": "={{ $('Webhook').first().json.body.profile_url }}",
              "type": "string"
            }
          ]
        },
        "options": {}
      },
      "type": "n8n-nodes-base.set",
      "typeVersion": 3.4,
      "position": [780, -120],
      "id": "5a511ae3-bc5d-4ef3-89ab-eb54a6e5d911",
      "name": "Build profile summary"
    },
    {
      "parameters": {
        "mode": "manual",
        "duplicateItem": false,
        "assignments": {
          "assignments": [
            {
              "id": "c1384d33-2972-4f25-809b-63f14a415147",
              "name": "research_type",
              "value": "people_search",
              "type": "string"
            },
            {
              "id": "7c0b2088-3d74-4daa-9980-e152ed511b53",
              "name": "searched_name",
              "value": "={{ $('Webhook').first().json.body.name }}",
              "type": "string"
            },
            {
              "id": "4808cb71-6318-45f9-a2e6-84b583d277d1",
              "name": "searched_company",
              "value": "={{ $('Webhook').first().json.body.company }}",
              "type": "string"
            },
            {
              "id": "ecd83804-d6ac-4f76-bdb0-801fa02adeaa",
              "name": "results",
              "value": "={{ $json.common.results }}",
              "type": "array"
            },
            {
              "id": "1a9e0f65-0495-49a6-9125-aa4083bb4299",
              "name": "result_count",
              "value": "={{ $json.common.results ? $json.common.results.length : 0 }}",
              "type": "number"
            }
          ]
        },
        "options": {}
      },
      "type": "n8n-nodes-base.set",
      "typeVersion": 3.4,
      "position": [780, 140],
      "id": "8535c7bc-770b-41d8-9a4d-a850143e93df",
      "name": "Build people summary"
    }
  ],
  "connections": {
    "Webhook": {
      "main": [
        [
          {
            "node": "Has profile URL?",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Has profile URL?": {
      "main": [
        [
          {
            "node": "Get profile",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Search people",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get profile": {
      "main": [
        [
          {
            "node": "Build profile summary",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Search people": {
      "main": [
        [
          {
            "node": "Build people summary",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  },
  "pinData": {},
  "settings": {
    "executionOrder": "v1"
  },
  "meta": {
    "templateCredsSetupCompleted": true
  }
}
