Skills gmail-ai
AI-enhanced Gmail — smart email triage, priority scoring, AI-generated replies, thread summarization, and automated categorization. IMAP/SMTP with OpenRouter-powered intelligence. Use for inbox zero, email management, smart replies, and email automation.
git clone https://github.com/openclaw/skills
T=$(mktemp -d) && git clone --depth=1 https://github.com/openclaw/skills "$T" && mkdir -p ~/.claude/skills && cp -r "$T/skills/aiwithabidi/gmail-ai" ~/.claude/skills/openclaw-skills-gmail-ai && rm -rf "$T"
T=$(mktemp -d) && git clone --depth=1 https://github.com/openclaw/skills "$T" && mkdir -p ~/.openclaw/skills && cp -r "$T/skills/aiwithabidi/gmail-ai" ~/.openclaw/skills/openclaw-skills-gmail-ai && rm -rf "$T"
skills/aiwithabidi/gmail-ai/SKILL.md📧 Gmail AI
AI-enhanced Gmail for OpenClaw agents. Fork of gmail v1.0.6 with AI triage, priority scoring, smart replies, and email summarization.
What's New vs gmail
- AI triage — auto-categorize emails (urgent/actionable/FYI/spam)
- Priority scoring — 0-100 score based on sender, subject, content
- Smart replies — context-aware reply generation in multiple tones
- Email summarization — TL;DR for long threads
- Send email — compose and send via SMTP
Requirements
| Variable | Required | Description |
|---|---|---|
| ✅ | Your Gmail address |
| ✅ | Gmail App Password (create one) |
| Optional | For AI triage, replies, and summaries |
Quick Start
# Fetch recent unread emails python3 {baseDir}/scripts/gmail_ai.py inbox --unread --limit 10 # Fetch by label python3 {baseDir}/scripts/gmail_ai.py inbox --label INBOX --limit 20 # Fetch from specific sender python3 {baseDir}/scripts/gmail_ai.py inbox --from "boss@company.com" # AI triage — categorize emails python3 {baseDir}/scripts/gmail_ai.py triage --limit 20 # Priority scoring python3 {baseDir}/scripts/gmail_ai.py priority --limit 20 # Summarize an email thread python3 {baseDir}/scripts/gmail_ai.py summarize <message_id> # Generate smart reply python3 {baseDir}/scripts/gmail_ai.py reply <message_id> --tone professional python3 {baseDir}/scripts/gmail_ai.py reply <message_id> --tone friendly python3 {baseDir}/scripts/gmail_ai.py reply <message_id> --tone brief # Send email python3 {baseDir}/scripts/gmail_ai.py send --to "recipient@example.com" --subject "Hello" --body "Message body" # Send with CC/BCC python3 {baseDir}/scripts/gmail_ai.py send --to "a@b.com" --cc "c@d.com" --subject "Hello" --body "Message"
Commands
inbox
inboxFetch emails from Gmail via IMAP.
— only unread messages--unread
— Gmail label/folder (default: INBOX)--label LABEL
— filter by sender--from ADDRESS
— max results (default: 10)--limit N
— emails since date--since YYYY-MM-DD
triage
triageAI-powered email categorization (requires
OPENROUTER_API_KEY).
- Categories: 🔴 Urgent, 🟡 Actionable, 🔵 FYI, ⚪ Spam/Noise
— number of emails to triage--limit N
priority
priorityScore emails 0-100 based on sender importance, subject urgency, and content.
— number of emails to score--limit N- Factors: known sender, urgency keywords, mentions of you, deadlines
summarize <message_id>
summarize <message_id>Generate a TL;DR summary of an email or thread.
reply <message_id>
reply <message_id>Generate a context-aware reply draft.
— reply style--tone professional|friendly|brief|formal
— additional context for the reply--context TEXT
send
sendSend email via SMTP.
— recipient (required)--to ADDRESS
— subject line (required)--subject TEXT
— email body (required)--body TEXT
— CC recipient--cc ADDRESS
— BCC recipient--bcc ADDRESS
Security Notes
- Uses Gmail App Passwords (not OAuth) — simpler setup, works with 2FA
- App Password is NOT your Google password
- Create one at: Google Account → Security → 2-Step Verification → App Passwords
- IMAP must be enabled in Gmail settings
Credits
Built by M. Abidi | agxntsix.ai YouTube | GitHub Part of the AgxntSix Skill Suite for OpenClaw agents.
📅 Need help setting up OpenClaw for your business? Book a free consultation