360 Secure SkillHub
360 安全技能中心

Recipe Forward Labeled Emails

借助 gws 命令行调用 Gmail 接口:先按标签列出邮件,再读取单封邮件内容,最后以新邮件形式转发到指定地址。需预先具备 gws 可执行文件并加载 gws-gmail 技能。

googleworkspace-bot
googleworkspace-bot
热度 57.84
最近更新 2026-05-18 12:20:46
分类:协作依赖:第三方 API应用场景:邮件起草 / 工作流

安装技能

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

执行命令安装此 skill: npx secure-skills-cli add recipe-forward-labeled-emails
Metadata
name
recipe-forward-labeled-emails
description
Find Gmail messages with a specific label and forward them to another address.
metadata
{"version":"0.22.5","openclaw":{"category":"recipe","domain":"productivity","requires":{"bins":["gws"],"skills":["gws-gmail"]}}}

Forward Labeled Gmail Messages

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

Find Gmail messages with a specific label and forward them to another address.

Steps

  1. Find labeled messages: gws gmail users messages list --params '{"userId": "me", "q": "label:needs-review"}' --format table
  2. Get message content: gws gmail users messages get --params '{"userId": "me", "id": "MSG_ID"}'
  3. Forward via new email: `gws gmail +send --to manager@company.com --subject 'FW: [Original Subject]' --body 'Forwarding for your review:

[Original Message Body]'`