recipe-email-drive-link
Installation
Summary
Share Google Drive files and email access links to recipients in a single workflow.
- Combines Google Drive file sharing with Gmail delivery in three sequential steps: locate files, grant access permissions, and send notification emails
- Requires both
gws-driveandgws-gmailskills to be loaded before execution - Supports role-based sharing (reader, commenter, editor) and targets specific email addresses with custom messages
SKILL.md
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
- Find the file:
gws drive files list --params '{"q": "name = '\''Quarterly Report'\''"}' - Share the file:
gws drive permissions create --params '{"fileId": "FILE_ID"}' --json '{"role": "reader", "type": "user", "emailAddress": "client@example.com"}' - 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'
Related skills
More from googleworkspace/cli
gws-gmail
Gmail: Send, read, and manage email.
26.2Kgws-docs
Read and write Google Docs.
26.1Kgws-drive
Google Drive: Manage files, folders, and shared drives.
26.0Kgws-sheets
Google Sheets: Read and write spreadsheets.
24.7Kgws-calendar
Google Calendar: Manage calendars and events.
24.7Kgws-docs-write
Google Docs: Append text to a document.
21.8K