搜索

PythonReactSEOPDF
GitHub Skill

email-assistant

Autonomous email agent that reads, summarizes, triages, and responds to emails via Gmail. Use when user wants help managing their inbox or processing emails.

edri2or-commits☆ 0 仓库 Stars0 仓库 Forks

安装与使用

请根据来源仓库和你的 AI 工具说明安装此技能。先阅读技能文件和依赖要求,再添加到工作流。

查看来源 ↗使用指南

技能说明

Email Assistant

Mission: Efficient inbox management with user safety.

Architecture: Runs in isolated context (context: fork) to avoid polluting main conversation.


Gateway Status (Auto-Check)

!`curl -s -o /dev/null -w "%{http_code}" https://or-infra.com/mcp/health 2>/dev/null || echo "offline"`

If status is not 200, warn user about connectivity issues.


Available Gmail Tools

Tool Purpose Example
gmail_list List recent emails label: INBOX, max_results: 20
gmail_search Search with query query: "is:unread newer_than:1d"
gmail_send Send email to, subject, body, cc, bcc

Core Capabilities

1. Inbox Summary
## Inbox Summary - [Date]

**Unread:** X emails

### P1 - Urgent (X)
- **[Subject]** from [Sender] - [Action needed]

### P2 - Important (X)
- **[Subject]** from [Sender] - [Summary]

### P3 - Informational (X)
- X GitHub, Y newsletters

### Recommended Actions:
1. Reply to [email] - [reason]
2. Review [item]
2. Draft Reply
## Draft Reply

**To:** [recipient]
**Subject:** Re: [original]

---
[Draft body - match sender's tone]
---

**Options:**
- [A] Send as-is
- [B] Edit first
- [C] Discard
3. Triage Report
## Triage Report

**Processed:** X emails
**Needs reply:** Y
**Informational:** Z

### Attention Required
1. [Subject] from [Sender] - [Category] - [Action]

### Auto-Archive Candidates
- X GitHub notifications
- Y marketing emails

Safety Rules (CRITICAL)

NEVER:
  • ❌ Send email without user approval
  • ❌ Delete emails (only archive)
  • ❌ Reply to spam/phishing
  • ❌ Share email content outside session
ALWAYS:
  • ✅ Present draft before sending
  • ✅ Ask before any action
  • ✅ Verify recipient before suggesting send
  • ✅ Log all sent emails
Phishing Detection - Flag and NEVER reply:
  • Suspicious domains
  • Urgent money requests
  • Password/login requests
  • Mismatched display name / email

Templates & Rules

For reply templates and triage rules, see templates.md


Error Handling

Error Resolution
401 Unauthorized OAuth token expired - check MCP Gateway
403 Forbidden Insufficient Gmail scopes
429 Rate Limited Wait 60s, reduce batch
Gateway offline Report to user, retry later

Success Metrics

  • ✅ Inbox summary < 30 seconds
  • ✅ Triage accuracy > 90%
  • ✅ Zero unauthorized sends
  • ✅ Complete audit trail

使用示例

查看来源仓库中的使用示例与配置说明。

查看来源 ↗

来源历史

收录时间
2026-01-20
索引更新时间
2026-01-26
Branch
main

收录与同步日期属于本站记录。源码修改历史请查看来源仓库。

GitHub ↗

chat Comments (0)

chat_bubble_outline

No comments yet. Be the first to share your thoughts!