email-automation
v1.0.2Automate email processing: smart triage, auto-categorization, draft replies, and inbox zero. Works with Gmail, Outlook, and IMAP.
Installation
Please help me install the skill `email-automation` from SkillHub official store.
npx skills add fly3094/email-automation
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-automation
Commands
Process Inbox
Process my inbox and categorize emails
Generate Reply Drafts
Draft replies for unread important emails
Clean Inbox
Archive newsletters and notifications older than 7 days
Inbox Summary
Show me my inbox summary for today
Urgent Emails Only
Show only urgent emails from today
Setup Wizard
Help me set up email automation
Configuration
Environment Variables
# Email provider
export EMAIL_PROVIDER="gmail" # gmail|outlook|imap
# Your email address
export EMAIL_ADDRESS="[email protected]"
# 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 hours
Auto-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:
- [email protected]
- [email protected]
action: mark_urgent
- name: Shopping receipts
from:
- amazon.com
- ebay.com
action: label_receipts
- name: Social notifications
subject_contains:
- "mentioned you"
- "new follower"
action: archive
Integration with Other Skills
rss-to-social
Email notifications from rss-to-social
→ Auto-categorize as "Social Media Updates"
→ Archive after reading
social-insights
Weekly analytics report
→ Email delivery
→ Auto-generate summary
seo-content-pro
Content drafts
→ Send via email for review
→ Track feedback
Use 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 [email protected]
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: [email protected]
- 微信支付: 请扫码打赏
- 支付宝: 请扫码打赏
- 邮箱: [email protected]
你的支持是我持续改进的动力!
!微信支付收款码 !支付宝收款码