写作32k · #9224
recipe-draft-email-from-doc
它能做什么
这个工具可以把 Google 文档中的文字提取出来,用它在 Gmail 中起草一封邮件。它相当于复制粘贴,只不过是自动完成的。
适用场景
- ✓文档中有大段文字,想通过邮件发送时。
- ✓需要根据笔记起草通讯稿或公告时。
- ✓想快速把报告或文章内容发出去时。
技能链接
https://github.com/googleworkspace/cli/blob/main/skills/recipe-draft-email-from-doc/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
请用这个技能帮我:https://github.com/googleworkspace/cli/blob/main/skills/recipe-draft-email-from-doc/SKILL.md
阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
npx skills add googleworkspace/cli --skill recipe-draft-email-from-doc
下载 SKILL.md,放进智能体的技能文件夹。
curl -L https://raw.githubusercontent.com/googleworkspace/cli/main/skills/recipe-draft-email-from-doc/SKILL.md -o SKILL.md
可以这样问 AI
“用“月度报告”文档中的内容,起草一封发给我老板的邮件。”
每周 5 个新技能,1 分钟读完。
工作原理
这个工具会先读取你指定文档中的内容,然后把这些文字填入一封新 Gmail 邮件的正文中。你检查无误后即可发送。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
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
- Get the document content:
gws docs documents get --params '{"documentId": "DOC_ID"}' - Copy the text from the body content
- Send the email:
gws gmail +send --to recipient@example.com --subject 'Newsletter Update' --body 'CONTENT_FROM_DOC'
常见问题
我需要同时打开 Google 文档和 Gmail 吗?
不需要,你只需要有这两者的访问权限即可。两者之间的衔接由这个工具自动完成。
我可以指定邮件的收件人吗?
可以。使用这个工具时,你可以指定邮件的收件人、主题和正文。
如果文档非常长会怎样?
工具会尽量复制全部内容。如果内容过长,可能会受到 Gmail 的限制。
详情
作者的原始描述
Read content from a Google Doc and use it as the body of a Gmail message.
repo: googleworkspace/cli
热度
- GitHub 星标
- 32k
- 排名
- #9224
- 许可证
- Apache-2.0
- 更新时间
- 2026/10/6
评论
- …