{
  "name": "Screen and score resumes from Gmail with PDF parsing, HubSpot, Slack and PostgreSQL",
  "nodes": [
    {
      "id": "4b7a5274-552f-4b62-bc0b-ec1e58cb9b32",
      "name": "Sticky Note - Intake",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -544,
        1376
      ],
      "parameters": {
        "width": 420,
        "height": 492,
        "content": "## 📧 PHASE 1: Intelligent Intake & Validation\nMonitors Gmail for resume submissions. Validates PDF attachments and extracts raw text content for AI processing. Handles multiple attachment formats and "
      }
    },
    {
      "id": "5018eb75-07bc-48ec-b7eb-8e3936e85cca",
      "name": "Sticky Note - Analysis",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -96,
        1376
      ],
      "parameters": {
        "width": 480,
        "height": 540,
        "content": "## 🧠 PHASE 2: AI-Powered Resume Analysis\nExtracts structured data: contact info, skills, experience, education. Uses NLP pattern matching and scoring algorithms to calculate qualification metrics. Ass"
      }
    },
    {
      "id": "bf6b3e63-6361-4ce7-a672-b0d9923f3937",
      "name": "Sticky Note - Routing",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        416,
        1376
      ],
      "parameters": {
        "width": 500,
        "height": 588,
        "content": "## 🎯 PHASE 3: Smart Routing & Integration\nQualified candidates (70+ score) → HubSpot CRM + Slack alert + Drive archive. Unqualified candidates → Automated rejection email with personalized feedback. A"
      }
    },
    {
      "id": "7dd69637-b8c1-4419-98d5-91e220ba2efd",
      "name": "Sticky Note - Analytics",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        976,
        1376
      ],
      "parameters": {
        "width": 740,
        "height": 572,
        "content": "## 📊 PHASE 4: Analytics & Feedback Loop\nTracks hiring funnel metrics, candidate quality trends, and time-to-hire. Feeds data back to scoring model for continuous improvement."
      }
    },
    {
      "id": "d53b1abf-f411-4d4d-a20f-ca94b27f723a",
      "name": "IF: Valid PDF Attachment?",
      "type": "n8n-nodes-base.if",
      "position": [
        -256,
        1568
      ]
    },
    {
      "id": "4e4e9256-0a2b-48e3-8afe-1c6de2787533",
      "name": "Code: Pre-Validation",
      "type": "n8n-nodes-base.code",
      "position": [
        -384,
        1712
      ]
    },
    {
      "id": "f9c391fd-a9b9-4213-940e-94b439bb6106",
      "name": "PDF to Text: Extract Content",
      "type": "n8n-nodes-htmlcsstopdf.htmlcsstopdf",
      "position": [
        -32,
        1568
      ]
    },
    {
      "id": "8b37d04a-0ebf-46fd-8819-8ee9bb01401f",
      "name": "Code: AI Resume Parser",
      "type": "n8n-nodes-base.code",
      "position": [
        176,
        1568
      ]
    },
    {
      "id": "610619d2-f3d6-4463-9cdc-bbd7e189f3c5",
      "name": "PostgreSQL: Log Application",
      "type": "n8n-nodes-base.postgres",
      "position": [
        192,
        1760
      ]
    },
    {
      "id": "85f186c5-06fa-4f3a-af49-53a1b61f9db1",
      "name": "IF: Qualified Candidate?",
      "type": "n8n-nodes-base.if",
      "position": [
        416,
        1568
      ]
    },
    {
      "id": "dd2ca3bb-9855-48ec-9ad2-e4eb766f05e0",
      "name": "HubSpot: Create Contact",
      "type": "n8n-nodes-base.hubspot",
      "position": [
        624,
        1456
      ]
    },
    {
      "id": "4befb2f3-3469-4f63-905c-447720df8d01",
      "name": "Slack: Qualified Alert",
      "type": "n8n-nodes-base.slack",
      "position": [
        848,
        1456
      ]
    },
    {
      "id": "0ca06d09-1ce1-4b1a-b641-d106444f4f8e",
      "name": "Google Drive: Archive Qualified",
      "type": "n8n-nodes-base.googleDrive",
      "position": [
        624,
        1568
      ]
    },
    {
      "id": "f2aed3d3-efe7-442d-b0c9-d688b4c43c0f",
      "name": "Google Drive: Archive Rejected",
      "type": "n8n-nodes-base.googleDrive",
      "position": [
        624,
        1808
      ]
    },
    {
      "id": "4e4ff844-1f01-4082-9c88-4a2d5ff85806",
      "name": "Gmail: Send Rejection",
      "type": "n8n-nodes-base.gmail",
      "position": [
        848,
        1664
      ]
    },
    {
      "id": "9d50522c-317c-4212-9878-be42c3b51332",
      "name": "Slack: Rejection Log",
      "type": "n8n-nodes-base.slack",
      "position": [
        848,
        1808
      ]
    },
    {
      "id": "5516c15a-43fb-4387-8271-f5fd64bd1cca",
      "name": "Merge: Qualified Path",
      "type": "n8n-nodes-base.merge",
      "position": [
        1072,
        1552
      ]
    },
    {
      "id": "3fbfa060-63c3-43ef-8668-59a0204b7b2d",
      "name": "Merge: Rejected Path",
      "type": "n8n-nodes-base.merge",
      "position": [
        1088,
        1776
      ]
    },
    {
      "id": "fe7f00a4-4470-4b17-ab65-a681980f36de",
      "name": "Code: Analytics Calculator",
      "type": "n8n-nodes-base.code",
      "position": [
        1296,
        1632
      ]
    },
    {
      "id": "57e30780-87ae-487b-a7af-eb04966b429f",
      "name": "PostgreSQL: Store Analytics",
      "type": "n8n-nodes-base.postgres",
      "position": [
        1520,
        1632
      ]
    },
    {
      "id": "7594e701-4305-4be0-ad52-0cbd223932fe",
      "name": "Documentation",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1296,
        672
      ],
      "parameters": {
        "width": 692,
        "height": 656,
        "content": "## ⚖️ Talent Sovereign: AI Resume Intelligence Hub\n\nIndustrial-grade recruitment pipeline: Gmail Intake → AI Parsing → Scoring → Smart Routing.\n\n### ⚙️ Core Sovereign Logic\n* **PHASE 1: Intake & Valid"
      }
    },
    {
      "id": "73ab0fd9-de75-4100-84bb-dfdb49025579",
      "name": "Gmail Trigger",
      "type": "n8n-nodes-base.gmailTrigger",
      "position": [
        -528,
        1568
      ]
    }
  ],
  "connections": {
    "Gmail Trigger": {
      "main": [
        [
          {
            "node": "Code: Pre-Validation",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Code: Pre-Validation": {
      "main": [
        [
          {
            "node": "IF: Valid PDF Attachment?",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Slack: Rejection Log": {
      "main": [
        [
          {
            "node": "Merge: Rejected Path",
            "type": "main",
            "index": 1
          }
        ]
      ]
    },
    "Gmail: Send Rejection": {
      "main": [
        [
          {
            "node": "Slack: Rejection Log",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Merge: Qualified Path": {
      "main": [
        [
          {
            "node": "Code: Analytics Calculator",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Code: AI Resume Parser": {
      "main": [
        [
          {
            "node": "PostgreSQL: Log Application",
            "type": "main",
            "index": 0
          },
          {
            "node": "IF: Qualified Candidate?",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Slack: Qualified Alert": {
      "main": [
        [
          {
            "node": "Merge: Qualified Path",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "HubSpot: Create Contact": {
      "main": [
        [
          {
            "node": "Slack: Qualified Alert",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "IF: Qualified Candidate?": {
      "main": [
        [
          {
            "node": "HubSpot: Create Contact",
            "type": "main",
            "index": 0
          },
          {
            "node": "Google Drive: Archive Qualified",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Google Drive: Archive Rejected",
            "type": "main",
            "index": 0
          },
          {
            "node": "Gmail: Send Rejection",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "IF: Valid PDF Attachment?": {
      "main": [
        [
          {
            "node": "PDF to Text: Extract Content",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Code: Analytics Calculator": {
      "main": [
        [
          {
            "node": "PostgreSQL: Store Analytics",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "PDF to Text: Extract Content": {
      "main": [
        [
          {
            "node": "Code: AI Resume Parser",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Google Drive: Archive Rejected": {
      "main": [
        [
          {
            "node": "Merge: Rejected Path",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Google Drive: Archive Qualified": {
      "main": [
        [
          {
            "node": "Merge: Qualified Path",
            "type": "main",
            "index": 1
          }
        ]
      ]
    }
  }
}