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
- •Call
score_email_confidencewith the message ID, subject, and sender - •Check whether the returned score meets or exceeds the configured threshold (default: 80%)
- •If score ≥ threshold:
- •Call
send_email_responsewith the message ID, recipient address, and relevant context - •Log the action: responded, score, and timestamp
- •Call
- •If score < threshold:
- •Call
flag_email_for_reviewwith the message ID and reason ("confidence below threshold") - •Log the action: flagged, score, and reason
- •Call
- •In all cases, add the message ID to the processed-message log
Constraints
- •NEVER pass email body text to
score_email_confidenceor 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.