{
  "name": "Candidate Background Verification",
  "nodes": [
    {
      "parameters": {
        "options": {}
      },
      "type": "n8n-nodes-base.splitInBatches",
      "typeVersion": 3,
      "position": [
        224,
        80
      ],
      "id": "4a95af7f-7667-48d4-82ab-cc2c70e9bdf9",
      "name": "Loop Over Items"
    },
    {
      "parameters": {
        "sendTo": "={{ $json[\"Company email\"] }}",
        "subject": "=Employment Verification Request – {{ $json['Candidate Name'] }}",
        "message": "=<!DOCTYPE html>\n<html>\n<head>\n  <meta charset=\"UTF-8\">\n  <title>Employment Verification Request</title>\n</head>\n<body style=\"font-family: Arial, sans-serif; line-height: 1.6; color: #333;\">\n\n  <p>👋 <strong>Hello {{ $json['Comapny name'] }}Team,</strong></p>\n\n  <p>I hope this message finds you well. ✨</p>\n\n  <p>\n    We are currently in the process of verifying the employment details of \n    <strong>{{ $json['Comapny name'] }}</strong>, who has applied for a position with us.  \n    As part of our standard background verification process, we kindly request your confirmation on the following:\n  </p>\n\n  <ul style=\"list-style-type: none; padding: 0;\">\n    <li>📅 <strong>Employment Period:</strong> Could you please confirm the candidate’s start and end dates of employment?</li>\n    <li>🏢 <strong>Designation/Role:</strong> What position did the candidate hold during their tenure?</li>\n    <li>📋 <strong>Key Responsibilities:</strong> What were the candidate’s primary responsibilities in this role?</li>\n    <li>🔄 <strong>Reason for Leaving:</strong> Could you share the reason for the candidate’s separation?</li>\n    <li>🌟 <strong>Overall Performance & Conduct:</strong> How would you evaluate the candidate’s overall performance and behavior at work?</li>\n    <li>✅ <strong>Eligibility for Rehire:</strong> Would this candidate be eligible for rehire at your organization (Yes/No)?</li>\n    <li>🤝 <strong>Teamwork & Collaboration:</strong> How would you describe the candidate’s ability to collaborate with colleagues and work in a team?</li>\n    <li>⏰ <strong>Reliability & Punctuality:</strong> Did the candidate demonstrate reliability and punctuality during their employment?</li>\n  </ul>\n\n  <p>\n    We assure you that all information shared will remain <strong>strictly confidential 🔒</strong>  \n    and will only be used for recruitment purposes.\n  </p>\n\n  <p>\n    Your feedback will be greatly appreciated at your earliest convenience. 🙏\n  </p>\n\n  <p>\n    Thank you for your support and cooperation.\n  </p>\n\n  <p>\n    Warm regards,<br>\n    <strong>InfyOm Technologies</strong>\n  </p>\n\n</body>\n</html>\n",
        "options": {}
      },
      "type": "n8n-nodes-base.gmail",
      "typeVersion": 2.1,
      "position": [
        448,
        0
      ],
      "id": "ccbb5df4-6578-4518-b899-6ef4baa02689",
      "name": "Send a message",
      "webhookId": "c5de3454-26b6-4da6-819a-0b24f775f956",
      "credentials": {
        "gmailOAuth2": {
          "id": "tFIa8CAqigRPLvO1",
          "name": "shivangi-Gmail account"
        }
      }
    },
    {
      "parameters": {
        "content": "## Sample Sheet\nhttps://docs.google.com/spreadsheets/d/1tbIoRP0Zsf2HhJoURB40CL4g9IGFm56kr1qWRfbGjjc/edit?gid=0#gid=0",
        "height": 112,
        "width": 400
      },
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -32,
        -64
      ],
      "typeVersion": 1,
      "id": "0a0f4bba-e896-4132-a5a7-1ea0cee78d23",
      "name": "Sticky Note"
    },
    {
      "parameters": {
        "pollTimes": {
          "item": [
            {
              "mode": "everyMinute"
            }
          ]
        },
        "documentId": {
          "__rl": true,
          "value": "1tbIoRP0Zsf2HhJoURB40CL4g9IGFm56kr1qWRfbGjjc",
          "mode": "list",
          "cachedResultName": "Recruitment --Background Verification",
          "cachedResultUrl": "https://docs.google.com/spreadsheets/d/1tbIoRP0Zsf2HhJoURB40CL4g9IGFm56kr1qWRfbGjjc/edit?usp=drivesdk"
        },
        "sheetName": {
          "__rl": true,
          "value": "gid=0",
          "mode": "list",
          "cachedResultName": "Sheet1",
          "cachedResultUrl": "https://docs.google.com/spreadsheets/d/1tbIoRP0Zsf2HhJoURB40CL4g9IGFm56kr1qWRfbGjjc/edit#gid=0"
        },
        "event": "rowAdded",
        "options": {}
      },
      "type": "n8n-nodes-base.googleSheetsTrigger",
      "typeVersion": 1,
      "position": [
        0,
        80
      ],
      "id": "4a1d50c7-9d40-4a02-9947-9db476a06f07",
      "name": "Get Employment List",
      "credentials": {
        "googleSheetsTriggerOAuth2Api": {
          "id": "sIu8fTsRgLzzSxHV",
          "name": "Google Sheets Trigger account"
        }
      }
    },
    {
      "parameters": {
        "operation": "appendOrUpdate",
        "documentId": {
          "__rl": true,
          "value": "1tbIoRP0Zsf2HhJoURB40CL4g9IGFm56kr1qWRfbGjjc",
          "mode": "list",
          "cachedResultName": "Recruitment --Background Verification",
          "cachedResultUrl": "https://docs.google.com/spreadsheets/d/1tbIoRP0Zsf2HhJoURB40CL4g9IGFm56kr1qWRfbGjjc/edit?usp=drivesdk"
        },
        "sheetName": {
          "__rl": true,
          "value": "gid=0",
          "mode": "list",
          "cachedResultName": "Sheet1",
          "cachedResultUrl": "https://docs.google.com/spreadsheets/d/1tbIoRP0Zsf2HhJoURB40CL4g9IGFm56kr1qWRfbGjjc/edit#gid=0"
        },
        "columns": {
          "mappingMode": "defineBelow",
          "value": {
            "Company email": "={{ $('Loop Over Items').item.json[\"Company email\"] }}",
            "Status": "Send_employment_verification"
          },
          "matchingColumns": [
            "Company email"
          ],
          "schema": [
            {
              "id": "Candidate Name",
              "displayName": "Candidate Name",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "Comapny name",
              "displayName": "Comapny name",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "Company email",
              "displayName": "Company email",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": false
            },
            {
              "id": "Role",
              "displayName": "Role",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "Status",
              "displayName": "Status",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": false
            }
          ],
          "attemptToConvertTypes": false,
          "convertFieldsToString": false
        },
        "options": {}
      },
      "type": "n8n-nodes-base.googleSheets",
      "typeVersion": 4.7,
      "position": [
        672,
        80
      ],
      "id": "d1abfcf7-ff03-4c02-89e9-ff694530b5e1",
      "name": "Status Update",
      "credentials": {
        "googleSheetsOAuth2Api": {
          "id": "oztTa0ZzQpSyJzhB",
          "name": "Google Sheet"
        }
      }
    }
  ],
  "pinData": {},
  "connections": {
    "Loop Over Items": {
      "main": [
        [],
        [
          {
            "node": "Send a message",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Send a message": {
      "main": [
        [
          {
            "node": "Status Update",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get Employment List": {
      "main": [
        [
          {
            "node": "Loop Over Items",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Status Update": {
      "main": [
        [
          {
            "node": "Loop Over Items",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  },
  "active": false,
  "settings": {
    "executionOrder": "v1"
  },
  "versionId": "1804b8f5-bfc6-4081-8b8c-b5f60d9baa29",
  "meta": {
    "templateCredsSetupCompleted": true,
    "instanceId": "9272721148ea09184b6bbb7ce6219dab088562dd450e2df8280d57c2e34c7d84"
  },
  "id": "NM8VQeMrrIrES7nL",
  "tags": []
}