{
  "name": "Generate verified job offer letters with OpenAI, Gmail and Slack",
  "nodes": [
    {
      "id": "e7eb164d-4c92-462f-b6c9-b0c44714b28b",
      "name": "Webhook",
      "type": "n8n-nodes-base.webhook",
      "position": [
        -1616,
        416
      ]
    },
    {
      "id": "604933ae-1dc3-4a93-967d-9a40a9f70f3d",
      "name": "Email Verification",
      "type": "n8n-nodes-verifiemail.verifiEmail",
      "position": [
        -1424,
        416
      ]
    },
    {
      "id": "1f9b6dba-adc5-4083-9755-fa9f5e0ffa04",
      "name": "Check Email Validity",
      "type": "n8n-nodes-base.if",
      "position": [
        -1216,
        416
      ]
    },
    {
      "id": "c563d924-0bc6-4c7e-a965-546bad259166",
      "name": "Prepare Offer Data",
      "type": "n8n-nodes-base.set",
      "position": [
        -944,
        352
      ]
    },
    {
      "id": "d155cee6-88f1-4f73-b762-369e54d526e9",
      "name": "Generate Offer Letter Content",
      "type": "@n8n/n8n-nodes-langchain.openAi",
      "position": [
        -736,
        352
      ]
    },
    {
      "id": "c0e34615-ec62-4d07-b5ff-0c3c165d5b84",
      "name": "Notify HR Team",
      "type": "n8n-nodes-base.slack",
      "position": [
        272,
        352
      ]
    },
    {
      "id": "2cfb1776-1894-404f-955f-55ee96e08981",
      "name": "Deliver Offer Letter",
      "type": "n8n-nodes-base.gmail",
      "position": [
        112,
        352
      ]
    },
    {
      "id": "12edf1fd-d395-4832-ab9b-ad0a44538a63",
      "name": "Convert to PDF",
      "type": "n8n-nodes-htmlcsstopdf.htmlcsstopdf",
      "position": [
        -160,
        352
      ]
    },
    {
      "id": "f01fb109-33ee-497a-b8c1-93ca4b8e4aa0",
      "name": "Build HTML with SVG Signature",
      "type": "n8n-nodes-base.code",
      "position": [
        -352,
        352
      ]
    },
    {
      "id": "0b0a22ad-9d00-41e4-8584-7a3d77247666",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -2160,
        -352
      ],
      "parameters": {
        "width": 496,
        "height": 912,
        "content": "### How It Works\nThis workflow automates the complete job offer letter generation and delivery process for HR teams. When candidate and position details are submitted via webhook, the system first ver"
      }
    },
    {
      "id": "55c6eea1-4d5d-4aa5-a2a6-851b5dd696c5",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1632,
        288
      ],
      "parameters": {
        "width": 560,
        "height": 272,
        "content": "## Input & Email Verification\nReceives candidate details via webhook and verifies email deliverability before processing."
      }
    },
    {
      "id": "f9379482-94c4-4d9a-a61d-ba90a63845b1",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -976,
        240
      ],
      "parameters": {
        "width": 496,
        "height": 304,
        "content": "## Data Preparation & AI Generation\nStructures candidate data and uses OpenAI to generate a professional, personalized offer letter."
      }
    },
    {
      "id": "9029b224-7925-4b29-9d31-7e6c1a8be79a",
      "name": "Sticky Note4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -432,
        256
      ],
      "parameters": {
        "width": 448,
        "height": 256,
        "content": "## Document Formatting & Conversion\nBuilds branded HTML offer letter with digital signature and converts it to PDF format."
      }
    },
    {
      "id": "6cdc665c-7348-4e09-a1d1-51cfaf0fb70c",
      "name": "Sticky Note5",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        80,
        240
      ],
      "parameters": {
        "width": 384,
        "height": 288,
        "content": "## Delivery & Notifications\nEmails PDF to candidate and sends confirmation notification to HR team via Slack."
      }
    }
  ],
  "connections": {
    "Webhook": {
      "main": [
        [
          {
            "node": "Email Verification",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Convert to PDF": {
      "main": [
        [
          {
            "node": "Deliver Offer Letter",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Notify HR Team": {
      "main": [
        []
      ]
    },
    "Email Verification": {
      "main": [
        [
          {
            "node": "Check Email Validity",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Prepare Offer Data": {
      "main": [
        [
          {
            "node": "Generate Offer Letter Content",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Check Email Validity": {
      "main": [
        [
          {
            "node": "Prepare Offer Data",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Deliver Offer Letter": {
      "main": [
        [
          {
            "node": "Notify HR Team",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Build HTML with SVG Signature": {
      "main": [
        [
          {
            "node": "Convert to PDF",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Generate Offer Letter Content": {
      "main": [
        [
          {
            "node": "Build HTML with SVG Signature",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}