360 Secure SkillHub
360 安全技能中心

Recipe Label And Archive Emails

核心功能:按条件筛选Gmail邮件,为匹配邮件添加指定标签并将其从收件箱归档。典型场景:处理特定发件人的通知类批量邮件,保持收件箱整洁。需依赖gws-gmail技能,通过命令行输入筛选条件、标签ID等参数,完成邮件的标签添加与归档操作。

googleworkspace-bot
googleworkspace-bot
热度 71.87
最近更新 2026-05-11 17:31:25
分类:自动化依赖:MCP 服务应用场景:任务管理 / 工作流

安装技能

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

执行命令安装此 skill: npx secure-skills-cli add recipe-label-and-archive-emails
Metadata
name
recipe-label-and-archive-emails
description
Apply Gmail labels to matching messages and archive them to keep your inbox clean.
metadata
{"version":"0.22.5","openclaw":{"category":"recipe","domain":"productivity","requires":{"bins":["gws"],"skills":["gws-gmail"]}}}

Label and Archive Gmail Threads

PREREQUISITE: Load the following skills to execute this recipe: gws-gmail

Apply Gmail labels to matching messages and archive them to keep your inbox clean.

Steps

  1. Search for matching emails: gws gmail users messages list --params '{"userId": "me", "q": "from:notifications@service.com"}' --format table
  2. Apply a label: gws gmail users messages modify --params '{"userId": "me", "id": "MESSAGE_ID"}' --json '{"addLabelIds": ["LABEL_ID"]}'
  3. Archive (remove from inbox): gws gmail users messages modify --params '{"userId": "me", "id": "MESSAGE_ID"}' --json '{"removeLabelIds": ["INBOX"]}'