# Gmail Triage Assistant

> Triage Gmail, classify leads, log prospects to CSV, and prepare reply drafts for your approval.

Gmail Triage Assistant is a free AI agent skill on Agensi by Kristian Carlo Rosales, in Workflow Automation. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: Free
- Creator: [Kristian Carlo Rosales](https://www.agensi.io/creators/kristian-carlo-rosales)
- Category: [Workflow Automation](https://www.agensi.io/skills/workflow-automation)
- Version: 1.0
- Last updated: 2026-11-30
- Security: scan passed (2026-11-30); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/gmail-triage-assistant
- Tags: automation, gmail-api, python, sales, productivity

## About this skill

Managing an overflowing inbox manually is a time sink that leads to missed opportunities and slow responses. This skill automates the heavy lifting by reading, classifying, and drafting responses for your unread Gmail messages while keeping you in total control.

### What it does
- **Automatic Classification** identifies emails as leads, support, billing, personal, newsletters, or spam using defined triage rules.
- **Priority Summarization** generates a compact table of unread mail, highlighting high-priority items so you see what matters first.
- **Draft Generation** writes context-aware replies for your approval without ever sending them automatically.
- **Lead Management** extracts prospect details from emails and appends them to a local CSV file for CRM integration.
- **Inbox Organization** applies an `AI-Triaged` label to processed threads to prevent duplicate work.

### How it works
1. **Fetch** the latest unread messages from the last seven days using the Gmail API tool.
2. **Analyze** each message to determine its category, priority, and whether it requires a response.
3. **Present** a summary table and proposed draft text to the user for review and editing.
4. **Execute** approved actions by saving drafts directly to Gmail and logging lead data to `inbox-triage-leads.csv`.
5. **Label** the messages as triaged to clear them from the processing queue.

### Frameworks & tools
This skill uses Python 3.9+, `google-api-python-client`, and `google-auth-oauthlib`. It communicates via the official Google Gmail API (`gmail.modify` and `gmail.compose` scopes) and stores configuration in a local `~/.inbox-triage/` directory.

### Why this beats prompting it yourself
Standard prompts lack the state management needed to track which emails are processed and cannot interact with the Gmail API to save drafts in-thread. This skill provides the necessary glue code to move from "reading" to "doing" without the risk of an LLM accidentally sending an unpolished email.

### Use cases
- **Sales Triage** to extract leads from a high-volume info@ email address into a spreadsheet.
- **Support Filtering** to summarize customer issues and draft initial technical responses.
- **Daily Catch-up** to get a bulleted report of your morning inbox and bulk-prepare replies.
- **Newsletter Cleanup** to identify and group low-priority subscriptions away from direct messages.

### Known limitations
Requires a one-time manual setup of a Google Cloud Project and OAuth credentials. It cannot delete or archive emails and only processes unread mail from the last 7 days by default.

## Requires

- python 3.9+
- Gmail account
- Free Google Cloud OAuth client (setup guide included)
- pip

First run: your agent walks you through a free 5-minute Google setup (guide included). Your mail stays between your computer and Google. The skill only creates drafts; it never sends, deletes or archives email.

## How to use this skill

1. Connect your AI agent to Agensi once: add the MCP server https://mcp.agensi.io/mcp/auth and sign in with your Agensi account (OAuth, no API key). Steps for Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and other agents: https://www.agensi.io/docs/mcp-setup
2. Ask your agent: "Use the Gmail Triage Assistant skill from Agensi" and describe your task.
3. Your agent loads the skill from Agensi when it needs it. Nothing is downloaded.

## Frequently asked questions

### What kind of Google account permissions or setup are required?

The skill requires a Google Cloud Project with the Gmail API enabled. You will need to download your `credentials.json` file and perform a one-time OAuth authentication to grant the skill permission to manage labels and drafts.

### Does the AI automatically send replies to my contacts?

No, this skill is designed with a "Human-in-the-Loop" safety mechanism. It creates reply drafts within your Gmail account for your review and manual sending, ensuring the AI never sends an unpolished message without your approval.

### Is this skill compatible with my existing AI agent framework?

Yes, the skill is built with Python 3.9+ and utilizes standard OAuth2 protocols, making it compatible with most major AI agent frameworks that support Python-based tool execution and local file storage.

### How does the skill keep track of which emails have already been processed?

The skill uses a custom `AI-Triaged` label and a 7-day lookback window to track progress. This prevents the agent from re-processing the same emails and ensures it only focuses on your most recent, unaddressed messages.

### What exactly is included in the purchase?

You receive the full Python source code for the skill, a detailed setup guide for Google Cloud, and a configuration template. The purchase includes the logic for classification, CSV logging, and the API integration glue code.

### Can this skill automatically unsubscribe me or delete my spam?

While the skill classifies newsletters to keep them out of your priority view, it does not have permission to delete or archive messages. It focuses strictly on triage, labeling, and drafting to keep your data safe.

---

Source: [Agensi](https://www.agensi.io), the marketplace of skills for AI agents. Any MCP-compatible agent (Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and more) connects at https://mcp.agensi.io/mcp/auth and signs in with an Agensi account; setup for every agent: https://www.agensi.io/docs/mcp-setup. Append .md to any skill, guide or docs address on agensi.io for its markdown version.
