What this agent does
Most inboxes aren't a prioritization problem, they're a classification problem — the important message from a client is buried under eleven newsletters and a calendar notification. This agent reads every new email, classifies it, and takes the boring, safe action so you only see what actually needs your judgment.
inbox-classifier— labels every incoming email into one of your configured buckets (e.g.client,internal,newsletter,action-needed,spam-adjacent), using sender history, subject patterns, and message content.reply-drafter— for messages classified as needing a reply, drafts a response in your voice (using a short style sample you provide) and saves it as a Gmail/Outlook draft — it never sends automatically.inbox-labeler— applies the classification as a label/folder move so your inbox view is pre-sorted the moment you open it.
Every run appends a row to a triage log (sender, subject, classification, whether a draft was created) so you can audit what the agent decided and why.
Requirements
- Gmail or Outlook/Microsoft 365 account with API access enabled (OAuth app registration — a one-time setup, documented in
installation-prompt.md). - Works on OpenClaw (Gmail/Outlook plugin + scheduled trigger) and on Claude AI (Claude Code or claude.ai with Gmail connector enabled).
- No paid classification API required — this runs entirely on your existing LLM access plus the mail provider's own API.
Setup
- Unzip the package into your workspace, keeping the folder structure intact.
- Authorize the Gmail/Outlook OAuth app using the steps in
installation-prompt.md. - Edit
config/triage-rules.mdwith your classification buckets and a short writing-voice sample (3-5 sentences of your own past emails works well). - Run a starter prompt from
starter-prompts.mdagainst your last 20 unread emails to sanity-check the classifications before automating. - Schedule
automation-prompt.mdto run every 15-30 minutes during work hours.
What's included
Skills/inbox-classifier/SKILL.md,Skills/reply-drafter/SKILL.md,Skills/inbox-labeler/SKILL.mdconfig/triage-rules.md— editable classification buckets and voice sampleconfig/triage-log.md— append-only classification loginstallation-prompt.md— Gmail/Outlook OAuth setup walkthroughautomation-prompt.md— recurring schedule instructionsstarter-prompts.md— example prompts for a manual dry-run passassets/— pipeline diagram