This commit is contained in:
张成
2026-03-17 15:10:27 +08:00
parent f071215ad5
commit 39a5b49213
5 changed files with 70 additions and 52 deletions

View File

@@ -284,15 +284,15 @@ action 仅允许以下五种之一:
规则:
1. 若 HR 明确表示暂不匹配、感谢关注、有合适机会再沟通、与岗位不够匹配、婉拒、不考虑、不招了、已招到 等 → action 为 no_replyreply_content 留空。
2. 若 HR 明确要求发简历/投递/看简历 → action 为 send_resumereply_content 可为简短附言或空。
3. 若 HR 明确要求加微信/留微信/发微信 → action 为 exchange_wechatreply_content 可为简短附言或空。
4. 若 HR 明确要求留电话/发电话/联系方式 → action 为 exchange_phonereply_content 可为简短附言或空。
5. 若仅为普通聊天、打招呼 → action 为 textreply_content 为一句自然回复(50字以内
6. reply_content 必须为字符串,不要换行。
2. 若 HR 明确要求发简历/投递/看简历 → action 为 send_resumereply_content 简短附言或空10字内
3. 若 HR 明确要求加微信/留微信/发微信 → action 为 exchange_wechatreply_content 简短附言或空10字内
4. 若 HR 明确要求留电话/发电话/联系方式 → action 为 exchange_phonereply_content 简短附言或空10字内
5. 若仅为普通聊天、打招呼 → action 为 textreply_content 为一两句简短回复(20字以内,语气平淡、不要过于热情
6. reply_content 必须为字符串,不要换行;整体风格:简洁、克制、不啰嗦
`.trim();
const result = await this.callAPI(prompt, {
systemPrompt: '你是求职沟通助手。根据 HR 消息判断动作no_reply不需要回复、text仅文字、send_resume(发简历)、exchange_wechat(换微信)、exchange_phone(换电话)。HR 婉拒/暂不匹配/感谢关注时用 no_reply。输出 JSON{"action":"上述五选一","reply_content":"..."}。只返回合法 JSON。',
systemPrompt: '你是求职沟通助手。根据 HR 消息判断动作no_reply、text、send_resume、exchange_wechat、exchange_phone。HR 婉拒/暂不匹配时用 no_reply。回复内容务必简短20字以内、语气平淡、不要过于热情。输出 JSON{"action":"五选一","reply_content":"..."}。只返回合法 JSON。',
temperature: 0.3,
maxTokens: 500,
business_type: 'chat_reply_intent',
@@ -308,7 +308,7 @@ action 仅允许以下五种之一:
const reply_content = typeof parsed.reply_content === 'string' ? parsed.reply_content.trim() : '';
return { action, reply_content };
} catch (e) {
return { action: 'text', reply_content: raw || '收到,谢谢您。' };
return { action: 'text', reply_content: raw || '好的' };
}
}