Gmail Ai
/install gmail-ai
📧 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 |
|---|---|---|
GMAIL_ADDRESS |
✅ | Your Gmail address |
GMAIL_APP_PASSWORD |
✅ | Gmail App Password (create one) |
OPENROUTER_API_KEY |
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 "[email protected]"
# 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 \x3Cmessage_id>
# Generate smart reply
python3 {baseDir}/scripts/gmail_ai.py reply \x3Cmessage_id> --tone professional
python3 {baseDir}/scripts/gmail_ai.py reply \x3Cmessage_id> --tone friendly
python3 {baseDir}/scripts/gmail_ai.py reply \x3Cmessage_id> --tone brief
# Send email
python3 {baseDir}/scripts/gmail_ai.py send --to "[email protected]" --subject "Hello" --body "Message body"
# Send with CC/BCC
python3 {baseDir}/scripts/gmail_ai.py send --to "[email protected]" --cc "[email protected]" --subject "Hello" --body "Message"
Commands
inbox
Fetch emails from Gmail via IMAP.
--unread— only unread messages--label LABEL— Gmail label/folder (default: INBOX)--from ADDRESS— filter by sender--limit N— max results (default: 10)--since YYYY-MM-DD— emails since date
triage
AI-powered email categorization (requires OPENROUTER_API_KEY).
- Categories: 🔴 Urgent, 🟡 Actionable, 🔵 FYI, ⚪ Spam/Noise
--limit N— number of emails to triage
priority
Score emails 0-100 based on sender importance, subject urgency, and content.
--limit N— number of emails to score- Factors: known sender, urgency keywords, mentions of you, deadlines
summarize \x3Cmessage_id>
Generate a TL;DR summary of an email or thread.
reply \x3Cmessage_id>
Generate a context-aware reply draft.
--tone professional|friendly|brief|formal— reply style--context TEXT— additional context for the reply
send
Send email via SMTP.
--to ADDRESS— recipient (required)--subject TEXT— subject line (required)--body TEXT— email body (required)--cc ADDRESS— CC recipient--bcc ADDRESS— BCC recipient
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
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install gmail-ai - 安装完成后,直接呼叫该 Skill 的名称或使用
/gmail-ai触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
Gmail Ai 是什么?
AI-enhanced Gmail — smart email triage, priority scoring, AI-generated replies, thread summarization, and automated categorization. IMAP/SMTP with OpenRouter... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 411 次。
如何安装 Gmail Ai?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install gmail-ai」即可一键安装,无需额外配置。
Gmail Ai 是免费的吗?
是的,Gmail Ai 完全免费(开源免费),可自由下载、安装和使用。
Gmail Ai 支持哪些平台?
Gmail Ai 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 Gmail Ai?
由 aiwithabidi(@aiwithabidi)开发并维护,当前版本 v1.0.0。