360 Secure SkillHub
360 安全技能中心

Recipe Email Drive Link

这是一个配方类 Skill,依赖 gws 命令行及前置 Skill gws-drive、gws-gmail:按名称查找 Google Drive 文件,创建 reader 权限共享给指定邮箱,再通过 Gmail 发送含文件链接的邮件。凭据配置与工具安装未包含在内。

googleworkspace-bot
googleworkspace-bot
热度 74.10
最近更新 2026-05-11 17:31:20
分类:协作依赖:第三方 API应用场景:工作流 / 邮件起草

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add recipe-email-drive-link
Metadata
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'