{
  "name": "Send AI job application auto-replies with Gmail, OpenAI GPT-4o and SMTP",
  "nodes": [
    {
      "id": "a5d6cb90-5aee-4269-b9f2-71e11e68d6df",
      "name": "Gmail Trigger",
      "type": "n8n-nodes-base.gmailTrigger",
      "position": [
        -96,
        80
      ]
    },
    {
      "id": "0f62160f-d729-4f70-8a3b-783749fbf418",
      "name": "OpenAI Chat Model",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        768,
        240
      ]
    },
    {
      "id": "83ca0c1b-1965-4385-8ffa-6f06e01768c0",
      "name": "AI Agent",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        800,
        -16
      ]
    },
    {
      "id": "c59224b3-79e0-46a4-9e7e-e95c6df36850",
      "name": "Edit Fields",
      "type": "n8n-nodes-base.set",
      "position": [
        448,
        -16
      ]
    },
    {
      "id": "11f0387a-7249-407d-b196-ceb3f49d0b87",
      "name": "Structured Output Parser",
      "type": "@n8n/n8n-nodes-langchain.outputParserStructured",
      "position": [
        1120,
        240
      ]
    },
    {
      "id": "8d429b4d-78a3-40fa-bd8d-e04beecc5885",
      "name": "Send an Email",
      "type": "n8n-nodes-base.emailSend",
      "position": [
        1168,
        -16
      ]
    },
    {
      "id": "37bc69a6-c64e-4a16-b599-52035522985c",
      "name": "If",
      "type": "n8n-nodes-base.if",
      "position": [
        160,
        80
      ]
    },
    {
      "id": "64e652f4-eabb-43ec-bb5e-b423240a66ba",
      "name": "No Operation, do nothing",
      "type": "n8n-nodes-base.noOp",
      "position": [
        448,
        176
      ]
    },
    {
      "id": "7daa6bb4-f21f-49d0-b897-e53568fc5fcc",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -160,
        -976
      ],
      "parameters": {
        "width": null,
        "height": 1024,
        "content": "📩 Gmail Trigger – Receive Job Applications\n\nThis node monitors incoming emails from Gmail.\n\n⚠️ IMPORTANT SETUP (Forwarding Required):\n\nSince this workflow is designed for custom domain emails (e.g. he"
      }
    },
    {
      "id": "26ed7790-76b6-4599-a400-089b876b58ce",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        160,
        -464
      ],
      "parameters": {
        "width": 176,
        "height": 496,
        "content": "🔍 Filter Job Application Emails\n\nThis node checks if the incoming email is a job application.\n\nCondition:\n- Subject contains \"Job Application\"\n\n👉 You can customize this to match your hiring format:\nEx"
      }
    },
    {
      "id": "4eefe12a-8082-4391-8707-5c93f5a6d1b6",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        384,
        -576
      ],
      "parameters": {
        "width": 208,
        "height": 528,
        "content": "🧹 Prepare Email Data for AI Processing\n\nThis node extracts and prepares required fields:\n\n- candidateEmail → extracted from email data\n- subject → original email subject\n- companyEmail → your receivin"
      }
    },
    {
      "id": "cfa624dc-c620-4afb-86c4-99521f6cd11b",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        784,
        -544
      ],
      "parameters": {
        "width": null,
        "height": 496,
        "content": "🧹 Prepare Email Data for AI Processing\n\nThis node extracts and prepares required fields:\n\n- candidateEmail → extracted from email data\n- subject → original email subject\n- companyEmail → your receivin"
      }
    },
    {
      "id": "c37e284d-629b-48d3-846b-d593a72ace3a",
      "name": "Sticky Note4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        736,
        368
      ],
      "parameters": {
        "width": null,
        "height": 272,
        "content": "🧠 OpenAI Model\n\nThis node powers the AI Agent.\n\nModel used:\n- GPT-4o (can be changed)\n\n👉 Requires:\n- OpenAI API Key\n\nYou can switch to other models depending on cost/performance needs."
      }
    },
    {
      "id": "49c09219-5775-4b34-bbb9-b161634b5d46",
      "name": "Sticky Note5",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1040,
        384
      ],
      "parameters": {
        "width": null,
        "height": 272,
        "content": "📦 Structured Output \n\nThis node ensures AI returns clean JSON output.\n\nExpected format:\n{\n  \"subject\": \"...\",\n  \"body\": \"...\"\n}\n\n👉 Why important?\n- Prevents broken responses\n- Ensures compatibility wi"
      }
    },
    {
      "id": "ffad9b90-4419-4502-b4f2-0c3cd383fba1",
      "name": "Sticky Note6",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1104,
        -448
      ],
      "parameters": {
        "width": null,
        "height": 400,
        "content": "✉️ Send Auto Reply to Candidate\n\nThis node sends the AI-generated response.\n\nConfiguration:\n- Uses SMTP (e.g. Titan Email)\n- Sends from your company email\n- Sends to candidate email\n\n⚙️ Requirements:\n"
      }
    },
    {
      "id": "b0bed43b-da68-4599-a3b7-02746028c077",
      "name": "Sticky Note7",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        400,
        336
      ],
      "parameters": {
        "width": null,
        "height": 288,
        "content": "🚫 No Operation (Ignore Non-Matching Emails)\n\nThis node is used when:\n- Email is NOT a job application\n\n👉 Prevents unnecessary processing\n\nKeeps workflow clean and efficient."
      }
    },
    {
      "id": "a8c90617-0be4-409c-b64d-2f304547cfb8",
      "name": "Sticky Note8",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -704,
        -64
      ],
      "parameters": {
        "width": 480,
        "height": 512,
        "content": "🤖 AI Job Application Auto-Reply System(Company Email)\n\nThis workflow automates HR email responses using AI.\n\nFlow:\n1. Receive job applications via Gmail (forwarded from domain email)\n2. Filter relevan"
      }
    }
  ],
  "connections": {
    "If": {
      "main": [
        [
          {
            "node": "Edit Fields",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "No Operation, do nothing",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "AI Agent": {
      "main": [
        [
          {
            "node": "Send an Email",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Edit Fields": {
      "main": [
        [
          {
            "node": "AI Agent",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Gmail Trigger": {
      "main": [
        [
          {
            "node": "If",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI Chat Model": {
      "ai_languageModel": [
        [
          {
            "node": "AI Agent",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Structured Output Parser": {
      "ai_outputParser": [
        [
          {
            "node": "AI Agent",
            "type": "ai_outputParser",
            "index": 0
          }
        ]
      ]
    }
  }
}