Inspiration

Every day, we constantly switch between Gmail, Outlook, Slack, and Discord, and it’s easy to miss important messages.

We wanted to build an AI-powered unified inbox — a single interface where you instantly know what’s urgent, what needs attention, and what can wait, eliminating “notification anxiety” entirely.

What it does

Inbox Agent is an intelligent message prioritization assistant that:

  • 🔗 Aggregates multi-platform messages
    Connect Gmail, Outlook, Slack, and Discord in one click — all messages flow into a unified inbox.

  • 🤖 AI-powered analysis
    Uses AI (Gemini) to automatically classify each message by priority (urgent / important / normal / low), estimate response deadlines, and generate keyword summaries.

  • 📊 Smart dashboard
    Sorts messages by priority and urgency so you immediately know what to handle first.

  • 🔔 Real-time notifications
    Pushes new messages instantly, with sound alerts for urgent items.

  • 📈 Data insights
    Provides clear analytics on message sources, priority distribution, and task completion progress.


How we built it

  • Frontend: React + TypeScript + Tailwind CSS + shadcn/ui for a modern, responsive UI
  • Backend: Supabase (PostgreSQL + Auth + Edge Functions + Realtime)
  • AI Analysis: Supabase Edge Functions calling Lovable AI (Gemini) for structured message analysis
  • OAuth Integration:
    • Gmail / Outlook via OAuth 2.0
    • Slack via Lovable Connector
  • Real-time Sync: Supabase Realtime + 30-second incremental polling
  • Deployment: One-click deployment via Lovable

Challenges we ran into

Email encoding issues

Gmail API returns base64url-encoded content. atob() doesn’t support UTF-8, causing garbled Chinese text.
→ Solved using TextDecoder("utf-8") + Uint8Array.

OAuth permission complexity

Each platform has different scopes. Slack’s users.conversations required additional approval, and debugging missing_scope errors took time.

Realtime updates not working

Supabase Realtime requires manually adding tables to the supabase_realtime publication — an easy-to-miss step.

Security hardening

Edge Functions needed protection against XSS, Open Redirect, and JWT forgery. Security review revealed multiple vulnerabilities that required fixes.


Accomplishments that we're proud of

  • Built a full product from scratch in a short time — covering database design, authentication, OAuth, AI analysis, and real-time systems
  • AI accurately prioritizes messages and identifies urgency — enabling users to truly “focus on what matters”
  • Successfully integrated four major communication platforms with 30-second incremental sync
  • Dual-sound alerts ensure urgent messages are never missed
  • Strong security awareness from the start — including RLS, JWT validation, and token protection

What we learned

  • Supabase Realtime configuration (especially publication setup) is critical for real-time features
  • OAuth integration varies significantly across platforms — especially in scopes and token refresh mechanisms
  • Handling multilingual encoding in Edge Functions cannot rely on atob()
  • Security must be designed from the beginning, not patched later

- Lovable significantly accelerates full-stack development with AI assistance

What's next for Inbox Agent

  • 🔐 Security hardening
    Implement full JWT validation and XSS protection in OAuth callbacks

  • 📱 Mobile PWA
    Allow users to install the app and access their priority inbox anytime

  • 🧠 Smart rule engine
    Enable custom rules (VIP senders, keyword filters, etc.)

  • 📅 Calendar integration
    Adjust response deadlines automatically based on meetings

  • 💬 One-click reply
    AI-generated reply suggestions directly inside Inbox Agent

  • 📊 Weekly reports
    Automatically generate productivity summaries of message handling

Built With

Share this project:

Updates