{
  "name": "Search LinkedIn companies, score with AI and add them to Google Sheet CRM",
  "nodes": [
    {
      "id": "ed517555-fff0-4cbb-9ea0-59794b95e6f4",
      "name": "Process Each Company",
      "type": "n8n-nodes-base.splitInBatches",
      "position": [
        520,
        780
      ]
    },
    {
      "id": "5b1c73ea-812f-4623-ad6e-64b52dc33c58",
      "name": "Get Company Info",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        760,
        780
      ]
    },
    {
      "id": "06a1acfb-7aa3-43fa-abd7-0fdf1a5f0cf9",
      "name": "Filter Valid Companies",
      "type": "n8n-nodes-base.if",
      "position": [
        980,
        780
      ]
    },
    {
      "id": "4803085d-ba62-4e38-bf49-af867a909939",
      "name": "Is New Company?",
      "type": "n8n-nodes-base.if",
      "position": [
        1380,
        780
      ]
    },
    {
      "id": "744592d9-bcbe-448d-893d-d8fe4d55bb19",
      "name": "Set Variables",
      "type": "n8n-nodes-base.set",
      "position": [
        -220,
        780
      ]
    },
    {
      "id": "289016bf-2d5f-4bd0-b69d-cc2e2e437015",
      "name": "Search Companies",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        -20,
        780
      ]
    },
    {
      "id": "0ce071a3-bbd2-4f4d-8a09-ed66a63e976f",
      "name": "Extract Company Data",
      "type": "n8n-nodes-base.splitOut",
      "position": [
        180,
        780
      ]
    },
    {
      "id": "3f4b829a-915f-4cce-84e5-c8f5fd92b24d",
      "name": "Check If Company Exists",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        1200,
        780
      ]
    },
    {
      "id": "7e40feaa-c4f9-4d9d-bfbe-1586ca64374b",
      "name": "AI Company Scoring",
      "type": "@n8n/n8n-nodes-langchain.openAi",
      "position": [
        1700,
        800
      ]
    },
    {
      "id": "dfe8263f-a4ed-411f-a962-7dcca478a4be",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -500,
        440
      ],
      "parameters": {
        "width": 860,
        "height": 560,
        "content": "## LinkedIn Company Search\nThis section initiates the workflow and searches for your target companies on LinkedIn using the Ghost Genius API.\n\nYou can filter and refine your search using keywords, com"
      }
    },
    {
      "id": "ec72fb51-1113-435d-b4fb-575d478a7bed",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        440,
        440
      ],
      "parameters": {
        "width": 1120,
        "height": 560,
        "content": "## Company Data Processing \nThis section processes each company individually.\n\nWe retrieve all the company information using Get Company Details by using the LinkedIn link obtained from the previous s"
      }
    },
    {
      "id": "5fe1edea-58fa-44d0-8ae7-4dc2720f1e34",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1640,
        440
      ],
      "parameters": {
        "width": 780,
        "height": 560,
        "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": "bf61dc0f-68a7-4ddc-b281-b03a8d8979c1",
      "name": "Wait 2s",
      "type": "n8n-nodes-base.wait",
      "position": [
        2060,
        800
      ]
    },
    {
      "id": "a428ece3-c4e1-4ba0-826f-3fdb861ba867",
      "name": "Add Company to CRM",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        2260,
        800
      ]
    },
    {
      "id": "66bb5166-a259-433d-afa7-3d08c3fc0291",
      "name": "Sticky Note4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        0,
        0
      ],
      "parameters": {
        "width": 600,
        "height": 380,
        "content": "## Introduction\nWelcome to my template! Before explaining how to set it up, here's some important information:\n\nThis automation is an alternative version of [this template](https://n8n.io/workflows/37"
      }
    },
    {
      "id": "65163811-d0e8-4fbc-8cf6-f7534cdbf952",
      "name": "Sticky Note5",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        680,
        0
      ],
      "parameters": {
        "width": 600,
        "height": 380,
        "content": "## Setup\n- Create an account on [Ghost Genius API](ghostgenius.fr) and get your API key.\n\n- Configure the Search Companies and Get Company Info modules by creating a \"Header Auth\" credential:\n**Name: "
      }
    },
    {
      "id": "46d71790-f8f1-4d27-b1c2-127e86981721",
      "name": "Sticky Note6",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1360,
        0
      ],
      "parameters": {
        "width": 600,
        "height": 380,
        "content": "## Tools \n**(You can use the API and CRM of your choice; this is only a suggestion)**\n\n- API Linkedin : [Ghost Genius API](https://ghostgenius.fr) \n\n- API Documentation : [Documentation](https://ghost"
      }
    },
    {
      "id": "efa59bb6-f08b-449d-90d5-6adef12ed05d",
      "name": "Start",
      "type": "n8n-nodes-base.manualTrigger",
      "position": [
        -420,
        780
      ]
    },
    {
      "id": "1014422f-95c8-4473-8760-acbe7f9f9898",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        880,
        -120
      ],
      "parameters": {
        "width": null,
        "height": 80,
        "content": "# [Setup Video](http://youtube.com/watch?v=m904RNxtF0w&t)\n"
      }
    }
  ],
  "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",
            "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",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Extract Company Data": {
      "main": [
        [
          {
            "node": "Process Each Company",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Process Each Company": {
      "main": [
        [],
        [
          {
            "node": "Get Company Info",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Filter Valid Companies": {
      "main": [
        [
          {
            "node": "Check If Company Exists",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Process Each Company",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Check If Company Exists": {
      "main": [
        [
          {
            "node": "Is New Company?",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}