Install: clawhub install email-triage-pro
Email triage and reply drafting. No OAuth or external dependencies — uses web_fetch or browser.
Detect from user's message language. Default: English.
Use the agent's built-in tools. Pick the best available method:
Method A: web_fetch (Gmail)
text
web_fetch https://mail.google.com/mail/u/0/#inbox
Note: Gmail requires login cookies. If web_fetch returns a login page, fall back to Method B.
Method B: Browser automation
text
browser open → https://mail.google.com/mail/u/0/#inbox
browser snapshot → extract email list
Method C: Any webmail Works with Outlook.com, Yahoo, etc. — navigate to inbox, snapshot, extract.
If no method works, tell the user:
text
Could not access email. Options:
1. Open your email in the browser and I can read it via screen snapshot
2. Copy-paste email content and I'll categorize + draft replies
3. Set up a Gmail API key for direct access
Read each email's subject, sender, and snippet. Categorize:
CategoryCriteriaAction🔴 UrgentTime-sensitive, from boss/client, "ASAP"Flag immediately🟡 ImportantWork-related, requires responseDraft reply🟢 NewsletterMass email, marketingArchive suggestion⚪ Spam/LowPromotions, automatedArchive suggestion
For urgent and important emails only. Rules:
Format:
text
📧 Reply to: {sender} - "{subject}"
---
{draft text}
---
[Reply] [Edit] [Skip]
text
Email Triage ({N} emails):
🔴 Urgent: {count}
🟡 Important: {count}
🟢 Newsletter: {count}
⚪ Spam/Low: {count}
Drafts: {count} ready for review
User saysAction"check email" / "sjekk mail"Fetch + categorize + summarize"check urgent"Filter urgent only"draft reply to [sender]"Draft for specific email"email summary"Summary of recent emails"follow up"Check for unanswered important emails
If the user pastes email content directly:
Install the full suite:
bash
clawhub install setup-doctor context-brief cross-check email-triage-pro