360 Secure SkillHub
360 安全技能中心

Recipe Draft Email From Doc

该 Skill 通过 gws 命令行读取指定 Google Doc 的正文,再以该内容作为 Gmail 邮件正文发送给收件人;需要预先加载 gws-docs 与 gws-gmail 技能,并具备对应 Google 服务访问权限。

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

安装技能

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

执行命令安装此 skill: npx secure-skills-cli add recipe-draft-email-from-doc
Metadata
name
recipe-draft-email-from-doc
description
Read content from a Google Doc and use it as the body of a Gmail message.
metadata
{"version":"0.22.5","openclaw":{"category":"recipe","domain":"productivity","requires":{"bins":["gws"],"skills":["gws-docs","gws-gmail"]}}}

Draft a Gmail Message from a Google Doc

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

Read content from a Google Doc and use it as the body of a Gmail message.

Steps

  1. Get the document content: gws docs documents get --params '{"documentId": "DOC_ID"}'
  2. Copy the text from the body content
  3. Send the email: gws gmail +send --to recipient@example.com --subject 'Newsletter Update' --body 'CONTENT_FROM_DOC'