{
  "name": "LinkedIn lead \u2192 Google Sheets",
  "nodes": [
    {
      "parameters": {
        "httpMethod": "POST",
        "path": "linkedin-lead",
        "responseMode": "onReceived",
        "options": {}
      },
      "id": "9c4f3e03-6739-426f-9e3b-bf1955ef144c",
      "name": "LinkedIn Lead Webhook",
      "type": "n8n-nodes-base.webhook",
      "typeVersion": 2,
      "position": [
        0,
        0
      ],
      "webhookId": "3805f5ae-0c88-42eb-b1f9-0842b40e42f0"
    },
    {
      "parameters": {
        "conditions": {
          "options": {
            "caseSensitive": true,
            "leftValue": "",
            "typeValidation": "loose"
          },
          "conditions": [
            {
              "id": "b5292622-08b3-43e9-8994-ee267e8d5b28",
              "leftValue": "={{ $json.body.type }}",
              "rightValue": "lead",
              "operator": {
                "type": "string",
                "operation": "equals"
              }
            }
          ],
          "combinator": "and"
        },
        "options": {}
      },
      "id": "d51ee7a6-e45d-4f17-92b2-bfed4566703f",
      "name": "Is lead?",
      "type": "n8n-nodes-base.if",
      "typeVersion": 2,
      "position": [
        220,
        0
      ]
    },
    {
      "parameters": {
        "operation": "append",
        "documentId": {
          "__rl": true,
          "value": "",
          "mode": "url"
        },
        "sheetName": {
          "__rl": true,
          "value": "Leads",
          "mode": "name"
        },
        "columns": {
          "mappingMode": "defineBelow",
          "value": {
            "Captured At": "={{ $json.body.capturedAt }}",
            "Full Name": "={{ $json.body.fullName }}",
            "LinkedIn URL": "={{ $json.body.linkedinUrl }}",
            "Source": "={{ $json.body.source }}",
            "Tags": "={{ $json.body.tags }}",
            "Action Did": "={{ $json.body.actionDid }}",
            "Notes": "={{ $json.body.notes }}"
          },
          "matchingColumns": [],
          "schema": [
            {
              "id": "Captured At",
              "displayName": "Captured At",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true
            },
            {
              "id": "Full Name",
              "displayName": "Full Name",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true
            },
            {
              "id": "LinkedIn URL",
              "displayName": "LinkedIn URL",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true
            },
            {
              "id": "Source",
              "displayName": "Source",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true
            },
            {
              "id": "Tags",
              "displayName": "Tags",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true
            },
            {
              "id": "Action Did",
              "displayName": "Action Did",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true
            },
            {
              "id": "Notes",
              "displayName": "Notes",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true
            }
          ]
        },
        "options": {}
      },
      "id": "9b54ac4f-c9db-4e55-b3f5-50b9ac290b55",
      "name": "Append to Leads sheet",
      "type": "n8n-nodes-base.googleSheets",
      "typeVersion": 4.5,
      "position": [
        440,
        -20
      ]
    }
  ],
  "connections": {
    "LinkedIn Lead Webhook": {
      "main": [
        [
          {
            "node": "Is lead?",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Is lead?": {
      "main": [
        [
          {
            "node": "Append to Leads sheet",
            "type": "main",
            "index": 0
          }
        ],
        []
      ]
    }
  },
  "settings": {
    "executionOrder": "v1"
  }
}