💡 New script: gmail-classifier-daily-briefing (AI-classified email intelligence report across domain taxonomy) #552
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Summary
A companion script to the recently shipped gmail-ai-classifier that runs as a follow-up scheduled job, aggregating classified emails by canonical domain (Household, Finance/Legal, Vehicles, Family/Health, Tech/Infrastructure, Work/Career, Community/Non-Profit) and generating a structured daily intelligence report via Gemini. The report highlights action items, upcoming deadlines, and domain-specific summaries — transforming raw classification labels into an actionable morning briefing.
Market Signal
Superhuman ($30/month), Shortwave ($30-120/month), and Fyxer ($30-50/month) offer AI email summaries but none use custom classification taxonomies. Zapier's new AI task multipliers (3x-5x per AI step, effective June 2026) make AI-powered email digest workflows significantly more expensive on automation platforms. Google's own Gmail AI Inbox surfaces VIP senders and action items but doesn't support user-defined domain taxonomies. The Vertex AI Advanced Service reaching GA in Apps Script (January 2026) makes direct Gemini calls a first-class capability. Apps Script's elevation to a Workspace core service (June 2026) strengthens the compliance story for organizations.
User Signal
The gmail-ai-classifier was merged as PR #492 — the project's most sophisticated script. Users who deploy it get organized labels but no synthesis across domains. The natural next question after classification is: "What do I need to act on today across all my email domains?" This is the Phase 2 capability that makes the classifier indispensable. The classifier's 7 canonical domains provide a structured taxonomy that enables per-domain intelligence summaries unavailable from any generic email digest tool.
Technical Opportunity
Builds directly on the gmail-ai-classifier's infrastructure: reads from the same canonical domain labels, reuses the Gemini API integration pattern, and follows the proven label-scoped processing architecture. The daily briefing is architecturally a separate script (independently deployable via the deploy page) that reads the classifier's output labels. Uses
MailApp.sendEmail()for email output orDocumentAppfor Doc output. The existing test infrastructure (Jest mocks for GmailApp, MailApp, DocumentApp) covers all needed GAS services.Assessment
Adversarial Review
Strongest objection: This overlaps with existing idea #471 (gmail-digest — customizable email digest with optional AI summaries). Adding another AI processing layer on top of the classifier is unnecessary cost — users can just review their labeled inbox directly.
Rebuttal: The gmail-digest idea (#471) is a generic email summarizer not tied to any classification taxonomy. This script is specifically structured around the classifier's 7-domain taxonomy, producing a cross-domain intelligence report: "3 Finance items need attention, 1 Vehicle deadline this week, 5 Tech newsletters to review." The classifier sorts; the briefing synthesizes. Together they form a pipeline (ingest → classify → brief) that no generic digest provides. The "just look at labeled inbox" objection misses the synthesis value: users don't want to check 7 label folders — they want one report showing what matters across all domains.
Suggested Next Step
Design the briefing template (Gemini prompt for per-domain summarization + action-item extraction), define the output format (structured email with domain sections or a daily Google Doc), and implement as a standalone script that reads from gmail-ai-classifier's canonical domain labels. Include config options for output format, summary depth, and delivery time.
All reactions