Recipe Save Email Attachments
Google WorkspaceOfficialPublished by Google Workspace
- Skill
- Workflow
- Automation and integrations
- Apache-2.0
- No issues found
AutoGineer summary
Written by AutoGineer from the skill’s own files, not by the author
This workflow automates the process of monitoring Gmail for incoming messages containing attachments and transferring those files to Google Drive. By leveraging integrated Gmail and Drive tools, it streamlines document management and reduces manual file handling.
What it does
- Searches Gmail for messages containing attachments based on specific criteria
- Retrieves detailed information for identified email messages
- Downloads attachments from selected Gmail messages
- Uploads downloaded files to a designated Google Drive folder
When to use it
- When you need to archive client documents sent via email
- When you want to centralize file storage from email communications
- When you need to automate the ingestion of attachments into a cloud storage system
Advantages
- Reduces manual effort in saving email attachments
- Ensures consistent file organization in Google Drive
- Automates repetitive document management tasks
Usage examples
- “Find all emails from [email removed] with attachments and save them to my project folder.”
- The agent searches your Gmail for the specified sender, downloads the attachments, and uploads them to the designated Google Drive folder.
Install
Download the skill as a ZIP:
https://autogineer.com/agent-skills/googleworkspace/recipe-save-email-attachments/downloadUnzip it into the cross-client skills folder of your project:
mkdir -p .agents/skills && unzip recipe-save-email-attachments.zip -d .agents/skills
Documentation by Google Workspace
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
Search for emails with attachments:
gws gmail users messages list --params '{"userId": "me", "q": "has:attachment from:[email protected]"}' --format tableGet message details:
gws gmail users messages get --params '{"userId": "me", "id": "MESSAGE_ID"}'Download attachment:
gws gmail users messages attachments get --params '{"userId": "me", "messageId": "MESSAGE_ID", "id": "ATTACHMENT_ID"}'Upload to Drive folder:
gws drive +upload --file ./attachment.pdf --parent FOLDER_ID
Files
- ATTRIBUTION.mdAdded by AutoGineer920 B
- LICENSELicence file added by AutoGineer11.1 KiB
- SKILL.md1.0 KiB
SKILL.md
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
Search for emails with attachments:
gws gmail users messages list --params '{"userId": "me", "q": "has:attachment from:[email protected]"}' --format tableGet message details:
gws gmail users messages get --params '{"userId": "me", "id": "MESSAGE_ID"}'Download attachment:
gws gmail users messages attachments get --params '{"userId": "me", "messageId": "MESSAGE_ID", "id": "ATTACHMENT_ID"}'Upload to Drive folder:
gws drive +upload --file ./attachment.pdf --parent FOLDER_ID
Requirements and compatibility
Works with: Claude Code, Claude apps, OpenAI Codex, GitHub Copilot, Cursor, Gemini CLI, Kiro, OpenCode, Goose, Amp, Roo Code, JetBrains Junie, Factory Droid, Devin (ex-Windsurf), Mistral Vibe, OpenHands, Letta
“Works with” means the tool reads the open Agent Skills format; a skill written for one tool may use features others lack.
Security
No issues found by our static scan· No issues found
A static scan is not a guarantee. Skills are third-party content: review a skill before you let an agent use it.
Attribution and licence
- Published by
- Google Workspace
- Publisher
- Google Workspace (Official)
- Source
- googleworkspace/cli · skills/recipe-save-email-attachments · commit cd3697e
- Licence
- Apache License 2.0 (redistribution allowed)
- LICENSE (added by AutoGineer from LICENSE)
- ATTRIBUTION.md (written by AutoGineer)
- Synced
AutoGineer is not affiliated with or endorsed by Google Workspace or Google Workspace.
Download ZIP
The ZIP holds the skill’s files, its licence files and an ATTRIBUTION.md. Download recipe-save-email-attachments.zip