{
  "name": "Search LinkedIn companies and add them to Airtable CRM",
  "nodes": [
    {
      "id": "a8d454a5-ad6a-4f8a-8f40-63c0324ab503",
      "name": "When clicking ‘Test workflow’",
      "type": "n8n-nodes-base.manualTrigger",
      "position": [
        -220,
        760
      ]
    },
    {
      "id": "d8c42ec9-6df3-41b5-abbf-792cf6ddfcdc",
      "name": "Process Each Company",
      "type": "n8n-nodes-base.splitInBatches",
      "position": [
        720,
        760
      ]
    },
    {
      "id": "64203780-d1c7-44d1-b1c6-cf3068e407e6",
      "name": "Get Company Info",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        960,
        760
      ]
    },
    {
      "id": "d0fdf8ec-65e3-4c70-8e1b-aff54ac21587",
      "name": "Filter Valid Companies",
      "type": "n8n-nodes-base.if",
      "position": [
        1180,
        760
      ]
    },
    {
      "id": "df8c55e8-23cd-4eac-b85c-66fc4ef9ef8d",
      "name": "Check If Company Exists",
      "type": "n8n-nodes-base.airtable",
      "position": [
        1580,
        760
      ]
    },
    {
      "id": "8fad928f-5b7e-48f0-9213-904569ac6689",
      "name": "Is New Company?",
      "type": "n8n-nodes-base.if",
      "position": [
        1820,
        760
      ]
    },
    {
      "id": "fa04a252-b0ef-4672-b523-543f4807ffd6",
      "name": "Add Company to CRM",
      "type": "n8n-nodes-base.airtable",
      "position": [
        2080,
        760
      ]
    },
    {
      "id": "6c92f1fa-f79c-4736-b91c-80404822f8e3",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -260,
        400
      ],
      "parameters": {
        "width": 800,
        "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, co"
      }
    },
    {
      "id": "f573ed2a-64bc-4b9e-89c3-bc160d1a9088",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        620,
        400
      ],
      "parameters": {
        "width": 780,
        "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": "dbea81f2-2f92-4c09-9780-57da8a19958d",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1480,
        400
      ],
      "parameters": {
        "width": 780,
        "height": 560,
        "content": "## CRM Integration\nThis section handles the Airtable CRM integration.\n\nIt first checks if the company already exists in your database (using LinkedIn ID) to prevent duplicates because when you do clos"
      }
    },
    {
      "id": "3a00f315-1f67-4218-9131-6b3074d8074f",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        0,
        0
      ],
      "parameters": {
        "width": 600,
        "height": 340,
        "content": "## Introduction\nWelcome to my template! Before explaining how to set it up, here's some important information:\n\nThis automation is very easy to implement and is designed for anyone wanting to build an"
      }
    },
    {
      "id": "299eddfa-da04-460e-955a-f4227ad6b20d",
      "name": "Sticky Note4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        700,
        0
      ],
      "parameters": {
        "width": 600,
        "height": 340,
        "content": "## Setup\n- Create an account on [Ghost Genius API](https://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"
      }
    },
    {
      "id": "e0f91993-2858-4664-9abd-db68d06f4e7b",
      "name": "Sticky Note5",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1400,
        0
      ],
      "parameters": {
        "width": 600,
        "height": 340,
        "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": "3de54c01-709a-4f21-8b45-81402891ce6b",
      "name": "Set Variables",
      "type": "n8n-nodes-base.set",
      "position": [
        -20,
        760
      ]
    },
    {
      "id": "622bbb9e-0e90-49b9-b6b2-0949a40922d4",
      "name": "Search Companies",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        180,
        760
      ]
    },
    {
      "id": "1568a81b-bd0e-4432-8f44-bbf934f2d835",
      "name": "Extract Company Data",
      "type": "n8n-nodes-base.splitOut",
      "position": [
        380,
        760
      ]
    },
    {
      "id": "40db1c06-36f4-4d74-8fa2-0c18220a0a4f",
      "name": "Sticky Note6",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        820,
        -140
      ],
      "parameters": {
        "width": 380,
        "height": 80,
        "content": "# [Setup API Key Video](https://www.youtube.com/watch?v=12nLy8GWSlE)\n"
      }
    }
  ],
  "connections": {
    "Set Variables": {
      "main": [
        [
          {
            "node": "Search Companies",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Is New Company?": {
      "main": [
        [
          {
            "node": "Add Company to CRM",
            "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
          }
        ]
      ]
    },
    "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
          }
        ]
      ]
    },
    "When clicking ‘Test workflow’": {
      "main": [
        [
          {
            "node": "Set Variables",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}