{
  "name": "Candidate Interview Calendar Booking",
  "nodes": [
    {
      "parameters": {
        "pollTimes": {
          "item": [
            {
              "mode": "everyMinute"
            }
          ]
        },
        "authentication": "airtableTokenApi",
        "baseId": {
          "__rl": true,
          "value": "https://airtable.com/apptiv4jVQxhXHZEd/tblt5GiZu9yYW58sO/",
          "mode": "url"
        },
        "tableId": {
          "__rl": true,
          "value": "https://airtable.com/apptiv4jVQxhXHZEd/tblt5GiZu9yYW58sO/viwiErZJcFA1rYiLU?",
          "mode": "url"
        },
        "triggerField": "=Created Time",
        "additionalFields": {}
      },
      "type": "n8n-nodes-base.airtableTrigger",
      "typeVersion": 1,
      "position": [
        -780,
        0
      ],
      "id": "6c3a5993-2dd5-4e90-8d4e-84fe90a1f271",
      "name": "Airtable Trigger",
      "credentials": {
        "airtableTokenApi": {
          "id": "AOKcTd9LTmlwqbjP",
          "name": "Airtable Personal Access Token account"
        }
      }
    },
    {
      "parameters": {},
      "type": "n8n-nodes-base.noOp",
      "typeVersion": 1,
      "position": [
        -360,
        120
      ],
      "id": "1fafa2c9-f8f8-489a-92e9-eb42f79d7522",
      "name": "No Operation, do nothing"
    },
    {
      "parameters": {
        "conditions": {
          "options": {
            "caseSensitive": true,
            "leftValue": "",
            "typeValidation": "strict",
            "version": 2
          },
          "conditions": [
            {
              "id": "ba41325b-965f-4830-bfe1-5f4a549b2da7",
              "leftValue": "={{ $json.fields[\"Check Stage\"] }}",
              "rightValue": "interview scheduled",
              "operator": {
                "type": "string",
                "operation": "equals",
                "name": "filter.operator.equals"
              }
            }
          ],
          "combinator": "and"
        },
        "options": {}
      },
      "type": "n8n-nodes-base.if",
      "typeVersion": 2.2,
      "position": [
        -580,
        0
      ],
      "id": "bb9112cf-84dd-44e9-b0ae-d15d180a72a6",
      "name": "If Interview Scheduled"
    },
    {
      "parameters": {
        "calendar": {
          "__rl": true,
          "value": "",
          "mode": "list",
          "cachedResultName": ""
        },
        "start": "={{ new Date($json[\"fields\"][\"interviewer date\"] + \"T10:00:00Z\").toISOString() }}",
        "end": "= {{ new Date(new Date($json[\"fields\"][\"interviewer date\"] + \"T10:00:00Z\").getTime() + 30 * 60000).toISOString() }}",
        "additionalFields": {
          "conferenceDataUi": {
            "conferenceDataValues": {
              "conferenceSolution": "hangoutsMeet"
            }
          },
          "description": "=You have an interview scheduled with {{ $json.fields.Full_name }}\nCandidate Email:{{ $json.fields.email }}",
          "guestsCanInviteOthers": true,
          "summary": "=Interview with {{ $json.fields.Full_name }}"
        }
      },
      "type": "n8n-nodes-base.googleCalendar",
      "typeVersion": 1.3,
      "position": [
        -360,
        -80
      ],
      "id": "f00b549c-2c62-42dc-8146-b18d3c805578",
      "name": "Create Google Calendar",
      "credentials": {
        "googleCalendarOAuth2Api": {
          "id": "7OQfWN8CwvLvAsFz",
          "name": "Google Calendar account"
        }
      }
    },
    {
      "parameters": {
        "sendTo": "={{ $('If Interview Scheduled').item.json.fields.email }}",
        "subject": "🗓️Interview Invitation – Infyom Technologies",
        "emailType": "text",
        "message": "=Hello {{ $('Airtable Trigger').item.json.fields.Full_name }},\n\nThank you for your application and interest in joining Our comapny.\n\nWe are pleased to invite you to an interview for the position you're being considered for.\n\n🗓️ Interview Details:\n\nDate: {{ $('Airtable Trigger').item.json.fields['interviewer date'] }}\n\nTime: 10:00 AM\n\nDuration: 30 minutes\n\nJoin Here:{{ $json.hangoutLink }}\n\nInterviewer: {{ $('Airtable Trigger').item.json.fields.Full_name }}\n\nPlease be prepared to discuss your background, experiences, and skills relevant to this role.\n\nIf the scheduled time doesn’t work for you, feel free to reply to this email and suggest an alternative.\n\nLooking forward to speaking with you.\n\nBest regards,\nInfyom Technologies\n\n",
        "options": {
          "appendAttribution": false
        }
      },
      "type": "n8n-nodes-base.gmail",
      "typeVersion": 2.1,
      "position": [
        -140,
        -20
      ],
      "id": "bdd12e51-ae59-4bae-b988-b0a34ca92cb5",
      "name": "Send Email Notification",
      "webhookId": "cd5f41c6-7b52-4689-bbd1-9603bd3e05d3",
      "credentials": {
        "gmailOAuth2": {
          "id": "IXi1kkbb2nCpoTSR",
          "name": "Gmail account"
        }
      }
    }
  ],
  "pinData": {},
  "connections": {
    "Airtable Trigger": {
      "main": [
        [
          {
            "node": "If Interview Scheduled",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "If Interview Scheduled": {
      "main": [
        [
          {
            "node": "Create Google Calendar",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "No Operation, do nothing",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Create Google Calendar": {
      "main": [
        [
          {
            "node": "Send Email Notification",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  },
  "active": false,
  "settings": {
    "executionOrder": "v1"
  },
  "versionId": "a760c4ec-eb17-426f-ad17-71940d862d44",
  "meta": {
    "templateCredsSetupCompleted": true,
    "instanceId": "fcb622cbd5234c565b9b78babeaf0ea2455df9d2aad0d1adff7c1ef99583e685"
  },
  "id": "JP36eGu8vFp8ChEB"
}