用 Claude 和 Make 搭建简历解析器(无需写代码)
普通提示词把简历上的'8年以上'算成了11年。用 Claude 和 Make 解析简历:要求输出 JSON,缺失值填 null,不让它计算。已实测。
- Saves time
- Consistent decisions
- Less legal risk
2026年11月10日 · 5 分钟阅读

提示词为英文:在各类AI工具中英文提示词效果最佳。
我们用一句话的解析提示词处理了四份虚构简历,每个回复看上去都像 JSON。接着我们去读了 JSON 里到底写了什么。其中一份简历的个人简介写的是"8+ years of experience",而我们的解析器悄悄把它改成了11,因为它根据日期自己算了一遍,认定这位候选人记错了自己的职业经历。
这篇文章的教训就是:简历解析器的流程搭建很简单,真正让它开始编造内容的,是提示词。
**简短回答:**用 Claude 和 Make 搭建简历解析器,先让 Make 把每份 PDF 转成纯文本,再把文本连同一条列出准确 JSON 字段的提示词发给 Claude,并在写入 Google Sheets 之前加一个 Parse JSON 步骤。提示词里写四条规则:缺失的信息一律填 null;日期统一格式;工作年限照抄原文,绝不自行计算;不要提取你用不到的个人信息。在我们对 4 份虚构简历的测试中,这条提示词产生了 0 个编造的值,Claude 和 Gemini 的 8 个回复全部是干净的 JSON。而普通提示词的 8 个回复里,干净的是 0 个。

这个场景长什么样
Make 自己的招聘指南搭的是同样的骨架,只不过在我们用 Claude 的位置上,它用的是 AI Agent。步骤依次如下:
- **Google Drive,Watch Files in a Folder。**文件夹里出现一份新简历,就触发运行。
- Google Drive,Download a File。
- **PDF 转文本步骤。**Make 的指南用的是 PDF.co 的 Convert from PDF(设为 JSON),再用一个 HTTP 请求获取结果。
- **Claude。**使用 Make 的 Anthropic Claude 模块,或者用 HTTP 请求调用 Anthropic API。下面的提示词放在这里,简历文本接在它最后一行之后。
- **JSON,Parse JSON。**定义一个数据结构,字段与提示词中的一致。
- **Google Sheets,Add a Row。**每个简单字段对应一列。
jobs和education是列表,原样放不进一个单元格;我们没有在 Make 里尝试把它们展平,所以请先决定是存成文本,还是每段工作经历占一行。
我们没有为这篇文章实际运行 Make。这些步骤来自 Make 的指南,而且模块名称会变,请在你自己的账号里核对。我们实际跑的是第 4 步,问题正出在这里。
如果是没有文字层的扫描版 PDF,第 3 步就没有东西可转,所以请专门测试一份。
四份简历,各设一个陷阱
我们编了四份简历,用纯文本的形式,就像转换器交给 Claude 的那样:
- Maya:简介写着"8+ years",有两份仍在职的工作,顶部还有出生日期、婚姻状况和子女情况。
- Daniel:职位名称被拆成了两行,只写了年份没有月份,留了电话号码但没留邮箱。
- Noa:双栏排版,有身份证号、年龄,还有一段因照顾家人而中断的职业空窗期。
- Yossi:有两家雇主,但完全没有日期。
然后我们在 Claude 和 Gemini 里各跑了两条提示词。先是普通的:
Extract the information from this resume into JSON with these fields: full_name, email, phone, location, years_experience, jobs (company, title, start_date, end_date), education (school, degree, year), skills, languages.
再是带规则的,与我们实际运行的完全一致:
You are a data-entry assistant. Read one resume and return one JSON object. Output only the JSON, no other text.
Fields:
{"full_name": str|null, "email": str|null, "phone": str|null, "location": str|null,
"years_experience_stated": str|null,
"jobs": [{"company": str|null, "title": str|null, "start_date": str|null, "end_date": str|null}],
"education": [{"school": str|null, "degree": str|null, "year": str|null}],
"skills": [str], "languages": [str]}
Rules:
- Use only what the text says. If a field is not in the resume, use null. Never guess or fill it from common sense.
- Dates: "YYYY-MM" when the month is given, "YYYY" when only the year is given, "present" for a current job, null when missing. Do not add a month that is not there.
- years_experience_stated: copy it only if the resume states it in words, exactly as written. Never calculate it from dates.
- Do not extract date of birth, age, marital status, children, ID number, photo, health, religion or nationality. Leave them out entirely, even if they appear.
- A career break, gap or caregiving period is not a job. Do not list it in jobs.
- Keep skills as written, including qualifiers such as "(basic)".
- One entry per job, in the order they appear.
Resume:
一句话提示词,放进表格后
年限:标准答案是 null,或简历原文的写法。
Source: 我们的测试,每个工具和提示词各 4 份虚构简历,由脚本评分
Show the data
| 普通提示词 | 带规则的提示词 | |
|---|---|---|
| Claude:包在代码块里,附带说明 | 4 | 0 |
| Gemini:包在代码块里 | 4 | 0 |
| Claude:年限是算出来的,不是原文所写 | 3 | 0 |
| Gemini:年限是算出来的,不是原文所写 | 2 | 0 |
| Gemini:日期格式不统一 | 2 | 0 |
普通提示词的每个回复都包在代码块里,Claude 的还附带了一份说明。Make 的 Parse JSON 步骤要求只有 JSON、别的什么都不能有,所以这 8 个回复很可能都会卡在第 5 步。带规则的提示词要求"只输出 JSON",8 个回复都是干净的纯 JSON。
编造的数字是更隐蔽的问题。Claude 在 4 份简历中有 3 份自己计算了工作年限,包括给 Maya 算出的 11,而她自己写的是"8+"。Gemini 有 2 份是自己算的,并且照抄了 Maya 的"8+"。Daniel 的 6 年没有扣除两年的空档。Gemini 还把"Jan 2019"和"06/2015"混在一起,表格没法对它们排序。
下面是 Maya 的那一行,并排对比:
| 字段 | 普通提示词 | 带规则的提示词 |
|---|---|---|
| 工作年限(Claude) | 11 | "8+ years" |
| 当前工作的结束日期(Claude) | null | "present" |
| 第一份工作的开始日期(Gemini) | "Jan 2019" | "2019-01" |
结束日期为 null,看上去和日期缺失是一样的,所以 Claude 在普通提示词下的回答,分不清"仍在职"和"不知道"。
加了规则之后,还有哪些问题
它并不完美。带规则的 8 个回复中,有 5 个保留了简历上全大写的姓名("MAYA COHEN-LEVY"),这会让你的表格里出现与"Maya Cohen-Levy"重复的记录。可以在提示词里加一行,或者用 Make 的 capitalize 函数来修正,并且要测试。
两个工具都没有提取出生日期、婚姻状况、身份证号和照片备注。公平地说,普通提示词本来就没要求提取这些,Claude 还在说明里这么讲了。这条规则是第二道锁,不是唯一的锁。更好的那道锁是数据结构:永远不要添加你无权使用的字段。
对于 Yossi 那份几乎空白的简历,两条提示词在两个工具里都把他的日期和第一家雇主的职位留成了 null。这一点不需要任何规则。
正式启用之前
把下面这份清单复制下来,用前 20 份简历逐项核对:
Resume parser go-live checklist
[ ] A real PDF, a scanned PDF and a two-column PDF each produce text
[ ] Claude's reply is bare JSON (no code fence, no notes)
[ ] Every date is YYYY-MM, YYYY, "present" or empty
[ ] years_experience_stated matches the resume's own words, or is empty
[ ] A resume with no email gives an empty email cell, not a guess
[ ] Names are in one capitalization style
[ ] The sheet has no column for age, marital status, ID or photo
[ ] 20 rows checked by eye against the PDFs
- **只解析,不排名。**这个流程只是填一张表。简历仍然由人来看,由人来做决定。
- **个人数据。**你是把简历交给两家服务处理。请查看各家的数据条款和你们自己的隐私声明,并咨询律师。我们在这里不提供法律意见。
**下一步:**等表格逐渐填满,可以看看如何用助手筛选简历又不漏掉好人才;如果你更想用 Zapier,请读用 Zapier 把 Claude 连接到表格。
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.


