8
n8n 中文网amn8n.com

HRMate 修复

高级

这是一个HR, AI领域的自动化工作流,包含 30 个节点。主要使用 If, Set, Code, Wait, Gmail 等节点,结合人工智能技术实现智能自动化。 使用LlamaIndex和GPT-4o-mini自动化候选人筛选,生成个性化邮件回复

前置要求
  • Google 账号和 Gmail API 凭证
  • 可能需要目标 API 的认证凭证
  • Google Sheets API 凭证
  • OpenAI API Key
工作流预览
可视化展示节点连接关系,支持缩放和平移
导出工作流
复制以下 JSON 配置到 n8n 导入,即可使用此工作流
{
  "id": "8dqwl5tpx0XjJNKX",
  "meta": {
    "instanceId": "c2650793f644091dc80fb900fe63448ad1f4b774008de9608064d67294f8307c",
    "templateCredsSetupCompleted": true
  },
  "name": "HRMate 修复",
  "tags": [],
  "nodes": [
    {
      "id": "68b38626-5c34-4c5a-8e6a-ce6711af9b82",
      "name": "☁️ 上传 PDF 到 LlamaIndex",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        700,
        -760
      ],
      "parameters": {},
      "typeVersion": 4.2
    },
    {
      "id": "441843b0-35cc-4ddf-bb84-a43c900fa8f2",
      "name": "⏳ 检查解析状态",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        920,
        -760
      ],
      "parameters": {},
      "typeVersion": 4.2
    },
    {
      "id": "7f16b44d-4a83-4e7d-9c14-0bd3492f4877",
      "name": "🔁 条件:解析是否成功?",
      "type": "n8n-nodes-base.if",
      "position": [
        1140,
        -760
      ],
      "parameters": {},
      "typeVersion": 2.2
    },
    {
      "id": "7dc90ea4-53e9-4f34-877d-2c3fcfd88cf2",
      "name": "⏱ 重新检查前的延迟",
      "type": "n8n-nodes-base.wait",
      "position": [
        1380,
        -720
      ],
      "webhookId": "ca671b23-f9b8-4bbd-a42c-286b9ed7e23f",
      "parameters": {},
      "typeVersion": 1.1
    },
    {
      "id": "adb0df03-21fa-42d1-8644-c2e33f548664",
      "name": "📥 获取解析后的 Markdown 结果",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        1380,
        -900
      ],
      "parameters": {},
      "typeVersion": 4.2
    },
    {
      "id": "38208667-9c49-413f-97aa-03ba37a0b30b",
      "name": "🧼 清理 Markdown 文本",
      "type": "n8n-nodes-base.code",
      "position": [
        1620,
        -900
      ],
      "parameters": {},
      "typeVersion": 2
    },
    {
      "id": "206f38e7-57f0-4b74-8160-f80201c62539",
      "name": "无操作,不执行任何操作",
      "type": "n8n-nodes-base.noOp",
      "position": [
        480,
        -340
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "d300455f-ef89-4161-a573-94551f1fa7d7",
      "name": "Gmail 触发器 - 收到的申请",
      "type": "n8n-nodes-base.gmailTrigger",
      "position": [
        -440,
        -280
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "6e02a179-9a8d-4ff1-88a7-f09b2cf73762",
      "name": "设置职位标准文本",
      "type": "n8n-nodes-base.set",
      "position": [
        -200,
        -280
      ],
      "parameters": {},
      "typeVersion": 3.4
    },
    {
      "id": "b36435fc-4e5d-4016-89bb-e1965cf19705",
      "name": "提取邮件正文文本",
      "type": "n8n-nodes-base.set",
      "position": [
        0,
        -280
      ],
      "parameters": {},
      "typeVersion": 3.4
    },
    {
      "id": "496375c2-c627-4128-9c2d-2a710c068ce9",
      "name": "检查主题有效性",
      "type": "n8n-nodes-base.if",
      "position": [
        220,
        -280
      ],
      "parameters": {},
      "typeVersion": 2.2
    },
    {
      "id": "b47142e2-d94e-4d55-a591-66d105e6d408",
      "name": "检查是否存在 PDF 附件",
      "type": "n8n-nodes-base.if",
      "position": [
        480,
        -560
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "10936540-f4f6-47c5-bbba-2d10dd062653",
      "name": "为 OpenAI 准备数据",
      "type": "n8n-nodes-base.set",
      "position": [
        1820,
        -540
      ],
      "parameters": {},
      "typeVersion": 3.4
    },
    {
      "id": "e5df09b6-b015-4b26-b766-a59bfcc9284b",
      "name": "使用 OpenAI 评估候选人",
      "type": "@n8n/n8n-nodes-langchain.openAi",
      "position": [
        660,
        -240
      ],
      "parameters": {},
      "typeVersion": 1.8
    },
    {
      "id": "e2b4f1b2-9288-401d-9424-8ab92191e3b3",
      "name": "最终决定检查",
      "type": "n8n-nodes-base.if",
      "position": [
        980,
        -240
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "c8d6083c-a97e-4566-b1fb-0a6297a2f4a5",
      "name": "发送录用通知",
      "type": "n8n-nodes-base.gmail",
      "position": [
        1200,
        -340
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "fb11ce15-8477-477e-8174-906575bf3041",
      "name": "发送拒绝通知",
      "type": "n8n-nodes-base.gmail",
      "position": [
        1200,
        -140
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "0e41269a-4a62-4714-ab78-afa3ebb28bf0",
      "name": "标记为已录用",
      "type": "n8n-nodes-base.set",
      "position": [
        1380,
        -340
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "8024bdc5-d109-42ce-88fe-0c45cfbd11e7",
      "name": "标记为已拒绝",
      "type": "n8n-nodes-base.set",
      "position": [
        1380,
        -140
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "afa7ef69-24c6-4cc4-a59e-a24030ce3587",
      "name": "在 Google Sheets 上更新候选人状态",
      "type": "n8n-nodes-base.googleSheets",
      "disabled": true,
      "position": [
        1640,
        -220
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "552c28ef-ddea-4078-bc88-feeb1963dfd3",
      "name": "便签",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        420,
        -1020
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "da02b312-49ad-4195-8a1d-451828e63c57",
      "name": "便签1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        440,
        -940
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "2db2d480-71b2-4489-b4c8-451a33e354c2",
      "name": "便签2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -540,
        -1020
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "3ed78cbd-9c40-46a7-9a34-ad8ab22b0ee2",
      "name": "便签3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -480,
        -940
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "eb61b244-2a80-40a9-9d3a-d138d3a7fd77",
      "name": "便签4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        420,
        -380
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "58bd8748-4e8f-4929-950f-730391688d40",
      "name": "便签5",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        460,
        -100
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "8f486468-7fb1-4f17-a5a9-7ddbf82c1aa1",
      "name": "便签6",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1720,
        -580
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "6998f74d-8bb7-466a-97db-7afee60ef13c",
      "name": "便签7",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -540,
        60
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "1b0336dc-77fa-48d2-aafb-953785753948",
      "name": "便签8",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -200,
        60
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "f0c872a8-efb9-4ece-add5-f85036730e40",
      "name": "便签9",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        120,
        60
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    }
  ],
  "active": false,
  "pinData": {},
  "settings": {
    "executionOrder": "v1"
  },
  "versionId": "9da0560e-8df9-4d71-8aa9-a1d750af3eac",
  "connections": {
    "\tSend Rejection": {
      "main": [
        [
          {
            "node": "\tMark as Rejected",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "\tSend Acceptance": {
      "main": [
        [
          {
            "node": "\tMark as Accepted",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "\tMark as Accepted": {
      "main": [
        [
          {
            "node": "\tUpdate Candidate Status on Google Sheets",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "\tMark as Rejected": {
      "main": [
        [
          {
            "node": "\tUpdate Candidate Status on Google Sheets",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "\tFinal Decision Check": {
      "main": [
        [
          {
            "node": "\tSend Acceptance",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "\tSend Rejection",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "\tSet Job Criteria Text": {
      "main": [
        [
          {
            "node": "\tExtract Email Body Text",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "\tCheck Subject Validity": {
      "main": [
        [
          {
            "node": "Check If PDF Attachment Exists",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "No Operation, do nothing",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "\tExtract Email Body Text": {
      "main": [
        [
          {
            "node": "\tCheck Subject Validity",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "\tPrepare Data for OpenAI": {
      "main": [
        [
          {
            "node": "\tEvaluate Candidate with OpenAI",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "⏳ Check Parsing Status": {
      "main": [
        [
          {
            "node": "🔁 Condition: Was Parsing Successful?",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    " ⏱ Delay Before Recheck": {
      "main": [
        [
          {
            "node": "⏳ Check Parsing Status",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    " 🧼 Clean Markdown Text": {
      "main": [
        [
          {
            "node": "\tPrepare Data for OpenAI",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Check If PDF Attachment Exists": {
      "main": [
        [
          {
            "node": "☁️ Upload PDF to LlamaIndex",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "\tPrepare Data for OpenAI",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "\tEvaluate Candidate with OpenAI": {
      "main": [
        [
          {
            "node": "\tFinal Decision Check",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "☁️ Upload PDF to LlamaIndex": {
      "main": [
        [
          {
            "node": "⏳ Check Parsing Status",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    " 📥 Get Parsed Markdown Result": {
      "main": [
        [
          {
            "node": " 🧼 Clean Markdown Text",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Gmail Trigger - Incoming Applications": {
      "main": [
        [
          {
            "node": "\tSet Job Criteria Text",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "🔁 Condition: Was Parsing Successful?": {
      "main": [
        [
          {
            "node": " 📥 Get Parsed Markdown Result",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": " ⏱ Delay Before Recheck",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}
常见问题

如何使用这个工作流?

复制上方的 JSON 配置代码,在您的 n8n 实例中创建新工作流并选择「从 JSON 导入」,粘贴配置后根据需要修改凭证设置即可。

这个工作流适合什么场景?

高级 - 人力资源, 人工智能

需要付费吗?

本工作流完全免费,您可以直接导入使用。但请注意,工作流中使用的第三方服务(如 OpenAI API)可能需要您自行付费。

工作流信息
难度等级
高级
节点数量30
分类2
节点类型11
难度说明

适合高级用户,包含 16+ 个节点的复杂工作流

外部链接
在 n8n.io 查看

分享此工作流