1. Inputs
- Message ID, sender, subject, received timestamp, body preview, and attachments flag.
- Allowed labels: sales, support, billing, urgent, spam, vendor, unknown.
- Owner map: sales lead, support lead, finance lead, or manual review.
Proof hub / Tutorial sample
Goal: reduce missed support and sales messages by giving every new email a category, owner, urgency, and visible reason before a human reviews it.
Gmail trigger, normalize message fields, classify against the allowed label list, write one row to the review sheet, notify the owner, and store the model or rule reason in the log.
received_at, message_id, label, owner, reason, status
2026-05-22T09:00Z, msg_001, sales, revenue_owner, pricing request, open
2026-05-22T09:03Z, msg_002, support, support_owner, login issue, open