recipe-email-drive-link
googleworkspace/cli
Share a Google Drive file and email the link with a message to recipients.
What is recipe-email-drive-link?
This recipe combines Google Drive file sharing with Gmail to send a file link and custom message to recipients. Use it when you need to distribute documents and notify recipients in one workflow.
- Find files in Google Drive by name or query
- Share files with specific users by email address
- Send emails with the shared file link and custom message
- Set access permissions (e.g., reader role) during sharing
- Automate multi-step document distribution workflows
How to install recipe-email-drive-link
npx skills add null --skill recipe-email-drive-link- gws-drive skill installed
- gws-gmail skill installed
- Google Workspace CLI (gws) configured with authentication
How to use recipe-email-drive-link
- 1.Query Google Drive to find the file you want to share using gws drive files list with a name filter
- 2.Create a sharing permission for the file using gws drive permissions create, specifying the recipient email and access role (e.g., reader)
- 3.Send an email using gws gmail +send with the recipient address, subject, and body containing the Google Drive file link (format: https://docs.google.com/document/d/FILE_ID)
Use cases
- Send a quarterly report to clients with context in the email body
- Share project documents with team members and notify them via email
- Distribute contracts or agreements with explanatory messages
- Send meeting notes or presentations to stakeholders automatically
- Share feedback documents with collaborators and notify them
- Project managers coordinating document distribution
- Sales teams sharing proposals and reports with clients
- HR professionals distributing policies or documents
- Team leads sharing project files with team members
- Anyone automating document sharing workflows
recipe-email-drive-link FAQ
The recipe example uses 'reader' role. Google Drive supports reader, commenter, and writer roles depending on your sharing needs.
Yes, repeat the share and email steps for each recipient, or modify the commands to loop through a list of email addresses.
By default, shared files require a Google account. You can adjust sharing settings to allow access without an account if needed.
Use the gws drive files list command with a query filter (like name matching) to retrieve the file ID from the results.
Full instructions (SKILL.md)
Source of truth, from googleworkspace/cli.
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
- 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 and the wider catalog.
gws-gmail
Send, read, and manage Gmail emails via Google Workspace CLI.
gws-drive
Manage Google Drive files, folders, and shared drives via CLI.
gws-docs
Read and write Google Docs via command line.
gws-calendar
Manage Google Calendar events, calendars, and access control via CLI.
gws-sheets
Read and write Google Sheets spreadsheets via CLI.
gws-gmail-send
Send emails via Gmail with attachments, CC/BCC, HTML support, and draft options.