{
  "name": "Find & score LinkedIn leads with GPT-4 AI and export to Google Sheets CRM",
  "nodes": [
    {
      "id": "fcd5c925-d05f-4ecc-a231-95087d14a6de",
      "name": "Get Company Info",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        -848,
        1008
      ]
    },
    {
      "id": "79e486fe-9262-485e-9d90-b07ad0a2578b",
      "name": "Filter Valid Companies",
      "type": "n8n-nodes-base.if",
      "position": [
        -624,
        1008
      ]
    },
    {
      "id": "400e9a22-af35-490e-ab5e-782e80190e4c",
      "name": "Is New Company?",
      "type": "n8n-nodes-base.if",
      "position": [
        -224,
        1008
      ]
    },
    {
      "id": "ffb1ca3e-6a53-439e-b5c1-df02fc9e0a7b",
      "name": "Set Variables",
      "type": "n8n-nodes-base.set",
      "position": [
        -1824,
        1008
      ]
    },
    {
      "id": "ba73dbff-0ae0-4a1f-adf0-3d60480b0e0c",
      "name": "Search Companies",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        -1616,
        1008
      ]
    },
    {
      "id": "0af27f58-e303-4759-82ad-9d47b37e6492",
      "name": "Extract Company Data",
      "type": "n8n-nodes-base.splitOut",
      "position": [
        -1424,
        1008
      ]
    },
    {
      "id": "e0be6d26-035a-41e8-86e4-2dc926acba76",
      "name": "Check If Company Exists",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        -400,
        1008
      ]
    },
    {
      "id": "3faf8cbe-bd5b-4d8a-83cb-b27abe63f823",
      "name": "AI Company Scoring",
      "type": "@n8n/n8n-nodes-langchain.openAi",
      "position": [
        96,
        1024
      ]
    },
    {
      "id": "b107456d-10b1-4725-abcf-485cf33e46f0",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -2096,
        672
      ],
      "parameters": {
        "width": 860,
        "height": 564,
        "content": "## LinkedIn Company Search\n\nThis section pulls company data from LinkedIn via the Ghost Genius API.\n\nUse the Set Variables node to define filters like keywords, industry, size, location, job openings,"
      }
    },
    {
      "id": "fe70da9f-4788-46ab-94a2-bbb58fd932dc",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1168,
        672
      ],
      "parameters": {
        "width": 1120,
        "height": 564,
        "content": "## Company Data Processing/Validation\n\nEach company is processed individually.\n\nFirst, Get Company Details pulls full company info using the LinkedIn URL from the previous step.\n\nThen, filters qualify"
      }
    },
    {
      "id": "b6268685-d2c7-47e0-a025-95c62482de72",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        32,
        672
      ],
      "parameters": {
        "width": 780,
        "height": 564,
        "content": "## AI Scoring and Storage\nThis section scores the company and stores it in a Google Sheet.\n\nIt's important to properly fill in the \"Set variables\" node at the beginning of the workflow to get a result"
      }
    },
    {
      "id": "8636edb1-c7e3-47a9-9127-35eb8e71cfd0",
      "name": "Wait 2s",
      "type": "n8n-nodes-base.wait",
      "position": [
        464,
        1024
      ]
    },
    {
      "id": "da99a9db-6334-42eb-bb44-6c11a6de1f6a",
      "name": "Add Company to CRM",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        672,
        1024
      ]
    },
    {
      "id": "9efeb40a-5346-48d8-80b0-04fd4a55abfb",
      "name": "Sticky Note4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -2768,
        288
      ],
      "parameters": {
        "width": 600,
        "height": 940,
        "content": "## Introduction\nWelcome to my template! Before explaining how to set it up, here's some important information:\n\nThis automation therefore allows you, starting from a LinkedIn search, to enrich company"
      }
    },
    {
      "id": "6cd2b89b-d0d0-4430-961d-57cdec6175a7",
      "name": "Start",
      "type": "n8n-nodes-base.manualTrigger",
      "position": [
        -2016,
        1008
      ]
    },
    {
      "id": "74e5200a-abf0-457a-96c2-796c2aed0cb8",
      "name": "Process Each Company Batch Control",
      "type": "n8n-nodes-base.splitInBatches",
      "position": [
        -1088,
        1008
      ]
    }
  ],
  "connections": {
    "Start": {
      "main": [
        [
          {
            "node": "Set Variables",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Wait 2s": {
      "main": [
        [
          {
            "node": "Add Company to CRM",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Set Variables": {
      "main": [
        [
          {
            "node": "Search Companies",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Is New Company?": {
      "main": [
        [
          {
            "node": "AI Company Scoring",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Process Each Company Batch Control",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get Company Info": {
      "main": [
        [
          {
            "node": "Filter Valid Companies",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Search Companies": {
      "main": [
        [
          {
            "node": "Extract Company Data",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "AI Company Scoring": {
      "main": [
        [
          {
            "node": "Wait 2s",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Add Company to CRM": {
      "main": [
        [
          {
            "node": "Process Each Company Batch Control",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Extract Company Data": {
      "main": [
        [
          {
            "node": "Process Each Company Batch Control",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Filter Valid Companies": {
      "main": [
        [
          {
            "node": "Check If Company Exists",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Process Each Company Batch Control",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Check If Company Exists": {
      "main": [
        [
          {
            "node": "Is New Company?",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Process Each Company Batch Control": {
      "main": [
        [],
        [
          {
            "node": "Get Company Info",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}