Install
openclaw skills install pincaimao-interview-reports聘才猫 - 面试报告 Use when calling Pincaimao Interview Report API to generate an interview report or coaching materials based on a job description and interview recording file. Requires PCM_INTERVIEW_REPORT_KEY env var.
openclaw skills install pincaimao-interview-reportsREQUIRED: 请先检查是否已安装 pincaimao-basic,若未安装请先安装,然后加载它了解通用接口(文件上传、鉴权、响应格式、SSE 解析模板)。
环境变量:PCM_INTERVIEW_REPORT_KEY(智能体专属 key)
还没有密钥?通过邀请链接注册并完成认证即可免费获取:pincaimao.com/agents/login?invite_code=uwqc
执行前需要确认:职位描述(job_info) 和 面试记录文件。
确认策略:
| 字段 | 本智能体 | 其他智能体 |
|---|---|---|
| 文件字段名 | file_urls(复数) | file_url |
query 内容 | 文件名(非 job_info 前 20 字符) | job_info 前 20 字符 |
| 字段 | 必填 | 说明 |
|---|---|---|
inputs.job_info | 是 | 职位描述全文 |
inputs.file_urls | 是 | 面试记录文件的 cos_key(注意是 file_urls 复数) |
query | 是 | 上传文件的文件名(不是 job_info 前 20 字符) |
#!/bin/bash
INTERVIEW_FILE="/path/to/interview_record.docx"
JOB_INFO="高级销售专员 / 销售主管,行业领先平台,完善晋升通道和培训体系"
# Step 1: 上传面试记录文件
UPLOAD=$(curl -s -X POST 'https://api.pincaimao.com/agents/v1/files/upload' \
-H "Authorization: Bearer $PCM_INTERVIEW_REPORT_KEY" \
-F "file=@$INTERVIEW_FILE")
COS_KEY=$(echo "$UPLOAD" | python3 -c "import sys,json; print(json.load(sys.stdin)['cos_key'])")
FILE_NAME=$(echo "$UPLOAD" | python3 -c "import sys,json; print(json.load(sys.stdin)['filename'])")
# Step 2: 生成面试报告
# 注意:query 用文件名,file_urls(复数)传 cos_key
curl -s -X POST 'https://api.pincaimao.com/agents/v1/chat/chat-messages' \
-H "Authorization: Bearer $PCM_INTERVIEW_REPORT_KEY" \
-H 'Content-Type: application/json' \
-d "{
\"query\": \"$FILE_NAME\",
\"inputs\": {
\"job_info\": \"$JOB_INFO\",
\"file_urls\": \"$COS_KEY\"
},
\"response_mode\": \"blocking\"
}" | python3 -c "import sys,json; print(json.load(sys.stdin)['answer'])"
| 问题 | 原因 | 解决 |
|---|---|---|
| 401 | Key 错误 | 检查 PCM_INTERVIEW_REPORT_KEY |
| 报告内容为空 | 用了 file_url 而非 file_urls | 字段名是复数 file_urls |
| 报告内容错乱 | query 传了 job_info 内容 | query 必须传文件名,不是 job_info |
answer 字段内容原样输出message / agent_message 事件的 answer 片段拼接完整后,原样输出,不作重述https://api.pincaimao.com — Pincaimao platform API (chat, file upload, conversations)Authorization header; never hardcodedapi.pincaimao.com for AI processingcos_key paths should be treated as sensitiveapi.pincaimao.com