{
  "name": "LinkedIn Lead Gen - Sync to CRM",
  "nodes": [
    {
      "parameters": {
        "rule": {
          "interval": [
            {
              "field": "minutes",
              "minutesInterval": 15
            }
          ]
        }
      },
      "id": "06428705-59d6-4c82-b822-e6319a903441",
      "name": "Every 15 min",
      "type": "n8n-nodes-base.scheduleTrigger",
      "typeVersion": 1.2,
      "position": [
        260,
        300
      ]
    },
    {
      "parameters": {
        "method": "GET",
        "url": "https://api.linkedin.com/rest/leadFormResponses",
        "authentication": "predefinedCredentialType"
      },
      "id": "df8560de-6af7-462a-b26f-c1c01dbe9539",
      "name": "Fetch Lead Gen Forms",
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 4.2,
      "position": [
        560,
        300
      ],
      "notes": "Assign LinkedIn OAuth2 credentials."
    },
    {
      "parameters": {
        "method": "GET",
        "url": "=https://person.clearbit.com/v2/combined/find?email={{ $json.email }}",
        "authentication": "predefinedCredentialType"
      },
      "id": "f0188a88-1b91-41dd-a456-e2181e2b57b4",
      "name": "Enrich (Clearbit)",
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 4.2,
      "position": [
        860,
        300
      ]
    },
    {
      "parameters": {
        "resource": "lead",
        "operation": "create"
      },
      "id": "678b4ee1-7b26-4f50-b59a-9e39d8a3503a",
      "name": "Create Lead",
      "type": "n8n-nodes-base.salesforce",
      "typeVersion": 2,
      "position": [
        1160,
        300
      ],
      "notes": "Assign Salesforce credentials."
    },
    {
      "parameters": {
        "select": "channel",
        "text": "=New LinkedIn lead synced: {{ $json.email }}"
      },
      "id": "462d7542-328d-42e9-aaed-38062297cbfd",
      "name": "Notify Owner",
      "type": "n8n-nodes-base.slack",
      "typeVersion": 2.3,
      "position": [
        260,
        520
      ]
    }
  ],
  "connections": {
    "Every 15 min": {
      "main": [
        [
          {
            "node": "Fetch Lead Gen Forms",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Fetch Lead Gen Forms": {
      "main": [
        [
          {
            "node": "Enrich (Clearbit)",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Enrich (Clearbit)": {
      "main": [
        [
          {
            "node": "Create Lead",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Create Lead": {
      "main": [
        [
          {
            "node": "Notify Owner",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  },
  "active": false,
  "settings": {
    "executionOrder": "v1"
  },
  "pinData": {}
}
