360 Secure SkillHub
360 安全技能中心

recipe-save-email-to-doc

该 Skill 是一套固定步骤的配方:先用 gws gmail 命令按搜索条件列出并读取指定邮件,再创建 Google 文档并把邮件正文写入其中,用于归档或日后参考。执行前需加载 gws-gmail 与 gws-docs 技能,并依赖 gws 命令行工具。

googleworkspace
热度 71.85
最近更新 2026-10-18 17:15:35
分类:协作依赖:第三方 API应用场景:工作流 / 文件转换

安装技能

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

执行命令安装此 skill: npx secure-skills-cli add googleworkspace/cli/recipe-save-email-to-doc
Metadata
name
recipe-save-email-to-doc
description
Save a Gmail message body into a Google Doc for archival or reference.
metadata
{"version":"0.22.5","openclaw":{"category":"recipe","domain":"productivity","requires":{"bins":["gws"],"skills":["gws-gmail","gws-docs"]}}}

Save a Gmail Message to Google Docs

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

Save a Gmail message body into a Google Doc for archival or reference.

Steps

  1. Find the message: gws gmail users messages list --params '{"userId": "me", "q": "subject:important from:boss@company.com"}' --format table
  2. Get message content: gws gmail users messages get --params '{"userId": "me", "id": "MSG_ID"}'
  3. Create a doc with the content: gws docs documents create --json '{"title": "Saved Email - Important Update"}'
  4. Write the email body: `gws docs +write --document-id DOC_ID --text 'From: boss@company.com Subject: Important Update

[EMAIL BODY]'`