{
  "name": "Offer Letter Generation & Onboarding",
  "nodes": [
    {
      "parameters": {
        "pollTimes": {
          "item": [
            {
              "mode": "everyMinute"
            }
          ]
        },
        "documentId": {
          "__rl": true,
          "value": "15emSCM6Ui3O7oH2BXcorZJUi2BbWpZKCTcqq-Iyn0Kk",
          "mode": "list",
          "cachedResultName": "Onboarding Workflows"
        },
        "sheetName": {
          "__rl": true,
          "value": "gid=0",
          "mode": "list",
          "cachedResultName": "Sheet1"
        },
        "options": {}
      },
      "type": "n8n-nodes-base.googleSheetsTrigger",
      "typeVersion": 1,
      "position": [
        -512,
        -32
      ],
      "id": "33b79605-ca97-4f5e-b878-2390840fd1b2",
      "name": "Google Sheets Trigger",
      "credentials": {
        "googleSheetsTriggerOAuth2Api": {
          "id": "E6WQvM7hYnupdtJo",
          "name": "Google Sheets Trigger account"
        }
      }
    },
    {
      "parameters": {
        "operation": "fromJson",
        "options": {}
      },
      "type": "n8n-nodes-base.extractFromFile",
      "typeVersion": 1,
      "position": [
        240,
        80
      ],
      "id": "7019988b-896e-4059-8ed8-49a958ee6699",
      "name": "Get PDF"
    },
    {
      "parameters": {
        "method": "POST",
        "url": "https://v2.convertapi.com/convert/html/to/pdf",
        "sendHeaders": true,
        "headerParameters": {
          "parameters": [
            {
              "name": "Authorization",
              "value": "Bearer api_key"
            }
          ]
        },
        "sendBody": true,
        "contentType": "multipart-form-data",
        "bodyParameters": {
          "parameters": [
            {
              "name": "StoreFile",
              "value": "true"
            },
            {
              "parameterType": "formBinaryData",
              "name": "File",
              "inputDataFieldName": "data"
            }
          ]
        },
        "options": {
          "response": {
            "response": {
              "responseFormat": "file"
            }
          }
        }
      },
      "id": "bacec576-1f8b-4911-a744-1cf797543e59",
      "name": "PDF Generate",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        96,
        80
      ],
      "notesInFlow": true,
      "typeVersion": 4.2
    },
    {
      "parameters": {
        "url": "={{ $json.data.Files[0].Url }}",
        "options": {}
      },
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 4.2,
      "position": [
        384,
        80
      ],
      "id": "f7f030c4-909b-461e-9d0a-2a48bd64d138",
      "name": "Download PDF"
    },
    {
      "parameters": {
        "select": "channel",
        "channelId": {
          "__rl": true,
          "value": "C08QJL9GC3C",
          "mode": "list",
          "cachedResultName": "new-channel"
        },
        "text": "=📢 New Candidate Update\n\nThe offer letter for {{ $('Check Document Status(If Document Status is Pending)').item.json.Name }}({{ $('Check Document Status(If Document Status is Pending)').item.json.Profession }}) has been sent.\nThis candidate is a new joining.\n\nPlease take note and prepare for the onboarding process.",
        "otherOptions": {}
      },
      "type": "n8n-nodes-base.slack",
      "typeVersion": 2.3,
      "position": [
        624,
        272
      ],
      "id": "fae7bbab-5125-44e8-979c-1cc0ae932b37",
      "name": "Send a message to Manager",
      "webhookId": "b8654ea1-0cb5-4c4b-97c3-b01b6f453279",
      "credentials": {
        "slackApi": {
          "id": "R4nnpqtlL26ynf4r",
          "name": "Slack account"
        }
      }
    },
    {
      "parameters": {
        "content": "## Data Setup\nCreate your own spreadsheet with these tabs/columns, then select it in the Google Sheets nodes:\n- **Onboarding Workflows → Sheet1**: `Candidate ID`, `Candidate Status`, `Offer Letter Link`",
        "height": 144,
        "width": 384
      },
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -528,
        -208
      ],
      "typeVersion": 1,
      "id": "a6a06bea-0f4a-407f-9440-392b07a06896",
      "name": "Sticky Note"
    },
    {
      "parameters": {
        "conditions": {
          "options": {
            "caseSensitive": true,
            "leftValue": "",
            "typeValidation": "strict",
            "version": 2
          },
          "conditions": [
            {
              "id": "06e87a9e-4475-483d-a387-4656cc34760e",
              "leftValue": "={{ $json[\"Document Status\"] }}",
              "rightValue": "=Pending",
              "operator": {
                "type": "string",
                "operation": "equals",
                "name": "filter.operator.equals"
              }
            }
          ],
          "combinator": "and"
        },
        "options": {}
      },
      "type": "n8n-nodes-base.if",
      "typeVersion": 2.2,
      "position": [
        -304,
        -32
      ],
      "id": "f389a65e-1a8e-46a9-89ed-c69bb0ed8457",
      "name": "Check Document Status(If Document Status is Pending)"
    },
    {
      "parameters": {
        "jsCode": "// Get first input JSON\nconst data = $input.first().json;\n\n// Formal, long, corporate Offer Letter\nconst htmlContent = `\n<!doctype html>\n<html lang=\"en\">\n<head>\n  <meta charset=\"utf-8\" />\n  <title>Offer Letter</title>\n  <style>\n    body {\n      font-family: \"Times New Roman\", serif;\n      background: #fff;\n      color: #000;\n      padding: 60px;\n      font-size: 13pt;\n      line-height: 1.7;\n    }\n    .container {\n      max-width: 800px;\n      margin: auto;\n    }\n    header {\n      text-align: center;\n      margin-bottom: 40px;\n    }\n    header h1 {\n      font-size: 20pt;\n      margin: 0;\n      text-transform: uppercase;\n    }\n    header p {\n      margin: 4px 0;\n      font-size: 11pt;\n    }\n    .date {\n      text-align: right;\n      margin-bottom: 30px;\n    }\n    .subject {\n      font-weight: bold;\n      margin: 20px 0;\n      text-decoration: underline;\n    }\n    p {\n      margin: 12px 0;\n      text-align: justify;\n    }\n    .highlight {\n      font-weight: bold;\n    }\n    .section-title {\n      font-weight: bold;\n      margin-top: 18px;\n      text-decoration: underline;\n    }\n    .signature {\n      margin-top: 60px;\n    }\n    .signature p {\n      margin: 4px 0;\n    }\n    footer {\n      margin-top: 80px;\n      font-size: 10pt;\n      color: #555;\n      text-align: center;\n    }\n  </style>\n</head>\n<body>\n  <div class=\"container\">\n    <header>\n      <h1>Forgent Systems</h1>\n      <p>123 Business Street, City, State, PIN</p>\n      <p>Email: hr@company.com | Phone: +1 (555) 555-0100</p>\n    </header>\n\n    <div class=\"date\">Date: ${new Date().toLocaleDateString()}</div>\n\n    <p>To,<br>\n    <span class=\"highlight\">${data.Name || ''}</span><br>\n    Email: ${data.Email || ''}<br>\n    Phone: ${data.Phone || ''}</p>\n\n    <div class=\"subject\">Subject: Offer of Employment</div>\n\n    <p>Dear <span class=\"highlight\">${data.Name || ''}</span>,</p>\n\n    <p>We are pleased to offer you employment with <span class=\"highlight\">Forgent Systems</span>. After a thorough evaluation of your qualifications, skills, and experience, we are confident in your ability to contribute significantly to our organization’s success. We are excited to welcome you on board.</p>\n\n    <p>Your appointment is being made for the position assigned to you by our company. The total annual compensation will be <span class=\"highlight\">${data[\"Offer Salary\"] || ''}</span>. Additional benefits, allowances, and perquisites will be applicable as per company policy.</p>\n\n    <div class=\"section-title\">1. Position & Reporting</div>\n    <p>You will be designated as <span class=\"highlight\">${data.Profession || ''}</span> and will report to your designated manager or any other authority assigned by the company. Your duties and responsibilities will be as per the job description provided to you and may be modified by the management from time to time.</p>\n\n    <div class=\"section-title\">2. Probation Period</div>\n    <p>You will be on probation for a period of six (6) months from your date of joining. Upon successful completion of this probationary period, your performance will be reviewed and your services may be confirmed in writing. During probation, your services may be terminated with one month’s notice from either side.</p>\n\n    <div class=\"section-title\">3. Working Hours</div>\n    <p>Your normal working hours will be as per company policy, subject to modifications depending upon business requirements. You may be required to work beyond standard hours in order to meet project deadlines and organizational commitments.</p>\n\n    <div class=\"section-title\">4. Leave Policy</div>\n    <p>You will be entitled to leave as per the leave policy of the company in force at the time. All leaves must be applied for and approved in advance by your reporting manager, except in cases of emergency.</p>\n\n    <div class=\"section-title\">5. Confidentiality & Non-Disclosure</div>\n    <p>You shall maintain the highest standards of confidentiality with respect to all proprietary and confidential information of the company. You shall not, under any circumstances, disclose, use, or exploit any such information without prior written consent of the management.</p>\n\n    <div class=\"section-title\">6. Termination of Employment</div>\n    <p>After confirmation, your employment may be terminated by either party by giving ninety (90) days written notice or payment of equivalent salary in lieu thereof. The company reserves the right to terminate employment immediately without notice in case of misconduct, breach of trust, or violation of company policies.</p>\n\n    <p>We look forward to a mutually rewarding association and are confident that your skills and dedication will add immense value to our organization.</p>\n\n    <p>Sincerely,</p>\n\n    <div class=\"signature\">\n      <p><strong>HR Manager</strong></p>\n      <p>Forgent Systems</p>\n    </div>\n\n    <footer>\n      This is a computer-generated offer letter and does not require a physical signature.\n    </footer>\n  </div>\n</body>\n</html>\n`;\n\n// Convert HTML to binary for n8n\nconst buffer = Buffer.from(htmlContent, 'utf8');\nconst binaryData = {\n  data: buffer.toString('base64'),\n  mimeType: 'text/html',\n  fileName: `Offer_Letter_${data[\"Candidate ID\"] || 'Candidate'}.html`,\n};\n\n// Attach binary to first item\nitems[0].binary = { data: binaryData };\n\nreturn items;"
      },
      "type": "n8n-nodes-base.code",
      "typeVersion": 2,
      "position": [
        -64,
        80
      ],
      "id": "0c53bdc9-db7c-4fc6-900b-b9864d1cb09c",
      "name": "Create Offer Letter"
    },
    {
      "parameters": {
        "sendTo": "={{ $json.Email }}",
        "subject": "=Reminder:{{ $json.Name }} Please submit your pending documents to proceed with your offer",
        "emailType": "text",
        "message": "=Hello {{ $json.Name }},\n\nWe hope you are doing well.\n\nAs part of the joining process, we have reviewed your submitted documents. Currently, the following documents are still pending from your side:\n\n📌 Pending Documents:\n\n{{ $json['Pending Documents'] }}\n\n\nTo ensure smooth processing of your offer letter, we kindly request you to submit the above document(s) at the earliest.\n\nOnce we receive the pending documents, we will proceed with generating your offer letter.\n\nNext Steps:\n✅ Please upload the pending document(s) to the HR portal or reply to this email with the attachments.\n✅ Once verified, your offer letter will be shared immediately.\n\nWe appreciate your prompt action on this.\n\nBest regards,\nHR Team\nForgent Systems",
        "options": {}
      },
      "type": "n8n-nodes-base.gmail",
      "typeVersion": 2.1,
      "position": [
        -48,
        -128
      ],
      "id": "aa39caef-4a94-49b8-923c-ccb3917f77d8",
      "name": "Send Missing Document Email",
      "webhookId": "f563d9cb-dc76-4197-983a-f2810d1abac2",
      "credentials": {
        "gmailOAuth2": {
          "id": "LBIbVskaBzVhN0SE",
          "name": "Gmail account"
        }
      }
    },
    {
      "parameters": {
        "operation": "appendOrUpdate",
        "documentId": {
          "__rl": true,
          "value": "15emSCM6Ui3O7oH2BXcorZJUi2BbWpZKCTcqq-Iyn0Kk",
          "mode": "list",
          "cachedResultName": "Onboarding Workflows"
        },
        "sheetName": {
          "__rl": true,
          "value": "gid=0",
          "mode": "list",
          "cachedResultName": "Sheet1"
        },
        "columns": {
          "mappingMode": "defineBelow",
          "value": {
            "Candidate ID": "={{ $('Check Document Status(If Document Status is Pending)').item.json[\"Candidate ID\"] }}",
            "Candidate Status": "Documents_Pending"
          },
          "matchingColumns": [
            "Candidate ID"
          ],
          "schema": [
            {
              "id": "Candidate ID",
              "displayName": "Candidate ID",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": false
            },
            {
              "id": "Name",
              "displayName": "Name",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "Email",
              "displayName": "Email",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "Phone",
              "displayName": "Phone",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "Pending Documents",
              "displayName": "Pending Documents",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "Submitted Documents",
              "displayName": "Submitted Documents",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "Document Status",
              "displayName": "Document Status",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "Offer Salary",
              "displayName": "Offer Salary",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "Profession",
              "displayName": "Profession",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "Candidate Status",
              "displayName": "Candidate Status",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true
            },
            {
              "id": "Offer Letter Link",
              "displayName": "Offer Letter Link",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            }
          ],
          "attemptToConvertTypes": false,
          "convertFieldsToString": false
        },
        "options": {}
      },
      "type": "n8n-nodes-base.googleSheets",
      "typeVersion": 4.7,
      "position": [
        128,
        -128
      ],
      "id": "eaa6002f-6291-46da-8e16-da0e669f8a9d",
      "name": "Change Status",
      "credentials": {
        "googleSheetsOAuth2Api": {
          "id": "9rJzpmHDDKlqEEe9",
          "name": "Google Sheets account"
        }
      }
    },
    {
      "parameters": {
        "name": "={{ $('Check Document Status(If Document Status is Pending)').item.json['Candidate ID'] }}",
        "driveId": {
          "__rl": true,
          "mode": "list",
          "value": "My Drive"
        },
        "folderId": {
          "__rl": true,
          "value": "1bTXRNX_XaL8qy_Z2bcGVQlPaVeFDhPRq",
          "mode": "id"
        },
        "options": {}
      },
      "type": "n8n-nodes-base.googleDrive",
      "typeVersion": 3,
      "position": [
        624,
        -128
      ],
      "id": "f9501b4a-d325-4fd0-b923-93eee8d12418",
      "name": "Upload Offer Letter",
      "credentials": {
        "googleDriveOAuth2Api": {
          "id": "l2hNJyVE2LZJtuCV",
          "name": "Google Drive account"
        }
      }
    },
    {
      "parameters": {
        "operation": "update",
        "documentId": {
          "__rl": true,
          "value": "15emSCM6Ui3O7oH2BXcorZJUi2BbWpZKCTcqq-Iyn0Kk",
          "mode": "list",
          "cachedResultName": "Onboarding Workflows"
        },
        "sheetName": {
          "__rl": true,
          "value": "gid=0",
          "mode": "list",
          "cachedResultName": "Sheet1"
        },
        "columns": {
          "mappingMode": "defineBelow",
          "value": {
            "Candidate ID": "={{ $('Check Document Status(If Document Status is Pending)').item.json['Candidate ID'] }}",
            "Offer Letter Link": "={{ $json.webViewLink }}"
          },
          "matchingColumns": [
            "Candidate ID"
          ],
          "schema": [
            {
              "id": "Candidate ID",
              "displayName": "Candidate ID",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": false
            },
            {
              "id": "Name",
              "displayName": "Name",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "Email",
              "displayName": "Email",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "Phone",
              "displayName": "Phone",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "Pending Documents",
              "displayName": "Pending Documents",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "Submitted Documents",
              "displayName": "Submitted Documents",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "Document Status",
              "displayName": "Document Status",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "Offer Salary",
              "displayName": "Offer Salary",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "Profession",
              "displayName": "Profession",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "Candidate Status",
              "displayName": "Candidate Status",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "Offer Letter Link",
              "displayName": "Offer Letter Link",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true
            },
            {
              "id": "row_number",
              "displayName": "row_number",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "number",
              "canBeUsedToMatch": true,
              "readOnly": true,
              "removed": true
            }
          ],
          "attemptToConvertTypes": false,
          "convertFieldsToString": false
        },
        "options": {}
      },
      "type": "n8n-nodes-base.googleSheets",
      "typeVersion": 4.7,
      "position": [
        848,
        -128
      ],
      "id": "861b969a-8224-46ba-be71-dfcb15471189",
      "name": "Add Offer Letter in Sheet",
      "credentials": {
        "googleSheetsOAuth2Api": {
          "id": "9rJzpmHDDKlqEEe9",
          "name": "Google Sheets account"
        }
      }
    },
    {
      "parameters": {
        "sendTo": "={{ $('Check Document Status(If Document Status is Pending)').item.json.Email }}",
        "subject": "=🎉 Congratulations! Your Offer Letter from Forgent Systems",
        "message": "=✨ We are delighted to inform you that you have been selected for the position at Forgent Systems.\nAttached to this email, you will find your official Offer Letter 📄, which outlines your role, compensation, and other important details.\n\n🤝 We are excited to welcome you to our team and look forward to working together towards great success.\n\nIf you have any questions, feel free to reach out to us.\n\nBest Regards,\nHR Team\nForgent Systems",
        "options": {
          "attachmentsUi": {
            "attachmentsBinary": [
              {}
            ]
          }
        }
      },
      "type": "n8n-nodes-base.gmail",
      "typeVersion": 2.1,
      "position": [
        624,
        80
      ],
      "id": "6e70f8ff-3396-4598-8f2e-f60e7dd9bb4e",
      "name": "Send Offer Letter To Candidate",
      "webhookId": "3e091a4e-9f31-406c-977a-6cd4383e3ee5",
      "credentials": {
        "gmailOAuth2": {
          "id": "LBIbVskaBzVhN0SE",
          "name": "Gmail account"
        }
      }
    },
    {
      "parameters": {
        "operation": "update",
        "documentId": {
          "__rl": true,
          "value": "15emSCM6Ui3O7oH2BXcorZJUi2BbWpZKCTcqq-Iyn0Kk",
          "mode": "list",
          "cachedResultName": "Onboarding Workflows"
        },
        "sheetName": {
          "__rl": true,
          "value": "gid=0",
          "mode": "list",
          "cachedResultName": "Sheet1"
        },
        "columns": {
          "mappingMode": "defineBelow",
          "value": {
            "Candidate ID": "={{ $('Check Document Status(If Document Status is Pending)').item.json['Candidate ID'] }}",
            "Candidate Status": "Offer_Sent"
          },
          "matchingColumns": [
            "Candidate ID"
          ],
          "schema": [
            {
              "id": "Candidate ID",
              "displayName": "Candidate ID",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": false
            },
            {
              "id": "Name",
              "displayName": "Name",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "Email",
              "displayName": "Email",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "Phone",
              "displayName": "Phone",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "Pending Documents",
              "displayName": "Pending Documents",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "Submitted Documents",
              "displayName": "Submitted Documents",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "Document Status",
              "displayName": "Document Status",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "Offer Salary",
              "displayName": "Offer Salary",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "Profession",
              "displayName": "Profession",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "Candidate Status",
              "displayName": "Candidate Status",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": false
            },
            {
              "id": "Offer Letter Link",
              "displayName": "Offer Letter Link",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true,
              "removed": true
            },
            {
              "id": "row_number",
              "displayName": "row_number",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "number",
              "canBeUsedToMatch": true,
              "readOnly": true,
              "removed": true
            }
          ],
          "attemptToConvertTypes": false,
          "convertFieldsToString": false
        },
        "options": {}
      },
      "type": "n8n-nodes-base.googleSheets",
      "typeVersion": 4.7,
      "position": [
        848,
        272
      ],
      "id": "74391bf2-a631-4d43-92cf-d49463144d3b",
      "name": "Change Status in Sheet",
      "credentials": {
        "googleSheetsOAuth2Api": {
          "id": "9rJzpmHDDKlqEEe9",
          "name": "Google Sheets account"
        }
      }
    }
  ],
  "pinData": {},
  "connections": {
    "Google Sheets Trigger": {
      "main": [
        [
          {
            "node": "Check Document Status(If Document Status is Pending)",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get PDF": {
      "main": [
        [
          {
            "node": "Download PDF",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "PDF Generate": {
      "main": [
        [
          {
            "node": "Get PDF",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Download PDF": {
      "main": [
        [
          {
            "node": "Upload Offer Letter",
            "type": "main",
            "index": 0
          },
          {
            "node": "Send Offer Letter To Candidate",
            "type": "main",
            "index": 0
          },
          {
            "node": "Send a message to Manager",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Send a message to Manager": {
      "main": [
        [
          {
            "node": "Change Status in Sheet",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Check Document Status(If Document Status is Pending)": {
      "main": [
        [
          {
            "node": "Send Missing Document Email",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Create Offer Letter",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Create Offer Letter": {
      "main": [
        [
          {
            "node": "PDF Generate",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Send Missing Document Email": {
      "main": [
        [
          {
            "node": "Change Status",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Upload Offer Letter": {
      "main": [
        [
          {
            "node": "Add Offer Letter in Sheet",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Send Offer Letter To Candidate": {
      "main": [
        []
      ]
    }
  },
  "active": false,
  "settings": {
    "executionOrder": "v1"
  },
  "versionId": "ab5f4346-f7d6-4624-881d-2d1f3a59afcf",
  "meta": {
    "templateCredsSetupCompleted": true,
    "instanceId": "f1c26778ec36097a9722a22c47c5e9c01f00b8862dadd0121ec118026a370fa6"
  },
  "id": "Q958eBOG0O3GNjA3",
  "tags": []
}