🎫 Inbox manager (GPT, Google Calendar & Supabase)

⚡ 2,747 views · 🎫 Ticket Management & Triage

Description

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:

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

Who’s it for

How it works

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

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

Requirements

How to customize

đź”— Nodes Used

Telegram, Gmail, Gmail Trigger, AI Agent, Basic LLM Chain, Embeddings OpenAI

📥 Import

Download workflow.json and import into n8n: Workflow menu → Import from File

📖 Importing guide · 🔑 Credential setup