- name
- email-automation
- description
- Automate email processing: smart triage, auto-categorization, draft replies, and inbox zero. Works with Gmail, Outlook, and IMAP.
- author
- fly3094
- version
- 1.2.0
- tags
- [email, automation, gmail, outlook, inbox, productivity, ai, templates, batch, tracking]
- support
- paypal
- 492227637@qq.com
- 492227637@qq.com
- metadata
- clawdbot
- emoji
- 📧
- requires
- bins
- config
- env
- EMAIL_PROVIDER
- description
- Email provider (gmail|outlook|imap)
- default
- gmail
- required
- false
- EMAIL_ADDRESS
- description
- Your email address
- required
- true
- GMAIL_CREDENTIALS_FILE
- description
- Path to Gmail API credentials JSON
- required
- false
- OUTLOOK_ACCESS_TOKEN
- description
- Outlook/Microsoft Graph access token
- required
- false
- IMAP_SERVER
- description
- IMAP server address
- required
- false
- IMAP_USERNAME
- description
- IMAP username
- required
- false
- IMAP_PASSWORD
- description
- IMAP password or app password
- required
- false
- AUTO_ARCHIVE
- description
- Auto-archive processed emails
- default
- true
- required
- false
- CATEGORIES
- description
- Custom categories (comma-separated)
- default
- urgent,important,newsletters,notifications,receipts
- required
- false
Email Automation 📧
Automate your email inbox with AI-powered triage, categorization, and draft replies. Achieve inbox zero effortlessly.
What It Does
- 📥 Smart Triage: AI analyzes and prioritizes incoming emails
- 🏷️ Auto-Categorization: Sort emails into custom categories
- ✍️ Draft Replies: AI generates context-aware reply drafts
- 🗑️ Auto-Archive: Clean up newsletters, notifications, receipts
- ⚠️ Urgent Alerts: Get notified for important emails
- 📊 Inbox Analytics: Track email patterns and time saved
Installation
clawhub install email-automationCommands
Process Inbox
Process my inbox and categorize emailsGenerate Reply Drafts
Draft replies for unread important emailsClean Inbox
Archive newsletters and notifications older than 7 daysInbox Summary
Show me my inbox summary for todayUrgent Emails Only
Show only urgent emails from todaySetup Wizard
Help me set up email automationConfiguration
Environment Variables
# Email provider
export EMAIL_PROVIDER="gmail" # gmail|outlook|imap
# Your email address
export EMAIL_ADDRESS="your@email.com"
# Gmail API (if using Gmail)
export GMAIL_CREDENTIALS_FILE="/path/to/credentials.json"
# Outlook API (if using Outlook)
export OUTLOOK_ACCESS_TOKEN="your_access_token"
# IMAP (if using other providers)
export IMAP_SERVER="imap.example.com"
export IMAP_USERNAME="your_username"
export IMAP_PASSWORD="your_app_password"
# Automation settings
export AUTO_ARCHIVE="true"
export CATEGORIES="urgent,important,newsletters,notifications,receipts"Gmail Setup (Recommended)
- Visit https://console.cloud.google.com
- Create new project
- Enable Gmail API
- Create OAuth credentials
- Download credentials.json
- Place in secure location
- Set
GMAIL_CREDENTIALS_FILEpath
Outlook Setup
- Visit https://portal.azure.com
- Register app in Azure AD
- Add Microsoft Graph permissions
- Generate access token
- Set
OUTLOOK_ACCESS_TOKEN
Output Examples
Inbox Summary
📧 Inbox Summary - March 7, 2026
Total emails: 47
• Urgent: 3
• Important: 8
• Newsletters: 15
• Notifications: 12
• Receipts: 5
• Unread: 11
Top senders:
1. Amazon (5 emails)
2. GitHub (4 emails)
3. LinkedIn (3 emails)
Time saved: ~2 hoursAuto-Categorization
🏷️ Categorized 47 emails:
[Urgent] (3)
• Boss: "Meeting rescheduled to 3pm"
• Client: "Contract needs review ASAP"
• Bank: "Suspicious activity alert"
[Important] (8)
• Team: "Project update"
• Newsletter: "Industry insights"
...
[Newsletters] (15)
• TechCrunch Daily
• Hacker News Digest
...
[Notifications] (12)
• GitHub notifications
• Slack mentions
...
[Receipts] (5)
• Amazon order confirmation
• Uber receipt
...Draft Replies
✍️ Generated 5 reply drafts:
1. To: Boss
Subject: Re: Meeting rescheduled
Draft: "Thanks for the update. I'll be there at 3pm..."
2. To: Client
Subject: Re: Contract review
Draft: "I've reviewed the contract. Here are my thoughts..."
Drafts saved to drafts folder for your review.Automation Rules
Default Rules
| Condition | Action |
|---|---|
| From boss/client | Mark urgent |
| Contains "ASAP", "urgent" | Mark urgent |
| Newsletter sender | Auto-archive after 7 days |
| Receipt/invoice | Label & archive |
| Notification | Auto-archive after 3 days |
| Unsubscribe header | Suggest unsubscribe |
Custom Rules
Create rules.yml:
rules:
- name: VIP senders
from:
- boss@company.com
- important@client.com
action: mark_urgent
- name: Shopping receipts
from:
- amazon.com
- ebay.com
action: label_receipts
- name: Social notifications
subject_contains:
- "mentioned you"
- "new follower"
action: archiveIntegration with Other Skills
rss-to-social
Email notifications from rss-to-social
→ Auto-categorize as "Social Media Updates"
→ Archive after readingsocial-insights
Weekly analytics report
→ Email delivery
→ Auto-generate summaryseo-content-pro
Content drafts
→ Send via email for review
→ Track feedbackUse Cases
Inbox Zero
- Process 100+ emails in minutes
- Auto-archive low-priority
- Focus on what matters
Business Email
- Prioritize client emails
- Draft professional replies
- Never miss urgent messages
Personal Email
- Filter newsletters
- Organize receipts
- Clean inbox automatically
Pricing Integration
This skill powers LobsterLabs email services:
- Setup & Configuration: $299 one-time
- Monthly Management: $199/month
- Business Plan: $499/month (multiple accounts)
Contact: PayPal 492227637@qq.com
Tips for Best Results
- Start with Gmail - Best API support
- Use App Passwords - More secure than regular passwords
- Review First Week - Train AI on your preferences
- Customize Categories - Match your workflow
- Set Up Filters - Combine with email provider filters
Troubleshooting
Authentication Failed
- Verify credentials are correct
- Check API permissions
- Regenerate tokens if expired
Emails Not Categorizing
- Ensure categories are configured
- Check AI model access
- Review categorization rules
Drafts Not Generated
- Verify unread emails exist
- Check AI model availability
- Review draft folder permissions
Changelog
1.0.0 (2026-03-07)
- Initial release
- Gmail/Outlook/IMAP support
- AI-powered categorization
- Auto-reply drafts
- Smart archiving
- Inbox analytics
💖 支持作者
如果你觉得这个技能有用,请考虑打赏支持:
- PayPal: 492227637@qq.com
- 邮箱: 492227637@qq.com
你的支持是我持续改进的动力!