先看看示例
作者提供的示例,实际效果取决于你的输入和使用工具。
输入
找到名为 Quarterly Report 的文件,共享给客户邮箱并发送一封带链接的简短说明邮件。
输出
预期交付:已共享的 Drive 文件权限,以及包含文件链接的已发送邮件。(编辑说明,非实际运行结果)
方法说明
---
name: recipe-email-drive-link
description: "Share a Google Drive file and email the link with a message to recipients."
metadata:
version: 0.22.5
openclaw:
category: "recipe"
domain: "productivity"
requires:
bins:
- gws
skills:
- gws-drive
- gws-gmail
---
# Email a Google Drive File Link
> **PREREQUISITE:** Load the following skills to execute this recipe: `gws-drive`, `gws-gmail`
Share a Google Drive file and email the link with a message to recipients.
## Steps
1. Find the file: `gws drive files list --params '{"q": "name = '\''Quarterly Report'\''"}'`
2. Share the file: `gws drive permissions create --params '{"fileId": "FILE_ID"}' --json '{"role": "reader", "type": "user", "emailAddress": "client@example.com"}'`
3. Email the link: `gws gmail +send --to client@example.com --subject 'Quarterly Report' --body 'Hi, please find the report here: https://docs.google.com/document/d/FILE_ID'`