Inbox Manager (GPT, Google Calendar & Supabase)

Overview Turn your cluttered inbox into a smart, autonomous assistant that categorizes emails, replies to leads, checks your calendar, and notifies you on Telegram—all without lifting a finger.

This workflow is designed for a marketing agency, but can be adapted for any business. It classifies incoming emails into categories like Sales, Client Communication, Reports, Billing, and Other. If it detects a new lead or priority message, it routes the email to one of two agents: The Calendar Agent checks your availability in Google Calendar and drafts a consultation reply
The Knowledge Agent answers FAQs using your business knowledge base (with Supabase embeddings)

Both agents create draft email responses and send a Telegram alert so you're always in the loop.

Who’s it for Founders and agency owners buried in emails
Marketing teams handling lots of inbound leads
Customer support managers automating Tier 1 replies
Anyone who wants a cleaner, smarter inbox without hiring a VA

How it works Gmail trigger watches for incoming emails
Email content is passed to an AI classifier to apply a label (Sales, Client, Billing, etc.)
If the message is a new inquiry or lead, it’s routed to: Calendar Agent → checks Google Calendar and drafts a reply with available slots
Knowledge Agent → searches vector DB and drafts a helpful reply from documentation
Both agents create a Gmail draft response and send a Telegram notification with summary

Example use case > A lead emails you asking for a discovery call.
>
> ✅ Email is labeled "Sales"
> ✅ AI Calendar Agent checks your Google Calendar
> ✅ A reply is drafted offering free time slots
> ✅ You get a Telegram ping:
> "New lead: Abdul Mir. I checked your calendar and drafted a reply. Check your email!"

How to set up Connect your Gmail and set up a trigger for new messages
Train the AI classifier with example categories and emails
Connect Google Calendar API for availability checks
Upload your internal docs and sync to Supabase vector store
Connect Telegram for alerts
Customize AI prompts and escalation logic as needed

Requirements Gmail integration
OpenAI or Claude API (for classification + chat agents)
Google Calendar API
Supabase (or Pinecone, Weaviate) for RAG vector DB
Telegram bot API key

How to customize Add custom labels like “Recruiting,” “Investor,” or “Support”
Replace Telegram with Slack or SMS alerts
Add CRM sync to update lead status
Escalate complicated replies to a human via task creation
Add auto-send (instead of drafts) after review or based on confidence score

0
Downloads
38
Views
8.72
Quality Score
intermediate
Complexity
Author:Abdul Mir(View Original →)
Created:8/13/2025
Updated:11/17/2025

🔒 Please log in to import templates to n8n and favorite templates

Workflow Visualization

Loading...

Preparing workflow renderer

Comments (0)

Login to post comments