CLI command
email score replies
Classified replies: every inbound email reply with the classifier's reading and what it did to the contact.
Invocation#
echo-cli email score replies --days <n> [--intent <intent>]Inputs and output#
Writes every reply classified in the last --days days, newest first: message_id, conversation_id, contact_id, contact_name, body, intent, confidence, reason, failure (why the classifier could not read the reply, or null), deal_status_after, suppressed and classified_at.
State effect#
The command calls Echo Web's authenticated /api/crm/replies with ECHO_INTERNAL_BEARER at ECHO_WEB_BASE_URL; the Classified replies section of the inbox and of Echo Desktop's Contact frequency screen read the same, and echo-mcp runs it as echo_crm_replies. The email sync (/api/crm/sync/email) classifies each inbound reply and keeps the reading on the message and its conversation in crm_reply_classifications, with the deal status the reading left the contact in — an interested reply moves the contact to negotiating, an objection to replied, an unsubscribe to rejected and suppresses the contact, and an advanced stage is never moved back — and whether it suppressed the contact. --intent narrows the list to one intent the classifier names.
Refusals#
- A wrong invocation is refused before anything is sent: "email score replies does not take <flag>; it takes --days, --intent", "<flag> needs a value" and "email score replies needs --days".
- Echo Web answers a bad request with "days must be a positive whole number: how far back classified replies are read; got <value>". The command prints Echo Web's sentence and exits 1.