← 返回
AI智能 Key 中文

Gmail-digester

Fetch recent unread Gmail (yesterday + today) and send a digest to the user.
获取近期未读Gmail(昨天和今天),并向用户发送摘要。
2p1c
AI智能 clawhub v1.1.4 1 版本 100000 Key: 需要
★ 0
Stars
📥 554
下载
💾 48
安装
1
版本
#latest

概述

Gmail Recent Digest

Requirements

  • Python 3 must be available in the container environment (python command).
  • IMAP credentials must be supplied via one of the following methods (env vars take precedence):

Option A — Environment variables (recommended)

VariableDescriptionDefault
---------
IMAP_HOSTIMAP server hostnameimap.gmail.com
IMAP_PORTIMAP server port993
IMAP_USERNAMEIMAP login username(required)
IMAP_PASSWORDIMAP login password / app-password(required)
IMAP_MAX_BODY_CHARSMax body characters per email2000

Option B — Config file

Set EMAIL_CONFIG_PATH to point to a JSON file, or place the file at ~/.config/gmail-summarize/config.json.

The file must contain only the fields below (no other sensitive data should be stored in this file):

{
  "email": {
    "imapHost": "imap.gmail.com",
    "imapPort": 993,
    "imapUsername": "your@gmail.com",
    "imapPassword": "your-app-password",
    "maxBodyChars": 2000
  }
}

Security notes

  • Preferred: supply credentials via environment variables (IMAP_HOST, IMAP_PORT, IMAP_USERNAME, IMAP_PASSWORD) so no file on disk is read at all.
  • When a config file is used, it should contain only the email fields listed above. The script reads only those four fields and nothing else from the file.
  • The only external connection made is to the IMAP server declared in IMAP_HOST / email.imapHost. No other endpoints are contacted.
  • Credentials are used solely to authenticate the IMAP session and are not logged or stored elsewhere by this skill.

When to use

  • User asks "check my Gmail", "summarize my emails", "邮件摘要"
  • Cron trigger message contains "gmail_digest"

Workflow

  1. Run the fetch script via exec tool:

python {workspace}/skills/gmail-summarize/scripts/fetch_unseen.py

(replace {workspace} with your actual workspace root)

  1. Parse the JSON array. Each item has: sender, subject, date, body
  2. For each email compose one line:

[date] sender | subject — one-sentence body summary

  1. Send the full digest via MessageTool in this format:

📬 邮件摘要 (N封,覆盖 MM/DD–MM/DD)

• [日期] 发件人 | 主题 — 一句话摘要

• [日期] 发件人 | 主题 — 一句话摘要

...

  1. If result is empty, send: 📭 近两日暂无未读邮件

Output Rules

  • Send the digest message ONLY. Do NOT add any extra comments, greetings, explanations, or follow-up questions before or after the digest.
  • Do NOT say things like "主人,以下是您的邮件摘要" or "如需了解详情请告知" etc.
  • The digest message itself is the complete and final response.
  • The one-sentence body summary MUST be translated into Chinese. Sender names and subjects should keep their original text as-is.

版本历史

共 1 个版本

  • v1.1.4 当前
    2026-03-30 12:22 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

ai-intelligence

ontology

oswalpalash
类型化知识图谱,用于结构化智能体记忆与可组合技能。支持创建/查询实体(人员、项目、任务、事件、文档)及关联...
★ 710 📥 243,653
ai-intelligence

Proactive Agent

halthelobster
将AI智能体从任务执行者升级为主动预判需求、持续优化的智能伙伴。集成WAL协议、工作缓冲区、自主定时任务及实战验证模式。Hal Stack核心组件 🦞
★ 834 📥 212,935
ai-intelligence

Self-Improving + Proactive Agent

ivangdavila
自我反思+自我批评+自我学习+自组织记忆。智能体评估自身工作、发现错误并持续改进。
★ 1,353 📥 317,923