{
  "name": "Automate Job applications 🧑🏻‍💼📄with Chatbot, PredictLeads and ScrapegraphAI",
  "nodes": [
    {
      "id": "9c0b9b16-0e6e-4d91-ab72-f0e93e4f220b",
      "name": "When chat message received",
      "type": "@n8n/n8n-nodes-langchain.chatTrigger",
      "position": [
        -640,
        832
      ]
    },
    {
      "id": "5e084958-ce74-410b-b9ec-248157c4a398",
      "name": "OpenAI Chat Model1",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        272,
        1520
      ]
    },
    {
      "id": "c0a4d07e-c795-4234-bf9b-5af8a59fdb2c",
      "name": "Context7",
      "type": "@n8n/n8n-nodes-langchain.mcpClientTool",
      "position": [
        -336,
        1056
      ]
    },
    {
      "id": "0551424c-5338-40b6-8b9a-a4cd9cf095b5",
      "name": "PredictLeads",
      "type": "@n8n/n8n-nodes-langchain.mcpClientTool",
      "position": [
        -224,
        1056
      ]
    },
    {
      "id": "141ca5a1-ba2a-407d-a9e5-d04e4314339f",
      "name": "Simple Memory",
      "type": "@n8n/n8n-nodes-langchain.memoryBufferWindow",
      "position": [
        880,
        1584
      ]
    },
    {
      "id": "e70f9ff8-12a2-485f-b67c-eb0b0e3ca841",
      "name": "Structured Output Parser",
      "type": "@n8n/n8n-nodes-langchain.outputParserStructured",
      "position": [
        592,
        800
      ]
    },
    {
      "id": "cc86414f-a623-4a3a-9e77-96cd409f4f02",
      "name": "Loop Over Items",
      "type": "n8n-nodes-base.splitInBatches",
      "position": [
        1184,
        672
      ]
    },
    {
      "id": "8e57f53b-152c-4783-91d5-ae5a882471c4",
      "name": "Google Gemini Chat Model1",
      "type": "@n8n/n8n-nodes-langchain.lmChatGoogleGemini",
      "position": [
        2224,
        752
      ]
    },
    {
      "id": "7f9a2404-7177-48bd-a44f-a4da855dc04d",
      "name": "Chat",
      "type": "@n8n/n8n-nodes-langchain.chat",
      "position": [
        480,
        1008
      ]
    },
    {
      "id": "8c843fce-a962-47fa-8b9f-c209f1d4a89c",
      "name": "Create email",
      "type": "@n8n/n8n-nodes-langchain.chatHitlTool",
      "position": [
        2432,
        800
      ]
    },
    {
      "id": "c6906efa-6186-4399-b770-5ba3ce9184d5",
      "name": "Chat1",
      "type": "@n8n/n8n-nodes-langchain.chat",
      "position": [
        2928,
        1104
      ]
    },
    {
      "id": "2775f022-3c08-4669-8c23-d9a5371cb598",
      "name": "Limit",
      "type": "n8n-nodes-base.limit",
      "position": [
        960,
        672
      ]
    },
    {
      "id": "b305684c-8c7f-4a95-907c-a35dba17450a",
      "name": "When Executed by Another Workflow",
      "type": "n8n-nodes-base.executeWorkflowTrigger",
      "position": [
        2400,
        1552
      ]
    },
    {
      "id": "7291f889-6a60-4e3b-8a7f-1a75b1ffa5c0",
      "name": "Create a draft",
      "type": "n8n-nodes-base.gmail",
      "position": [
        2848,
        1552
      ]
    },
    {
      "id": "0d6ff9a6-3e14-4c04-957f-38512efed081",
      "name": "Job application Agent",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        2288,
        592
      ]
    },
    {
      "id": "53913e61-d146-4ad5-8c3d-ecc9fa46ba09",
      "name": "Send email",
      "type": "@n8n/n8n-nodes-langchain.toolWorkflow",
      "position": [
        2384,
        1008
      ]
    },
    {
      "id": "c9a51e83-6dea-4738-af93-350c7d3d0003",
      "name": "Get CV",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        2624,
        1552
      ]
    },
    {
      "id": "7078edd1-57b2-4d0b-bd93-90a200cddfde",
      "name": "Scrape Job",
      "type": "n8n-nodes-scrapegraphai.scrapegraphAi",
      "position": [
        1488,
        688
      ]
    },
    {
      "id": "0752da9b-d89b-46ba-8afe-8849356fa380",
      "name": "Contain email?",
      "type": "n8n-nodes-base.if",
      "position": [
        1760,
        688
      ]
    },
    {
      "id": "ffb70025-0e02-46ba-b533-7eaed5aced2d",
      "name": "Links Extractor",
      "type": "@n8n/n8n-nodes-langchain.chainLlm",
      "position": [
        448,
        592
      ]
    },
    {
      "id": "32df0f47-36fc-4f6c-9686-1e93d013e537",
      "name": "PredictLeads Agent",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        -416,
        832
      ]
    },
    {
      "id": "55457900-e1b9-4a94-96c4-8de46a91af4c",
      "name": "Parser",
      "type": "n8n-nodes-base.code",
      "position": [
        -64,
        832
      ]
    },
    {
      "id": "a39c4a07-c0fb-46d1-b366-4945e39520a9",
      "name": "Split Out",
      "type": "n8n-nodes-base.splitOut",
      "position": [
        736,
        672
      ]
    },
    {
      "id": "0387d1ca-d76c-4d95-a3cc-c24e69788fb4",
      "name": "Chat2",
      "type": "@n8n/n8n-nodes-langchain.chat",
      "position": [
        1968,
        880
      ]
    },
    {
      "id": "8c1b5b5b-7aaa-4dad-b7ec-2b53d967d3a0",
      "name": "If list?",
      "type": "n8n-nodes-base.if",
      "position": [
        160,
        832
      ]
    },
    {
      "id": "0f3b659a-bee8-4cb4-883d-13a909b348b9",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -496,
        96
      ],
      "parameters": {
        "width": 800,
        "height": 544,
        "content": "## Chatbot Job Apply System with PredictLeads & Scrapegraph AI\n\nThis Chatbot automates the process of discovering job openings and generating tailored job application emails. \n\nIt combines AI agents, "
      }
    },
    {
      "id": "580d8879-5cd5-4d0c-8e7a-9edf9bd88bf2",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -496,
        688
      ],
      "parameters": {
        "width": 800,
        "height": 592,
        "content": "## STEP 1 -  PredictLeads Agent \n**[PredictLeads](https://predictleads.com/) Agent processes the request** – A LangChain agent determines the user's intent. If the request involves **company research*"
      }
    },
    {
      "id": "97d26b08-34f2-4e0e-ab89-ce696fdb7074",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        416,
        480
      ],
      "parameters": {
        "width": 704,
        "height": 480,
        "content": "## STEP 2 -  Extract Links\nExtract job posting URLs from the user's input."
      }
    },
    {
      "id": "e03b3653-a8d4-44c9-bdf0-ce58fb1dedd2",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1152,
        480
      ],
      "parameters": {
        "width": 736,
        "height": 480,
        "content": "## STEP 3 -  Scrape Job\nThe Scrape Job node (powered by [ScrapegraphAI](https://dashboard.scrapegraphai.com/?via=n3witalia)) extracts: Email address to send the application to, Job position title, Ful"
      }
    },
    {
      "id": "ad56f348-b8de-410e-ae29-4aa263d52898",
      "name": "Sticky Note4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1920,
        480
      ],
      "parameters": {
        "width": 880,
        "height": 672,
        "content": "## STEP 4 -  Job Application Agent\nA Gemini-powered agent generates a professional email using: Candidate's personal info (name, location, skills), Job position and description. A tool (Create email) "
      }
    },
    {
      "id": "f70961ce-02a9-48e0-8965-bc6f1f81996e",
      "name": "Sticky Note5",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        2320,
        1424
      ],
      "parameters": {
        "width": 880,
        "height": 320,
        "content": "## STEP 5 -  Send email with CV\n The agent triggers the Send email workflow, which: Fetches the CV from a public URL, Creates a draft in Gmail with the CV attached"
      }
    },
    {
      "id": "db743866-7b48-40b4-a891-9be23b60429d",
      "name": "Sticky Note9",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        416,
        -304
      ],
      "parameters": {
        "width": 736,
        "height": 736,
        "content": "## MY NEW YOUTUBE CHANNEL\n👉 [Subscribe to my new **YouTube channel**](https://youtube.com/@n3witalia). Here I’ll share videos and Shorts with practical tutorials and **FREE templates for n8n**.\n\n[![im"
      }
    }
  ],
  "connections": {
    "Chat1": {
      "main": [
        [
          {
            "node": "Loop Over Items",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Chat2": {
      "main": [
        [
          {
            "node": "Loop Over Items",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Limit": {
      "main": [
        [
          {
            "node": "Loop Over Items",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get CV": {
      "main": [
        [
          {
            "node": "Create a draft",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Parser": {
      "main": [
        [
          {
            "node": "If list?",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Context7": {
      "ai_tool": [
        [
          {
            "node": "PredictLeads Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "If list?": {
      "main": [
        [
          {
            "node": "Links Extractor",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Chat",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Split Out": {
      "main": [
        [
          {
            "node": "Limit",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Scrape Job": {
      "main": [
        [
          {
            "node": "Contain email?",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Send email": {
      "ai_tool": [
        [
          {
            "node": "Create email",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Create email": {
      "ai_tool": [
        [
          {
            "node": "Job application Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "PredictLeads": {
      "ai_tool": [
        [
          {
            "node": "PredictLeads Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Simple Memory": {
      "ai_memory": [
        [
          {
            "node": "PredictLeads Agent",
            "type": "ai_memory",
            "index": 0
          },
          {
            "node": "Job application Agent",
            "type": "ai_memory",
            "index": 0
          },
          {
            "node": "Chat1",
            "type": "ai_memory",
            "index": 0
          },
          {
            "node": "Chat",
            "type": "ai_memory",
            "index": 0
          },
          {
            "node": "Chat2",
            "type": "ai_memory",
            "index": 0
          }
        ]
      ]
    },
    "Contain email?": {
      "main": [
        [
          {
            "node": "Job application Agent",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Chat2",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Links Extractor": {
      "main": [
        [
          {
            "node": "Split Out",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Loop Over Items": {
      "main": [
        [],
        [
          {
            "node": "Scrape Job",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI Chat Model1": {
      "ai_languageModel": [
        [
          {
            "node": "PredictLeads Agent",
            "type": "ai_languageModel",
            "index": 0
          },
          {
            "node": "Links Extractor",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "PredictLeads Agent": {
      "main": [
        [
          {
            "node": "Parser",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Job application Agent": {
      "main": [
        [
          {
            "node": "Chat1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Structured Output Parser": {
      "ai_outputParser": [
        [
          {
            "node": "Links Extractor",
            "type": "ai_outputParser",
            "index": 0
          }
        ]
      ]
    },
    "Google Gemini Chat Model1": {
      "ai_languageModel": [
        [
          {
            "node": "Job application Agent",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "When chat message received": {
      "main": [
        [
          {
            "node": "PredictLeads Agent",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "When Executed by Another Workflow": {
      "main": [
        [
          {
            "node": "Get CV",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}