{
  "name": "Send automated recruitment rejection email at end-of-day (Google Sheets | Gmail)",
  "nodes": [
    {
      "id": "afba507f-8023-4c22-af01-d040e266d257",
      "name": "Schedule Trigger",
      "type": "n8n-nodes-base.scheduleTrigger",
      "position": [
        0,
        0
      ]
    },
    {
      "id": "0f99da8f-7974-4fed-986c-e1985d4ad486",
      "name": "Set: Config",
      "type": "n8n-nodes-base.set",
      "position": [
        220,
        0
      ]
    },
    {
      "id": "504591fe-f969-41cc-87a2-b472916b0d52",
      "name": "Check Weekend Policy",
      "type": "n8n-nodes-base.if",
      "position": [
        420,
        -20
      ]
    },
    {
      "id": "da3d050e-cf10-474b-aced-685cdbff2eb8",
      "name": "Weekend Skip Message",
      "type": "n8n-nodes-base.set",
      "position": [
        640,
        80
      ]
    },
    {
      "id": "ee2c781f-9147-4361-aef7-ed2206f51274",
      "name": "Filter Candidates for Rejection",
      "type": "n8n-nodes-base.code",
      "position": [
        920,
        -140
      ]
    },
    {
      "id": "ad8780bc-7ff2-490c-9c28-437d70002d0d",
      "name": "Is Dry Run?",
      "type": "n8n-nodes-base.if",
      "position": [
        1360,
        -227.38767390945867
      ]
    },
    {
      "id": "7b40df04-318a-4a0f-884f-071ea173e7e0",
      "name": "Dry Run Preview",
      "type": "n8n-nodes-base.code",
      "position": [
        1580,
        -316.6968033946768
      ]
    },
    {
      "id": "47770189-90de-4470-af74-a3a0ce25c842",
      "name": "Process Email Template",
      "type": "n8n-nodes-base.code",
      "position": [
        1580,
        -120
      ]
    },
    {
      "id": "03cba26e-e096-4e03-9b51-2337da836e1e",
      "name": "Has Candidates to Email?",
      "type": "n8n-nodes-base.if",
      "position": [
        1140,
        -140
      ]
    },
    {
      "id": "62b25b62-a7fb-4f89-9929-52f0bd95eb82",
      "name": "No Candidates Message",
      "type": "n8n-nodes-base.set",
      "position": [
        1380,
        60
      ]
    },
    {
      "id": "71d973fc-3439-4141-8d15-92a3809ea4ca",
      "name": "Rate Limit Wait",
      "type": "n8n-nodes-base.wait",
      "position": [
        1800,
        -120
      ]
    },
    {
      "id": "502e0718-c576-4200-9e70-813dc8f00ee1",
      "name": "Log Success",
      "type": "n8n-nodes-base.set",
      "position": [
        2400,
        -120
      ]
    },
    {
      "id": "926bc390-d721-4b13-add3-7bc508a8f0ba",
      "name": "Mark as Sent in Sheet",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        2220,
        -120
      ]
    },
    {
      "id": "52bba329-067e-46a5-aef4-7f28558b16ac",
      "name": "Send Rejection Email1",
      "type": "n8n-nodes-base.gmail",
      "position": [
        2020,
        -120
      ]
    },
    {
      "id": "958eb49a-a567-4608-be1f-52b5291bdbf6",
      "name": "Fetch Candidate Data",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        700,
        -140
      ]
    }
  ],
  "connections": {
    "Is Dry Run?": {
      "main": [
        [
          {
            "node": "Dry Run Preview",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Process Email Template",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Set: Config": {
      "main": [
        [
          {
            "node": "Check Weekend Policy",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Rate Limit Wait": {
      "main": [
        [
          {
            "node": "Send Rejection Email1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Schedule Trigger": {
      "main": [
        [
          {
            "node": "Set: Config",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Check Weekend Policy": {
      "main": [
        [
          {
            "node": "Fetch Candidate Data",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Weekend Skip Message",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Fetch Candidate Data": {
      "main": [
        [
          {
            "node": "Filter Candidates for Rejection",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Mark as Sent in Sheet": {
      "main": [
        [
          {
            "node": "Log Success",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Send Rejection Email1": {
      "main": [
        [
          {
            "node": "Mark as Sent in Sheet",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Process Email Template": {
      "main": [
        [
          {
            "node": "Rate Limit Wait",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Has Candidates to Email?": {
      "main": [
        [
          {
            "node": "Is Dry Run?",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "No Candidates Message",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Filter Candidates for Rejection": {
      "main": [
        [
          {
            "node": "Has Candidates to Email?",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}