{
  "name": "Collect LinkedIn profiles with SerpAPI Google Search and Sheets",
  "nodes": [
    {
      "id": "55003493-01ab-4ea1-a22e-d2d97df0fa71",
      "name": "On form submission",
      "type": "n8n-nodes-base.formTrigger",
      "position": [
        -1536,
        48
      ]
    },
    {
      "id": "9a9b9b56-a179-41b6-a7ae-8723d92510de",
      "name": "Format Keywords",
      "type": "n8n-nodes-base.set",
      "position": [
        -1296,
        48
      ]
    },
    {
      "id": "50b03fa5-2e7c-4e4a-a575-8ca09aa95e71",
      "name": "Build Page List",
      "type": "n8n-nodes-base.code",
      "position": [
        -1008,
        48
      ]
    },
    {
      "id": "bc93179f-578b-4fd1-9701-8fefb5f3f650",
      "name": "SerpAPI Search",
      "type": "n8n-nodes-serpapi.serpApi",
      "position": [
        -480,
        64
      ]
    },
    {
      "id": "e3a373df-29f4-408d-a286-9a2761c30b49",
      "name": "Check how many results are returned",
      "type": "n8n-nodes-base.switch",
      "position": [
        -256,
        64
      ]
    },
    {
      "id": "aaa5aa78-d3c0-474b-8329-2a9f17012540",
      "name": "No profiles found",
      "type": "n8n-nodes-base.form",
      "position": [
        -80,
        -160
      ]
    },
    {
      "id": "7529e706-afb5-4878-a388-2ff04fd67842",
      "name": "Split Out",
      "type": "n8n-nodes-base.splitOut",
      "position": [
        -80,
        288
      ]
    },
    {
      "id": "20e568aa-9be7-4d97-85f1-a01725300699",
      "name": "Get Full Name to property of object",
      "type": "n8n-nodes-base.code",
      "position": [
        112,
        288
      ]
    },
    {
      "id": "c7331bd5-8680-4651-97f4-6a09c0b40fe2",
      "name": "Append profile in sheet",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        368,
        288
      ]
    },
    {
      "id": "119be8c8-5b9e-44a8-a845-2a2e34ed2baa",
      "name": "Form Response",
      "type": "n8n-nodes-base.form",
      "position": [
        -480,
        -384
      ]
    },
    {
      "id": "87fe340d-f481-4158-954a-136150adbdad",
      "name": "Loop Over Items",
      "type": "n8n-nodes-base.splitInBatches",
      "position": [
        -768,
        48
      ]
    },
    {
      "id": "0b168e74-c995-4bd0-9b24-9bdf997c1570",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1392,
        -224
      ],
      "parameters": {
        "width": 288,
        "height": 432,
        "content": "## Change form data to query \n```\nelemnt1, element2\n```\nchanged to \n```\n(\"elemnt1\") (\"element2\")\n```"
      }
    },
    {
      "id": "367edf17-e444-426b-aeb6-f6385fbbdff4",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -560,
        -64
      ],
      "parameters": {
        "width": null,
        "height": 304,
        "content": "## Google query\nSerpAPI used to make a query"
      }
    },
    {
      "id": "6915509d-bba4-4ce3-83c5-65faa6599fbc",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        288,
        -16
      ],
      "parameters": {
        "width": null,
        "height": 464,
        "content": "## Save profiles in Google Sheet\n\nSetup Google Sheet with the following columns:\n- Date\n- Profile\n- Keywords\n\n"
      }
    }
  ],
  "connections": {
    "Split Out": {
      "main": [
        [
          {
            "node": "Get Full Name to property of object",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "SerpAPI Search": {
      "main": [
        [
          {
            "node": "Check how many results are returned",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Build Page List": {
      "main": [
        [
          {
            "node": "Loop Over Items",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Format Keywords": {
      "main": [
        [
          {
            "node": "Build Page List",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Loop Over Items": {
      "main": [
        [
          {
            "node": "Form Response",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "SerpAPI Search",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "On form submission": {
      "main": [
        [
          {
            "node": "Format Keywords",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Append profile in sheet": {
      "main": [
        [
          {
            "node": "Loop Over Items",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Check how many results are returned": {
      "main": [
        [
          {
            "node": "No profiles found",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Split Out",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get Full Name to property of object": {
      "main": [
        [
          {
            "node": "Append profile in sheet",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}