Share a Google Drive file and email the link with a message to recipients.
Share a Google Drive file and email the link with a message to recipients.
PREREQUISITE: Load the following skills to execute this recipe: gws-drive, gws-gmail
直接复制以下提示词,发送给你的 AI 助手即可完成安装。
---
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'`
文件内容直接读取自技能仓库,仅供安装前审阅;以实际下载的压缩包为准。