# Gmail Morning Triage and Daily Digest Script

> Your AI studies your real mail, drafts labeling rules for you to approve, then hands you one Google Apps Script that sorts Gmail and emails a morning digest.

Gmail Morning Triage and Daily Digest Script is a paid AI agent skill on Agensi by 許威廉 willians, in Workflow Automation. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: $5.9 (one-time purchase)
- Creator: [許威廉 willians](https://www.agensi.io/creators/willians888)
- Category: [Workflow Automation](https://www.agensi.io/skills/workflow-automation)
- Version: 1.0
- Last updated: 2026-11-28
- Security: scan passed (2026-11-28); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/gmail-morning-triage-and-daily-digest-script
- Tags: automation, google-apps-script, productivity, gmail, workflow-automation

## About this skill

Start each day with a sorted inbox and one summary email. Your AI first studies your real mail patterns with a read-only script, drafts labeling rules for you to approve, then hands you one complete Google Apps Script. It labels every thread by how it reached you and how much it matters, tracks to-dos that clear when you reply, catches signature requests and ads, and emails a digest every morning.

Also replies in Traditional Chinese.

**A rule-based Gmail triage that runs inside your own Google account every morning: labels, priorities, a self-clearing to-do list and an HTML digest. No third-party server, and no AI reading your mail at runtime.**

### What it does
- **Two separate axes per thread.** *Route* shows how it reached you: Direct, Cc, Group or Auto. *Priority* shows how much it matters, from P0 (signature or must-read report) to P6 (marketing). A vendor's newsletter and a vendor's outage alert get very different labels.
- **Special types handled first**: signature requests, a recurring report you name, VIP senders, calendar invites and ads. Important senders are identified before ad detection, so they never land in Ads.
- **An Action label that maintains itself.** It is added for what needs you and removed when your reply is the last message. Signature threads clear only when the matching "Completed" notice arrives.
- **Ads in three layers**: your list, senders learned from your own Ads label, and auto-detection from unsubscribe headers.
- **A morning digest email**: an Action table sorted by priority and age, then today's new mail grouped into sections, with counts in the subject line.
- **Safe by design**: a dry-run mode, processing only recent untriaged inbox mail, never touching your existing labels, and never triaging its own digest.

### Who it's for
Anyone who gets enough work email that important messages get buried: account managers, founders, consultants, team leads. Works for vendor, client or internal mail, and for personal inboxes with VIPs such as family, bank or school.

### How it works
1. **Read-only analysis.** You run the included analysis script. It writes a Google Sheet of sender domains, unsubscribe ratios, who you reply to, subject keywords, your existing labels and suggested rules, and changes nothing. With a Gmail connector your AI can read the patterns itself; you can also just paste 50–100 "From | Subject" lines.
2. **Rule draft.** Your AI turns the evidence into a rule table, and you correct and approve it.
3. **One complete script.** The tested template is customized through its settings block only and syntax-checked before you get it.
4. **Go live.** Paste, dry run, first run, color the labels, backfill old mail, install the daily trigger. Step-by-step instructions and a troubleshooting table are included.

### What you provide / what you get
**You provide:** your account type, what the mailbox is for, your most important senders, and the analysis results or a sample of sender and subject lines.
**You get:** the analysis script, an approved rule table, a customized `MorningInboxTriage.gs`, and go-live steps.

### Example requests
- "Set up morning triage for my work Gmail. Our key suppliers are A and B, and client C must never be missed."
- "Sort my personal Gmail: bank and school mail first, newsletters out of the way, a summary at 7am."

### Requirements
A Google account that can use Apps Script (Workspace or personal Gmail). Optional: enable the Gmail API advanced service in the script for label colors and colored stars. Workspace admins can block it, and the rest still works.

### Limits
Rule-based (headers and keyword patterns), not AI understanding, so unusual subjects can be misjudged and you will tune the rules over time. Apps Script runtime and Gmail quotas apply, so large backlogs are processed in batches. Colored stars via the API are not officially documented and fall back to a normal star. Gmail does not let scripts reorder how labels are displayed. Use it only on mailboxes you own or administer.

## Requires

- Google account (Gmail + Apps Script)
- Optional: Node.js (syntax check)

## Known limitations

Rule-based regex logic only. Apps Script quotas apply (approx. 6 mins/run). Requires manual enabling of Gmail Advanced Service. Workspace admins may restrict script execution.

## 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 Morning Triage and Daily Digest Script skill from Agensi" and describe your task.
3. Buy it on the listing or let your agent ask you first; your agent then loads it from Agensi when it needs it. Every paid skill has a money-back guarantee: https://www.agensi.io/docs/money-back-guarantee

## Frequently asked questions

### How does this triage system differ from using an AI-powered email assistant?

Unlike typical AI tools, this is a rule-based Google Apps Script that runs entirely within your Google account. It uses specific email headers and regex to triage mail without sending your data to third-party AI servers or incurring recurring API costs.

### What exactly is included in the delivery of this skill?

The purchase includes a custom-generated `.gs` file tailored to your inbox patterns, a setup guide for the Gmail API, and a 90-day historical analysis tool to help you define your initial priority rules.

### Are there any technical limitations or Google account quotas I should be aware of?

Yes, because the script runs via Google Apps Script, it respects all standard Gmail limits, such as the 6-minute execution window. It is designed to process batches efficiently to stay within these daily quotas.

### Do I need programming knowledge to install and run the triage script?

You will need to paste the provided code into the Google Apps Script editor and enable the Gmail API in your Google Cloud Project. The script includes a built-in setup function to automate the creation of labels and triggers.

### How does the 'Smart Action Tracking' know when to clear a task?

The 'Action' tracking feature monitors your outgoing mail; once the script detects a sent reply on a flagged thread, it automatically removes the 'Action' label to keep your to-do list current.

---

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.
