automation lab / workflow 06

Inbox triage & email sort

A multi-agent workflow that monitors Gmail, classifies incoming emails into 4 operational categories using AI, drafts tailored responses into Gmail Drafts, and dispatches instant Telegram alerts for high-priority messages.

What this demonstrates

Categorized AI agents handle email triage safely by creating Gmail drafts instead of sending auto-replies.

By separating classification from response generation and strictly limiting output actions to Gmail drafts and Telegram notifications, high-volume inbox operations remain safe and controlled.

The project

Managing a high-volume inbox manually creates bottleneck delays and leads to missed priority messages. Outright automated email sending can be risky, but leaving incoming communications unaddressed is equally problematic.

This workflow solves inbox triage by pairing structured AI text classification with specialized agentic sub-workflows. As new messages arrive in Gmail, an AI Text Classifier evaluates each email against four distinct categories: High Priority, Customer Support, Promotions, and Finance/Billing.

Once categorized and labeled in Gmail, the email context is passed to a dedicated AI Agent (such as the High Priority AI Agent or Customer Support AI Agent). Instead of sending outgoing messages directly, each agent calls a Gmail Draft tool to prepare a polished, contextual response directly inside Gmail's drafts folder. High-priority messages trigger an immediate Telegram alert so urgent matters receive immediate human review.

Workflow anatomy

01 / watch & classify

Gmail Trigger & Text Classifier

Polls Gmail every minute for new messages and uses an AI Text Classifier to assign one of four operational categories.

02 / label & route

Gmail Labeling & Branching

Applies corresponding Gmail labels (Priority, Support, Promotions, Billing) to keep the thread organized in the inbox.

03 / agentic drafting

Category AI Agents & Gmail Drafts

Passes email context to specialized AI agents (High Priority, Support, Promotion, Billing) which write personalized replies directly into Gmail Drafts.

04 / alert

Telegram Priority Alert

Dispatches an instant Telegram notification for High Priority emails, detailing sender, subject, summary, and draft creation confirmation.