
Recipe Save Email Attachments
- 25.1k installs
- 30k repo stars
- Updated July 22, 2026
- googleworkspace/cli
recipe-save-email-attachments is a skill that finds Gmail messages with attachments and saves them to a Google Drive folder using the gws CLI.
About
recipe-save-email-attachments is an OpenClaw recipe that finds Gmail messages carrying attachments and saves them into a target Google Drive folder using the gws command-line binary. It runs a Gmail search such as has:attachment with sender filters, fetches each message and attachment, then uploads the file to a Drive folder by ID. A developer uses it to route invoices, contracts, or client files from email into a shared Drive inbox automatically. It requires the gws-gmail and gws-drive skills to be loaded first.
- Finds Gmail messages with attachments and uploads them to a Drive folder
- Runs on the gws CLI binary; depends on gws-gmail and gws-drive skills
- 4-step recipe from Gmail search to Drive upload
Recipe Save Email Attachments by the numbers
- 25,075 all-time installs (skills.sh)
- +820 installs in the week ending Jul 28, 2026 (Skillselion tracking)
- Ranked #27 of 2,742 Automation & Workflows skills by installs in the Skillselion catalog
- Security screen: LOW risk (skills.sh audit)
- Data as of Jul 28, 2026 (Skillselion catalog sync)
recipe-save-email-attachments capabilities & compatibility
Free; runs via the gws CLI against Google Workspace APIs.
- Capabilities
- email attachment extraction · drive upload · gmail search
- Works with
- gmail · google drive
- Use cases
- Runs
- Runs locally
- Pricing
- Free
What recipe-save-email-attachments says it does
Find Gmail messages with attachments and save them to a Google Drive folder.
Upload to Drive folder: `gws drive +upload --file ./attachment.pdf --parent FOLDER_ID`
npx skills add https://github.com/googleworkspace/cli --skill recipe-save-email-attachmentsAdd your badge
Show developers this skill is listed on Skillselion. Paste this into your README.
| Installs | 25.1k |
|---|---|
| repo stars | ★ 30k |
| Security audit | 3 / 3 scanners passed |
| Last updated | July 22, 2026 |
| Repository | googleworkspace/cli ↗ |
How do I stop manually downloading email attachments and re-uploading them to Drive?
Automate saving Gmail attachments into a shared Google Drive folder without manual downloads.
Who is it for?
Teams that receive files by email and want them auto-filed into a shared Google Drive folder.
Skip if: Users who need attachments processed, renamed, or parsed rather than just moved to Drive.
When should I use this skill?
When emails with attachments must be collected into a Drive folder without manual downloading.
What you get
Each matching Gmail attachment lands in the specified Google Drive folder.
- Email attachments saved into a Google Drive folder
By the numbers
- 4-step recipe
- version 0.22.5
Files
Save Gmail Attachments to Google Drive
PREREQUISITE: Load the following skills to execute this recipe:gws-gmail,gws-drive
Find Gmail messages with attachments and save them to a Google Drive folder.
Steps
1. Search for emails with attachments: gws gmail users messages list --params '{"userId": "me", "q": "has:attachment from:client@example.com"}' --format table 2. Get message details: gws gmail users messages get --params '{"userId": "me", "id": "MESSAGE_ID"}' 3. Download attachment: gws gmail users messages attachments get --params '{"userId": "me", "messageId": "MESSAGE_ID", "id": "ATTACHMENT_ID"}' 4. Upload to Drive folder: gws drive +upload --file ./attachment.pdf --parent FOLDER_ID
Related skills
How it compares
Choose recipe-save-email-attachments over generic file-download scripts when Gmail search filters and Drive folder targets must stay inside the gws Google Workspace CLI ecosystem.
FAQ
What does this recipe do?
It searches Gmail for messages with attachments, downloads each attachment, and uploads it to a Google Drive folder using the gws binary.
What does it depend on?
It requires the gws-gmail and gws-drive skills and the gws command-line binary to be installed.
Is Recipe Save Email Attachments safe to install?
skills.sh reports 3 of 3 security scanners passed. Review the Security Audits panel on this page before installing in production.