全部文章
Automations

如何用 Claude 或 Gemini 把客户的招聘需求邮件自动录入 CRM

把每封客户邮件交给 Claude 或 Gemini,按严格的提取规则整理,再由招聘顾问审核入库。我们的第一版提示词里,Gemini 8 个字段全靠猜。

  • Saves time
  • Consistent decisions
  • Less legal risk

2026年10月23日 · 7 分钟阅读

提示词为英文:在各类AI工具中英文提示词效果最佳。

八个字段,八个全猜了。我们把三封杂乱的客户邮件整理成职位需求单,邮件里没写的字段,Gemini 每一个都信心十足地编了一个:用人经理、现场办公的工作方式、招聘人数一人。这些内容放进 CRM 里看着都很正常。但全是错的。

简短回答: 把客户邮件转发到同一个邮箱,用自动化流程把每封邮件连同严格的提取提示词交给 Claude 或 Gemini,每条记录入 CRM 前都由招聘顾问审核。光写"不要猜测"是不够的。真正管用的做法是:用人经理、招聘人数和工作方式只有邮件明确写了才填,字段里只放该字段的值,把带歧视性的要求和前后矛盾的信息放进"风险提示"列表。用最终版提示词,Gemini 猜了 0 个字段,Claude 猜了 1 个,而且它自己做了标注。不过,两者都不能不经检查就直接写入你的 CRM。

流程分五步

别让它填写服务费条款,只让它标出"服务费条款同上次"。

  1. 统一入口。 一个转发邮箱。Zapier 的"New Inbound Email"触发器会在自定义的 zapiermail.com 地址收到邮件时启动;n8n 的"Email Trigger (IMAP)"节点则读取共享邮箱。
  2. 提取环节。 邮件正文连同下面的提示词,通过 API 交给 Claude 或 Gemini。
  3. 严格解析。 如果返回的内容无法解析为 JSON,就不创建任何记录,邮件转给人工处理。
  4. 审核队列。 招聘顾问逐条检查我们测试中出过错的地方:字段里夹着备注、本该带歧视性标记的需求单漏了标记、公司名被写成域名缩写("orchard-foods")、把"the"或"a"当成招聘人数。
  5. 写入 CRM。 Bullhorn 的 REST API 通过对 entity/JobOrder 发送 PUT 请求来创建职位需求单;其文档提醒,缺少必填字段会返回 400 错误。"未说明"要映射为空值,绝不能用默认值。

我们测试了第 2 步和第 3 步;第 1 步和第 5 步来自各厂商的文档,没有做完整的端到端搭建。

先清理这些内容。 转发的邮件串里可能带有候选人的简历或电话号码。要删掉,默认不处理附件,并使用公司的 API 账号。

Maya 在熨衣板上把皱成一团的纸熨平,熨过的一半平整,线条整齐

拆解一封邮件

我们用了三封虚构的邮件。这一封里的坑最多。

From: Dana Levi <[email protected]>
Subject: FW: warehouse roles

Hi, see below, can you start on this asap? Actually make it 3 forklift operators not 2, we lost another one Friday.
Dana

---------- Forwarded message ----------
From: Yossi Ben-Ami <[email protected]>
Dana - we need 2 forklift operators for the Ashdod site, night shift (22:00-06:00), must have a valid forklift license. Pay 58 per hour plus night bonus. Also a shift supervisor for the same site, someone with 3+ years running a team of 10+. Ideally young guys who can handle the physical side, under 30. Start beginning of next month.
Yossi

第一版提示词处理叉车岗位需求单的结果:

字段 邮件原文 Claude (Opus 5.5) Gemini (3.8 Flash)
headcount 先说 2 人,后来"make it 3" 3,并标注前后矛盾 3,并标注前后矛盾
work_model 没提 not stated "onsite"
hiring_manager 没提(Yossi 只是转发了请求) not stated "Yossi Ben-Ami"
client_company 只有邮箱域名 "Orchard Foods (taken from the email domain...)" "Orchard Foods"
"under 30"那一行 对年龄和性别的偏好 没有列入硬性要求,并做了标注 没有列入,并做了标注;在另一份需求单里,它却认定这一行"violates"法律

最难的部分两者都做对了:以最新的邮件为准,年龄那一行也没有变成任职要求。问题出得更隐蔽。另外,Claude 返回的内容被套了代码块,导致我们的严格解析器把整个结果拒收了。

邮件中未写明的 8 个字段里,靠猜填写的数量
08第一版提示词另加五条规则最终版提示词Claude, 第一版提示词: 2Claude, 另加五条规则: 0Claude, 最终版提示词: 1Gemini, 第一版提示词: 8Gemini, 另加五条规则: 0Gemini, 最终版提示词: 01 Claude0 Gemini

虚构邮件,每个提示词跑一轮。检查的字段:邮件没提时的工作方式、用人经理和招聘人数。

Source: 我们的测试,由脚本统计

Show the data
第一版提示词另加五条规则最终版提示词
Claude201
Gemini800

真正管用的提示词

提示词里的每条规则,都对应测试中出现过的一个问题:

问题 第几轮 工具 解决它的规则
8 个字段靠猜 第一轮 Gemini 用人经理、招聘人数、工作方式只有邮件写了才填
返回内容被套上代码块 第一轮 Claude 以 [ 开头,以 ] 结尾
公司字段里夹着备注 第一轮 Claude 字段里只放它自己的值
所有公司都填"Not stated" 第二轮 Claude 公司名可以从域名推出,但要加标注
叉车岗位需求单漏了年龄标记 第二轮 Gemini 凡是可能适用的需求单,都要标注
公司名成了域名缩写 最终轮 Gemini 没解决;写入 CRM 前先做映射

提示词分为四部分:角色(Persona)、任务(Task)、背景(Context)和格式(Format)。

PERSONA
You extract job orders from client emails for a recruitment agency. Your output is checked by a recruiter and then created as records in our CRM.

TASK
For each email, return one JSON object per job order.

CONTEXT
Rules:
- Use only what the emails say. If a field is not stated, write "not stated". Never guess.
- A field holds only its value. Put any note or doubt in flags, never inside another field.
- Write a hiring manager only if the email names that person as the hiring manager. A team name ("Lior's team") or the sender is not enough.
- Write a headcount or work model only if the email states it. "Remote OK" is "not stated"; add a flag asking whether it is remote or hybrid.
- When a forwarded or quoted older message conflicts with the newest message, use the newest message and add a flag.
- Do not copy a discriminatory requirement (age, gender, religion, family status, nationality, health) into must_haves. Put it in flags on every job order it could apply to.
- Do not say whether something is legal or illegal. Flag it for the recruiter to check.
- Do not create a job order for a role the client says is not confirmed. Mention it in flags of the nearest job order instead.
- The company name may come from the sender's email domain. Add a flag saying so.

FORMAT
Each object has exactly these fields:
client_company, client_contact_name, client_contact_email, job_title, headcount (a number or "not stated"), location, work_model ("onsite", "hybrid", "remote" or "not stated"), shift_or_hours, pay (exact wording from the email, not converted), must_haves (a list, only requirements the email states), start_date (as written), hiring_manager, deadline_for_profiles, status ("open" or "on hold"), source_quote (the sentence that creates this job order), missing_info (a list of what a recruiter needs before starting that the email does not give), flags (a list: discriminatory or possibly unlawful requests, conflicting numbers, references to attachments or earlier conversations you cannot see).
Your whole answer must start with [ and end with ]. No code fences, no text before or after.

Emails:
[paste one or more client emails, with From, Date and Subject lines]

修好一处,又坏了另一处

第二版杜绝了所有猜测,却矫枉过正,从表里就能看出来:漏标年龄比猜一个字段更糟,因为打开这条记录的人根本看不到风险。最终版在两个工具里都能顺利解析,并且在两份 Orchard 需求单上都标出了年龄那一行。Claude 唯一的一次猜测,是把"the senior data engineer"当成招聘人数 1 人,但它自带了一条标注,请招聘顾问确认。

入库之后的两个提示词

向客户询问缺失的信息。 把某个客户的几条记录交给它。

Below are job order records extracted from one client's email, with their missing_info and flags. Write a short reply email to the client contact that:
- confirms what we understood in 2-3 lines
- asks only the questions needed to start, as a numbered list of at most 5, most important first
- handles any flagged discriminatory requirement politely: say we can only screen on job-related requirements, and ask what the physical demands of the job are
- does not mention AI, JSON or flags
- is under 150 words, plain and friendly

Records:
[paste the records for one client]

Claude 只用一句平和的话就处理了年龄那一行(引文见"风险"部分),但它一边向客户询问确切的入职日期,一边又写了"Both roles start in early December",而且写了 151 个词,超出 150 词的上限。Gemini 问到了体力要求,却始终没有说明年龄和性别不能作为条件。发送前请务必自己看一遍。

核对 CRM 里会有哪些变更。

Below is our current CRM record for a client company and the new job order records extracted from their latest email. List every change the email asks us to make to the client company record, as a table: field | current value | new value | the quote from the email. Do not change anything the email does not mention. Then list anything in the job orders that conflicts with the current record.

Current CRM record:
[paste the client record]

New job orders:
[paste the job order records]

在一条虚构的客户记录上,Claude 提出了两处修改,并要求补全海法的完整地址。Gemini 则把街道地址直接改成了"Haifa"。

这套做法的风险

  • 客户的偏见会变成你的搜索条件。 "Young guys, under 30"这种要求,猎头公司不能照做。要书面回复客户;Claude 的这句就不错:"we can only screen on job-related requirements, so we'll leave age and gender out."你在哪里安置人选,当地规定如何适用,请咨询律师;本文不构成法律建议。
  • 悄无声息的失败。 解析要严格,每一次失败都交给人工处理。

下一步: 职位需求单顺利入库后,可以把需求整理成职位描述;如果你的 CRM 其实还是一张表格,可以看看 Claude 如何通过 Zapier 把数据写入 Google 表格。

This article is general information, not legal advice. Laws differ by country and change often, so consult your lawyer before you rely on it for your situation.

继续阅读