- Home
- Skills
- Workflow Automation
- Gmail Morning Triage and Daily Digest Script
Works with the AI Agents you already use
Gmail Morning Triage and Daily Digest Script
by 許威廉 willians
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.
$5.90
Gmail Morning Triage and Daily Digest Script
Example session with this skill installed
I get too many emails from Jira, GitHub, and Docusign. I want a script to label them, prioritize Docusign as urgent, and give me a morning summary in Chinese. I use a personal Gmail account.
- Read your context and instructions
- Compiled the gmail morning triage
I will help you build a triage system for your personal Gmail account. Since you mentioned specific tools (Jira, GitHub, Docusign) and requested a Chinese summary, we will proceed with an analysis of your current mail patterns first.
I have selected Option A (Analysis Script) to ensure the rules correctly identify your notification headers.
Inbox Analysis Step
Please follow these steps
- Go to script.google.com and create a new project.
- Paste the
InboxAnalysis.gscode I will provide below. - Click Run for the
analyzeInboxfunction and authorize the permissions. - Open the Google Sheet URL generated in the execution log.
- Paste the content of the Sender domains and Suggested rules tabs back here.
/**
* InboxAnalysis.gs
* Read-only scan of the last 90 days to identify triage patterns.
*/
function analyzeInbox() {
const threads = GmailApp.search('in:inbox newer_than:90d', 0, 500);
const data = threads.map(t => {
const msg = t.getMessages()[0];
return [msg.getFrom(), msg.getSubject(), msg.getHeader('List-Id') || 'None'];
});
// ... (Full analysis logic omitted for brevity in this sample, provided in full during Stage 1)
Logger.log('Analysis complete. Please share the domain ratios and subject patterns.');
}
Next steps
- Run the analysis script provided above.
- Confirm if you want "Action" labels applied to Jira tickets or just GitHub PRs.
- Confirm your preferred digest time (default is 07:00).
Connects securely to your tools. The creator never sees your data.
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
- 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.
- Rule draft. Your AI turns the evidence into a rule table, and you correct and approve it.
- One complete script. The tested template is customized through its settings block only and syntax-checked before you get it.
- 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.
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
- 1
Connect your agent to the Agensi MCP
Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup
- 2
Sign in to Agensi
Your agent shows a sign-in link. Sign in and click Allow.
- 3
Ask for what you need
Your agent loads this skill and uses it on your task. It always asks before buying a skill.
Reviews
No reviews yet
Be one of the first to try it. Every listed skill goes through the trust checks below.
Security scanned
Checked by our 8-point scan before listing
Fresh listing
Recently published to Agensi
Money-back guarantee
Doesn't do what its page promises? You get your money back.
Trust & safety
Security scan
Security scan passed 7 days ago
- Accounts
GmailGoogle account (Gmail + Apps Script)
- Optional
Node.js (syntax check)
Permissions
Allowed Hosts
The scripts run inside the buyer's own Google account in Google Apps Script, with only the Gmail scopes the buyer authorizes there; nothing is sent to third parties. The first script is read-only (inbox analysis). The AI writes one customized .gs file for the buyer to paste in, and may run `node --check` on a temporary copy to catch syntax errors. Script Properties (PropertiesService) hold the buyer's own settings; no API keys are needed.
What's inside
Frequently Asked Questions
New in Workflow Automation
Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for Workflow Automation.