You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Build a lightweight service that connects to a user's Gmail, generates AI-powered email summaries on a schedule, and delivers prioritized digests to WhatsApp. The MVP is a simple web app for onboarding + a backend cron service — no mobile app needed.
Timeline estimate: 2–3 weeks
Core bet: Users will read email summaries on WhatsApp because it requires zero behavior change.
1 · Product Specification
Agent: Product Agent
Product Goal
Enable busy professionals to stay on top of important emails without opening Gmail — by receiving AI-summarized digests directly on WhatsApp.
1. User visits landing page
2. User connects Gmail via Google OAuth (read-only)
3. User enters WhatsApp number
4. User selects digest frequency (every 2h / 3x day / daily)
5. System runs on schedule → reads unread emails → AI summarizes → sends WhatsApp digest
6. User receives digest on WhatsApp with prioritized email summaries
MVP Scope
✅ Included
Google OAuth for Gmail (read-only scope)
AI-powered email summarization (Gemini / GPT-4o)
WhatsApp delivery via Twilio
Configurable digest frequency (2h / 3x day / daily)
Priority classification (🔴 Urgent / 🟡 Important / 🟢 FYI)
Simple onboarding web app
❌ Excluded
Reply-from-WhatsApp
Multiple email accounts
Custom filters or rules
Mobile app
Team/enterprise features
Authentication beyond Google OAuth
Analytics dashboard
Success Metrics
Metric
Target
Beta sign-ups
50 users in 2 weeks
Daily summary read rate
≥ 60%
Day-14 retention
≥ 40%
NPS score
≥ 40
Avg. self-reported email checks/day reduction
≥ 30%
Acceptance Criteria
User can connect Gmail via OAuth
User can register WhatsApp number
User can select digest frequency
System sends AI-summarized digest on schedule
Digest correctly classifies emails by priority
User receives digest on WhatsApp within 2 minutes of scheduled time
System handles OAuth token refresh without user intervention
2 · UX Design
Agent: Design Agent
User Flow
Landing Page → Connect Gmail (OAuth) → Enter WhatsApp Number → Select Frequency → Confirmation → (Exit)
↓
WhatsApp Digest Arrives
↓
User reads summary
Screens
#
Screen
Purpose
1
Landing Page
Value proposition, CTA to get started
2
Connect Gmail
Google OAuth consent flow (Google-hosted)
3
Setup
Enter WhatsApp number + select digest frequency
4
Confirmation
Success state — "You're all set! First digest arriving soon."
5
Settings
Change frequency, disconnect Gmail, update WhatsApp number
UI Components
Component
Location
Notes
Hero section with CTA
Landing Page
"Never miss an important email again"
Google Sign-In button
Connect Gmail
Standard Google OAuth button
Phone number input
Setup
With country code selector, WhatsApp validation
Frequency selector
Setup
3 options: Every 2h / 3x day / Daily
Success animation
Confirmation
Lottie or CSS animation
Settings form
Settings
Editable frequency, phone, disconnect button
Interaction Logic
Landing → OAuth: Single CTA button triggers Google OAuth popup
OAuth → Setup: Auto-redirect after successful Gmail connection
Setup → Confirm: Form validates phone number format before submission
Confirm: Auto-sends first test digest within 1 minute as onboarding
Settings: Accessible via link in every WhatsApp digest ("⚙️ Manage settings")
UX Risks
Risk
Mitigation
Users hesitant to grant Gmail access
Show clear read-only scope explanation + privacy commitment
WhatsApp number validation failures
Use Twilio Lookup API to verify before saving
Users forget they signed up
Include "Powered by InboxPulse" footer in every digest
No way to give feedback
Add "👍 / 👎" quick reaction buttons in digest messages
1. Cron job fires on schedule (per user's frequency)
2. Fetch user's Gmail OAuth tokens from DB
3. Call Gmail API → get unread emails (subject, sender, snippet, date)
4. Batch emails → send to Gemini/OpenAI for summarization + priority classification
5. Format digest message (markdown-style for WhatsApp)
6. Send via Twilio WhatsApp API
7. Log digest delivery in DB
8. Mark emails as "processed" to avoid duplicates
Infrastructure
Component
Choice
Rationale
Frontend hosting
Vercel
Free tier, Next.js native
API + Worker
Railway
Simple deploy, cron support, $5/mo
Database
Supabase (PostgreSQL)
Free tier, managed, built-in auth helpers
AI Model
Gemini 1.5 Flash
Fast, cheap, good summarization quality
WhatsApp
Twilio WhatsApp API
Reliable, sandbox available for testing
Secrets management
Environment variables
Standard for MVP
Technical Risks
Risk
Severity
Mitigation
Gmail OAuth token expiry
High
Implement refresh token rotation; store refresh tokens encrypted
AI summarization hallucinations
Medium
Include "View in Gmail" link for every email; strict prompt engineering
Twilio WhatsApp sandbox limits
Medium
Apply for production WhatsApp Business API early
Cron job failures (silent)
Medium
Add health check endpoint + simple alerting (email/Slack)
Rate limits on Gmail API
Low
Batch requests; stay within 250 quota units/user/second
4 · Database Schema
Agent: Database Architect Agent
Database Choice
PostgreSQL (via Supabase)
Why: Relational data model fits perfectly (users → settings → digests). PostgreSQL is battle-tested, Supabase provides a free managed tier with built-in Row Level Security.