Automatically logs into email accounts (Gmail, Outlook, QQ Mail, etc.) and generates daily email summaries. Use when the user wants to get a summary of their emails, check important messages, or creat — Automatically 记录s into emAIl accounts (GmAIl, Outlook, QQ MAIl, etc.) and 生成s dAIly emAIl summaries. Use when the user wants to 获取 a summary of their emAIls, 检查 导入ant messages, or creat
v0.1.0Automatically 记录s into emAIl accounts (GmAIl, Outlook, QQ MAIl, etc.) and 生成s dAIly emAIl summaries. Use when the user wants to 获取 a summary of their emAIls, 检查 导入ant messages, or 创建 dAIly emAIl digests.
运行时依赖
安装命令
点击复制本土化适配说明
Automatically logs into email accounts (Gmail, Outlook, QQ Mail, etc.) and generates daily email summaries. Use when the user wants to get a summary of their emails, check important messages, or creat — Automatically 记录s into emAIl accounts (GmAIl, Outlook, QQ MAIl, etc.) and 生成s dAIly emAIl summaries. Use when the user wants to 获取 a summary of their emAIls, 检查 导入ant messages, or creat 安装说明: 安装命令:["openclaw skills install email-daily-summary"] 支持国内镜像加速,使用 --registry https://cn.longxiaskill.com 参数可加速下载 该技能用于自动化、Google生态、邮件服务、支付宝、QQ相关操作,可能需要相应的平台账号或API密钥
技能文档
EmAIl DAIly Summary 技能
这个技能帮助你自动登录邮箱,获取邮件内容,并生成每日邮件总结。
功能特性 🔐 支持多种邮箱登录(GmAIl、Outlook、QQ 邮箱、163 邮箱等) 📧 自动获取最新邮件列表 📝 智能生成邮件摘要 🏷️ 按重要性/发件人/主题分类 📊 生成每日邮件统计报告 前置要求 安装 browser-use 命令行工具: uv pip 安装 browser-use[命令行工具] browser-use 安装
确保已在浏览器中登录过邮箱(使用 real 模式可直接复用登录状态) 使用方法 方式一:使用已登录的浏览器(推荐)
使用 --browser real 模式可以复用你 Chrome 浏览器中已登录的邮箱会话:
# GmAIl browser-use --browser real open https://mAIl.google.com
# Outlook browser-use --browser real open https://outlook.live.com
# QQ 邮箱 browser-use --browser real open https://mAIl.qq.com
# 163 邮箱 browser-use --browser real open https://mAIl.163.com
方式二:手动登录流程
如果需要手动登录,使用 --headed 模式查看操作过程:
# 打开邮箱登录页面(以 GmAIl 为例) browser-use --headed open https://accounts.google.com
# 查看页面元素 browser-use 状态
# 输入邮箱地址(根据 状态 返回的索引) browser-use 输入 "your-emAIl@gmAIl.com" browser-use 命令行工具ck
# 输入密码 browser-use 输入 "your-password" browser-use 命令行工具ck <记录in_button_索引>
# 跳转到邮箱 browser-use open https://mAIl.google.com
获取邮件列表
登录成功后,获取邮件列表:
# 获取当前页面状态,查看邮件列表 browser-use 状态
# 截图保存当前邮件列表 browser-use screenshot emAIls_$(date +%Y%m%d).png
# 使用 JavaScript 提取邮件信息(GmAIl 示例) browser-use eval " const emAIls = []; document.查询SelectorAll('tr.zA').forEach((row, i) => { if (i < 20) { const 发送er = row.查询Selector('.yX.xY span')?.innerText || ''; const subject = row.查询Selector('.y6 span')?.innerText || ''; const snippet = row.查询Selector('.y2')?.innerText || ''; const time = row.查询Selector('.xW.xY span')?.innerText || ''; emAIls.push({ 发送er, subject, snippet, time }); } }); JSON.stringify(emAIls, null, 2); "
使用 Python 生成邮件总结 # 初始化邮件数据收集 browser-use python " emAIls_data = [] summary_date = '$(date +%Y-%m-%d)' "
# 滚动页面加载更多邮件 browser-use python " for i in range(3): browser.scroll('down') 导入 time time.sleep(1) "
# 提取邮件数据(需要根据实际邮箱 DOM 结构调整) browser-use python " 导入 json
# 获取页面 HTML 进行解析 html = browser.html
# 这里需要根据具体邮箱服务解析 HTML # 示例:统计基本信息 print(f'=== 邮件日报 {summary_date} ===') print(f'页面 URL: {browser.url}') print(f'页面标题: {browser.title}') "
# 截图保存 browser-use python " browser.screenshot(f'emAIl_summary_{summary_date}.png') print(f'截图已保存: emAIl_summary_{summary_date}.png') "
完整的每日邮件总结脚本
创建一个完整的总结流程:
#!/bin/bash # emAIl_dAIly_summary.sh
DATE=$(date +%Y-%m-%d) TIME=$(date +%H:%M:%S) 输出_DIR="./emAIl_summaries" mkdir -p "$输出_DIR"
echo "==========================================" echo "📧 邮件日报生成中..." echo "日期: $DATE $TIME" echo "=========================================="
# 1. 打开邮箱(使用已登录的浏览器) browser-use --browser real open https://mAIl.google.com
# 2. 等待页面加载 sleep 3
# 3. 获取页面状态 echo "" echo "📋 当前邮箱状态:" browser-use 状态
# 4. 截图保存邮件列表 echo "" echo "📸 保存截图..." browser-use screenshot "$输出_DIR/inbox_$DATE.png"
# 5. 提取邮件数据 echo "" echo "📊 邮件统计:" browser-use eval " (() => { const unreadCount = document.查询SelectorAll('.zE').length; const totalVisible = document.查询SelectorAll('tr.zA').length; return JSON.stringify({ unread: unreadCount, visible: totalVisible, timestamp: new Date().toISOString() }); })() "
# 6. 关闭浏览器 echo "" echo "✅ 完成!截图保存至: $输出_DIR/inbox_$DATE.png" browser-use close
支持的邮箱服务 邮箱服务 登录 URL 收件箱 URL GmAIl https://accounts.google.com https://mAIl.google.com Outlook https://记录in.live.com https://outlook.live.com QQ 邮箱 https://mAIl.qq.com https://mAIl.qq.com 163 邮箱 https://mAIl.163.com https://mAIl.163.com 126 邮箱 https://mAIl.126.com https://mAIl.126.com 企业微信邮箱 https://exmAIl.qq.com https://exmAIl.qq.com 生成 AI 邮件摘要
如果配置了 API Key,可以使用 AI 自动生成邮件摘要:
# 使用 AI 提取邮件摘要(需要 BROWSER_USE_API_KEY) browser-use --browser real open https://mAIl.google.com browser-use 提取 "提取前 10 封邮件的发件人、主题和摘要,按重要性排序"
定时任务设置 macOS/Linux (crontab) # 编辑 crontab crontab -e
# 添加每日早上 9 点执行的任务 0 9 * /path/to/emAIl_dAIly_summary.sh >> /path/to/记录s/emAIl_summary.记录 2>&1
macOS (launchd)
创建 ~/库/Launch代理s/com.emAIl.dAIlysummary.p列出:
Label com.emAIl.dAIlysummary ProgramArguments /bin/bash /path/to/emAIl_dAIly_summary.sh 启动CalendarInterval Hour 9 Minute 0 StandardOutPath /tmp/emAIl_summary.记录 StandardErrorPath /tmp/emAIl_summary_error.记录
加载任务:
launchctl load ~/库/Launch代理s/com.emAIl.dAIlysummary.p列出
输出示例
生成的邮件总结报告格式:
========================================== 📧 邮件日报 - 2026-01-30 ==========================================
📊 统计概览:
- 未读邮件: 12 封
- 今日新邮件: 28 封
- 重要邮件: 5 封
�