SuperAPI AI 工具集

recipe-share-doc-and-notify

办公与效率

查看项目

更新于 10-16 09:59

技能介绍

用途:这是一个自动化配方,用于将某个 Google Docs 文档以编辑(writer)权限共享给指定协作者,并再通过 Gmail 把文档链接邮件通知对方。执行前需先加载 gws-drive、gws-docs、gws-gmail 三个技能。

主要步骤:

  1. 查找文档:gws drive files list --params '{"q": "name contains '''Project Brief''' and mimeType = '''application/vnd.google-apps.document'''"}'
  2. 授予编辑权限:gws drive permissions create --params '{"fileId": "DOC_ID"}' --json '{"role": "writer", "type": "user", "emailAddress": "reviewer@company.com"}'
  3. 发送邮件通知:gws gmail +send --to reviewer@company.com --subject 'Please review: Project Brief' --body 'I have shared the project brief with you: https://docs.google.com/document/d/DOC_ID'

适用场景:需要把文档分享给评审人或其他协作者并同时通知对方的场景。限制:资料未提供该配方的调用参数、认证配置、错误处理与批量用法,具体以实际 CLI 与技能文档为准。