{
  "name": "Automate Glassdoor job search with Bright Data scraping & Google Sheets storage",
  "nodes": [
    {
      "id": "ce3a7e97-41b6-49fc-ae23-cbf65044a974",
      "name": "On form submission",
      "type": "n8n-nodes-base.formTrigger",
      "position": [
        -800,
        0
      ]
    },
    {
      "id": "10cbb574-3967-490a-9c57-c1140a04af00",
      "name": "Check Delivery Status of Snap ID",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        -280,
        0
      ]
    },
    {
      "id": "c1090f01-84ab-4586-8c0e-4a2f3a5fc389",
      "name": "Check Final Status",
      "type": "n8n-nodes-base.if",
      "position": [
        220,
        0
      ]
    },
    {
      "id": "1cc8376f-393f-48cc-8bb3-93cfafa28d58",
      "name": "Wait 1 minute",
      "type": "n8n-nodes-base.wait",
      "position": [
        -20,
        0
      ]
    },
    {
      "id": "c9157c5c-bcab-462c-9ace-6f5e456e186c",
      "name": "Scrap data",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        -580,
        0
      ]
    },
    {
      "id": "f1a0e9ed-ced0-4eb6-8eeb-6c7537c7822f",
      "name": "Getting Job Lists",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        480,
        -20
      ]
    },
    {
      "id": "558543dc-af03-4033-990a-d850614150fe",
      "name": "Update List",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        820,
        -20
      ]
    },
    {
      "id": "2ad5e448-ae48-4ae8-a8e7-243101810613",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -880,
        -100
      ],
      "parameters": {
        "width": null,
        "height": 260,
        "content": "Triggers the workflow when the user submits the job type, location, and country via form."
      }
    },
    {
      "id": "02a1a60f-b11f-4981-81c3-c4e86f2e95d2",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -620,
        -100
      ],
      "parameters": {
        "width": 260,
        "height": 260,
        "content": "Calls Bright Data API to initiate scraping Glassdoor job listings based on the form input (keyword, location, country)."
      }
    },
    {
      "id": "32d05b44-e78e-4f09-9626-c25bbc1b8c6b",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -60,
        -100
      ],
      "parameters": {
        "width": 220,
        "height": 260,
        "content": "Pauses the workflow for 1 minute before rechecking status (to allow data generation)."
      }
    },
    {
      "id": "b7085f2b-c2ae-4f68-926d-ca6658ea9215",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -340,
        -100
      ],
      "parameters": {
        "width": 260,
        "height": 260,
        "content": "Checks the scraping task's status using Bright Data snapshot ID to monitor progress."
      }
    },
    {
      "id": "eee21db7-8bad-4c59-9dcd-ab95eb5501c9",
      "name": "Sticky Note4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        420,
        -100
      ],
      "parameters": {
        "width": 280,
        "height": 280,
        "content": "Conditional node that checks if Bright Data has marked the scraping job as \"ready\". Loops back to check if not ready."
      }
    },
    {
      "id": "9b59c3c5-8e07-4082-a8b9-6657055d4e5f",
      "name": "Sticky Note5",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        720,
        -120
      ],
      "parameters": {
        "width": 280,
        "height": 340,
        "content": "Appends or updates job data (title, company, rating, location, link) in Google Sheets under the \"Glassdoor Scraper by keyword\" tab."
      }
    }
  ],
  "connections": {
    "Scrap data": {
      "main": [
        [
          {
            "node": "Check Delivery Status of Snap ID",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Wait 1 minute": {
      "main": [
        [
          {
            "node": "Check Final Status",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Getting Job Lists": {
      "main": [
        [
          {
            "node": "Update List",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Check Final Status": {
      "main": [
        [
          {
            "node": "Getting Job Lists",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Check Delivery Status of Snap ID",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "On form submission": {
      "main": [
        [
          {
            "node": "Scrap data",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Check Delivery Status of Snap ID": {
      "main": [
        [
          {
            "node": "Wait 1 minute",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}