技能 效率工具 将 Gmail 邮件保存为文档

将 Gmail 邮件保存为文档

v20260401
recipe-save-email-to-doc
通过 gws 命令抓取 Gmail 邮件正文并写入新建的 Google 文档,实现重要信息的自动归档与随时查阅。
获取技能
144 次下载
概览

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]'`

信息
Category 效率工具
Name recipe-save-email-to-doc
版本 v20260401
大小 1020B
更新时间 2026-04-08
语言