AgentSkillsCN

respond-to-client

对收到的客户邮件进行评估与响应。根据邮件的置信度评分,若高于阈值则自动回复;若低于阈值,则标记为需人工审核。适用于被识别为客户通信(而非反馈)的邮件。

SKILL.md
--- frontmatter
name: respond-to-client
description: Assess and respond to an incoming client email. Score confidence, auto-respond if above threshold, flag for human review if below. Use for emails identified as client communications (not feedback).
tools:
  - score_email_confidence
  - send_email_response
  - flag_email_for_review
user-invokable: false
version: 1.0.0

Respond to Client

Purpose

Evaluate a client email and either send an autonomous response or escalate it to a human reviewer based on the configured confidence threshold.

Instructions

  1. Call score_email_confidence with the message ID, subject, and sender
  2. Check whether the returned score meets or exceeds the configured threshold (default: 80%)
  3. If score ≥ threshold:
    • Call send_email_response with the message ID, recipient address, and relevant context
    • Log the action: responded, score, and timestamp
  4. If score < threshold:
    • Call flag_email_for_review with the message ID and reason ("confidence below threshold")
    • Log the action: flagged, score, and reason
  5. In all cases, add the message ID to the processed-message log

Constraints

  • NEVER pass email body text to score_email_confidence or any other tool
  • NEVER send a response when confidence is below threshold
  • NEVER make commitments about delivery dates, pricing, or contractual terms
  • Legal, compliance, or contractual keywords MUST trigger flagging regardless of score

Expected Output

The action taken: "responded" or "flagged", with the confidence score and reason.