{
  "name": "Extract LinkedIn search results into a Google Sheet with SourceGeek",
  "nodes": [
    {
      "id": "90c72224-ada9-450b-a579-00d7b208909c",
      "name": "Import contacts from sales navigator search",
      "type": "n8n-nodes-sourcegeek.sourcegeek",
      "position": [
        704,
        80
      ]
    },
    {
      "id": "d8926517-a421-42ac-8e7e-d7c55abdfbc3",
      "name": "On form submission",
      "type": "n8n-nodes-base.formTrigger",
      "position": [
        32,
        80
      ]
    },
    {
      "id": "82537be8-5fb9-4f37-9f2b-7c5b6393445c",
      "name": "Code in JavaScript",
      "type": "n8n-nodes-base.code",
      "position": [
        256,
        80
      ]
    },
    {
      "id": "21e06fff-ebe3-49e1-85c1-2b04d07bf18d",
      "name": "Switch",
      "type": "n8n-nodes-base.switch",
      "position": [
        480,
        64
      ]
    },
    {
      "id": "c6229a53-5aa3-4a55-a236-cbd7790595df",
      "name": "Import contacts from basic search",
      "type": "n8n-nodes-sourcegeek.sourcegeek",
      "position": [
        704,
        -112
      ]
    },
    {
      "id": "f385b525-a4ec-4504-83bf-008316e7ea85",
      "name": "Import contacts from recruiter search",
      "type": "n8n-nodes-sourcegeek.sourcegeek",
      "position": [
        704,
        272
      ]
    },
    {
      "id": "54d17f29-3ca5-4b49-bfa1-85670159fa6d",
      "name": "Get tool run ID",
      "type": "n8n-nodes-sourcegeek.sourcegeek",
      "position": [
        1152,
        80
      ]
    },
    {
      "id": "d4c77638-f47d-455c-9be4-84050d781123",
      "name": "Get_Run_ID",
      "type": "n8n-nodes-base.code",
      "position": [
        928,
        80
      ]
    },
    {
      "id": "1b1a84b7-2cae-4c42-9380-5a21a3b4033b",
      "name": "Append row in sheet",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        1824,
        -40
      ]
    },
    {
      "id": "f377ba77-c413-4ad6-9581-d31036f2da20",
      "name": "If Job Run is Complete",
      "type": "n8n-nodes-base.if",
      "position": [
        1376,
        8
      ]
    },
    {
      "id": "b4ae3f0a-2704-4951-8742-f3b8c726ad3a",
      "name": "Convert to array for insert",
      "type": "n8n-nodes-base.code",
      "position": [
        1600,
        -40
      ]
    },
    {
      "id": "3fd662bd-5b22-4ccd-b5f4-e5d461341a71",
      "name": "Wait until job is completed",
      "type": "n8n-nodes-base.wait",
      "position": [
        1600,
        176
      ]
    },
    {
      "id": "a7ab59cc-8493-4f0e-8d07-2bff1dc8b620",
      "name": "Sticky Note6",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -352,
        -160
      ],
      "parameters": {
        "width": 272,
        "height": 480,
        "content": "## How it works\nThis workflow can be used to retrieve search results of any LinkedIn platform and append them in a Google Sheet.\n\nFor sending the message from your LinkedIn profile to another LinkedIn"
      }
    },
    {
      "id": "ec6e59b6-759f-4d51-916e-c796928e78cd",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -72,
        -192
      ],
      "parameters": {
        "width": 2096,
        "height": 624,
        "content": "## Getting search results from LinkedIn and placing them in a Google Sheet"
      }
    },
    {
      "id": "866289b6-cc1f-4211-a334-9d67baa582b1",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        0,
        -80
      ],
      "parameters": {
        "width": 160,
        "height": 128,
        "content": "Fill in a LinkedIn search results page from Basic, Sales Navigator or Recruiter"
      }
    },
    {
      "id": "36abfc42-f0fa-4572-a281-4b055fe2dbc5",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        448,
        -80
      ],
      "parameters": {
        "width": 160,
        "height": 128,
        "content": "Check, based on the url, which Action should be taken"
      }
    },
    {
      "id": "c4a9354b-23f9-4056-846e-e8b0e6cf8d8b",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1120,
        -64
      ],
      "parameters": {
        "width": 160,
        "height": 128,
        "content": "Loop through this Action which wait untill the complete list is generated"
      }
    },
    {
      "id": "e36875b1-cbfe-47aa-86e0-8d8ef6bd358d",
      "name": "Sticky Note4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1600,
        -144
      ],
      "parameters": {
        "width": 256,
        "height": 80,
        "content": "When ready, convert the output and append the data to rows in a Google Sheet"
      }
    },
    {
      "id": "df4cce78-74dd-4f95-be21-05feaafbc2f4",
      "name": "Sticky Note5",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1776,
        176
      ],
      "parameters": {
        "width": 160,
        "height": 128,
        "content": "If not ready. wait 5 seconds and try again"
      }
    },
    {
      "id": "0a861c69-81e7-4237-9a4f-613c7d6febcf",
      "name": "Sticky Note7",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        896,
        -64
      ],
      "parameters": {
        "width": 160,
        "height": 128,
        "content": "Returns a Run ID while the actual 'list generating' is happening in the background"
      }
    }
  ],
  "connections": {
    "Switch": {
      "main": [
        [
          {
            "node": "Import contacts from basic search",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Import contacts from sales navigator search",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Import contacts from recruiter search",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get_Run_ID": {
      "main": [
        [
          {
            "node": "Get tool run ID",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get tool run ID": {
      "main": [
        [
          {
            "node": "If Job Run is Complete",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Code in JavaScript": {
      "main": [
        [
          {
            "node": "Switch",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "On form submission": {
      "main": [
        [
          {
            "node": "Code in JavaScript",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Append row in sheet": {
      "main": [
        []
      ]
    },
    "If Job Run is Complete": {
      "main": [
        [
          {
            "node": "Convert to array for insert",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Wait until job is completed",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Convert to array for insert": {
      "main": [
        [
          {
            "node": "Append row in sheet",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Wait until job is completed": {
      "main": [
        [
          {
            "node": "Get tool run ID",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Import contacts from basic search": {
      "main": [
        [
          {
            "node": "Get_Run_ID",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Import contacts from recruiter search": {
      "main": [
        [
          {
            "node": "Get_Run_ID",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Import contacts from sales navigator search": {
      "main": [
        [
          {
            "node": "Get_Run_ID",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}