360 Secure SkillHub
360 安全技能中心

Gmail Daily Briefing

该 Skill 通过 Python 脚本调用 Gmail 与 Google Calendar API:读取最近 24 小时邮件、按重要性排序、逐封生成要点摘要,并在识别到会议或面试类邮件且日历中尚不存在时自动创建 Google 日历日程。首次使用需配置 Google OAuth 凭据并完成授权。

russidan-nadee
russidan-nadee
热度 51.58
最近更新 2026-05-11 17:36:30
分类:协作依赖:代码执行 / 读写文件 / 第三方 API / 内部调用大模型应用场景:摘要总结 / 日程安排 / 工作流

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add gmail-daily-briefing
Metadata
name
gmail-daily-briefing
description
Fetch Gmail emails from the last 24h, rank by importance, summarize into bullet points, and auto-create Google Calendar events for detected meetings.
metadata
{"openclaw":{"requires":{"bins":["python"],"files":["token.json"]}}}

Email & Calendar Assistant Skill

Description

This skill reads Gmail emails, ranks them by importance, summarizes each email into bullet points, and creates Google Calendar events if an email contains a meeting or interview that is not already on the calendar.

Capabilities

  • Read emails (read-only)
  • Rank emails by importance
  • Summarize emails into bullet points
  • Detect meeting/interview emails
  • Create Google Calendar events (only when not already added)

Installation

Via ClawHub (recommended):

clawhub install gmail-daily-briefing

Manual:

git clone https://github.com/Russidan-Nadee/gmail-daily-briefing.git ~/.clawdbot/skills/gmail-daily-briefing

Setup Instructions (First-Time Only)

Step 1 — Get Google API credentials

  1. Go to Google Cloud Console
  2. Create a new project (or select existing one)
  3. In the left sidebar, go to APIs & Services → click Enable APIs and Services
  4. Search and enable each of the following:
    • Gmail API
    • Google Calendar API
  5. In the left sidebar, go to APIs & Services → OAuth consent screen
    • Click Get Started
    • Fill in App name and User support email → click Save and Continue
    • Under Audience → click Add Users → add your Google email → click Save
  6. In the left sidebar, go to APIs & Services → Credentials
  7. Click Create Credentials → OAuth client ID
  8. Under Application type select Desktop app
  9. Give it a name (e.g. Gmail Daily Briefing) → click Create
  10. Click Download JSON → you'll get a file named client_secret_*.json

Step 2 — Connect to the agent

  1. Send the client_secret_*.json file to the agent as an attachment
    • Via Telegram: send as a file (not photo) in your Clawdbot chat
    • Via Claude Desktop: drag and drop the file into the chat
    • Via other platforms: attach the file the same way you attach any document
  2. The agent will print an authorization URL — click it to open in your browser
  3. Log in with your Google account and click Allow
  4. Your browser will redirect to a localhost page showing an error — this is normal
  5. Copy the full URL from your browser address bar (starts with http://localhost/?...)
  6. Paste that URL back to the agent

Step 3 — Done!

The agent will confirm: "Auth complete. I can now access your Gmail and Google Calendar."

From now on just say: "Summarize today's important emails"

Agent Instructions

See agent/instructions.md for full agent instructions (commands, auth setup, behavior).