360 Secure SkillHub
360 安全技能中心

Recipe Save Email To Doc

核心功能是将指定Gmail邮件的正文保存到Google Docs,用于存档或后续查阅。典型场景如存档工作中重要的往来邮件(比如老板发送的重要通知)。需依赖gws工具及gws-gmail、gws-docs技能,通过查询邮件、获取内容、创建文档、写入内容四步完成操作,输入需指定邮件查询条件、文档标题等,输出为包含邮件内容的Google Docs文档。

googleworkspace-bot
googleworkspace-bot
热度 71.83
最近更新 2026-05-11 17:31:45
分类:自动化依赖:第三方 API应用场景:文件转换 / 工作流

安装技能

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

执行命令安装此 skill: npx secure-skills-cli add 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]'`