{
  "id": "lK0J8tz7PLZUwg6e",
  "name": "My workflow",
  "tags": [],
  "nodes": [
    {
      "id": "7189a1d6-61f0-4c5d-9744-c0d66506ffd6",
      "name": "When clicking \u2018Test workflow\u2019",
      "type": "n8n-nodes-base.manualTrigger",
      "position": [
        0,
        0
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "a92e299a-282f-4dbf-b3fe-50a078d1a098",
      "name": "Loop Over Items",
      "type": "n8n-nodes-base.splitInBatches",
      "position": [
        672,
        0
      ],
      "parameters": {
        "options": {},
        "batchSize": "=1"
      },
      "typeVersion": 3
    },
    {
      "id": "ee95db18-73bc-4655-b197-9e5068107280",
      "name": "Split Out",
      "type": "n8n-nodes-base.splitOut",
      "position": [
        448,
        0
      ],
      "parameters": {
        "options": {},
        "fieldToSplitOut": "data"
      },
      "typeVersion": 1
    },
    {
      "id": "c312a13e-2176-4c50-b1d6-f172213f2ec2",
      "name": "Check if person is a connection",
      "type": "n8n-nodes-browserflow.browserflow",
      "position": [
        928,
        48
      ],
      "parameters": {
        "requestOptions": {}
      },
      "typeVersion": 1
    },
    {
      "id": "bee26d5d-ed98-43e7-8ec3-c3cb23f1cd42",
      "name": "Send Connection invite",
      "type": "n8n-nodes-browserflow.browserflow",
      "position": [
        1344,
        112
      ],
      "parameters": {
        "requestOptions": {}
      },
      "typeVersion": 1
    },
    {
      "id": "79dca4f2-e677-4344-ab3c-f56ff4dd628e",
      "name": "Scrape profiles from a linked in search",
      "type": "n8n-nodes-browserflow.browserflow",
      "position": [
        208,
        0
      ],
      "parameters": {
        "city": "Amsterdam",
        "country": "Netherlands",
        "operation": "scrapeProfilesFromSearch",
        "searchTerm": "Content Marketeer",
        "requestOptions": {}
      },
      "credentials": {
        "browserflowApi": {
          "name": "<your credential>"
        }
      },
      "typeVersion": 1
    },
    {
      "id": "c89f0d55-7cf9-4862-8590-99c6ded8d9ba",
      "name": "Check Connection Status",
      "type": "n8n-nodes-base.if",
      "position": [
        1136,
        80
      ],
      "parameters": {
        "options": {},
        "conditions": {
          "options": {
            "version": 2,
            "leftValue": "",
            "caseSensitive": true,
            "typeValidation": "strict"
          },
          "combinator": "and",
          "conditions": [
            {
              "id": "70827b04-15cf-4415-bcd8-51dad92f200e",
              "operator": {
                "type": "boolean",
                "operation": "false",
                "singleValue": true
              },
              "leftValue": "={{ $json.is_connection }}",
              "rightValue": "true"
            },
            {
              "id": "b9632671-e23e-4873-8308-486d2fda9a7e",
              "operator": {
                "type": "boolean",
                "operation": "false",
                "singleValue": true
              },
              "leftValue": "={{ $json.is_pending }}",
              "rightValue": ""
            }
          ]
        }
      },
      "typeVersion": 2.2
    }
  ],
  "active": false,
  "settings": {
    "executionOrder": "v1"
  },
  "versionId": "ea5acef1-e5b2-41e5-b31e-e28a2a9ea257",
  "connections": {
    "Split Out": {
      "main": [
        [
          {
            "node": "Loop Over Items",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Loop Over Items": {
      "main": [
        [],
        [
          {
            "node": "Check if person is a connection",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Send Connection invite": {
      "main": [
        [
          {
            "node": "Loop Over Items",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Check Connection Status": {
      "main": [
        [
          {
            "node": "Loop Over Items",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Send Connection invite",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Check if person is a connection": {
      "main": [
        [
          {
            "node": "Check Connection Status",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "When clicking \u2018Test workflow\u2019": {
      "main": [
        [
          {
            "node": "Scrape profiles from a linked in search",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Scrape profiles from a linked in search": {
      "main": [
        [
          {
            "node": "Split Out",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}