recipe-save-email-attachments
What it does
This assistant finds emails with attachments in your Gmail and saves those attachments to a folder in your Google Drive. It's useful for organizing important files you receive via email.
When to use it
- ✓When you receive important invoices or receipts via email.
- ✓To save presentations or documents shared by clients.
- ✓When receiving photos or project files via email and wanting to keep them.
Skill link
https://github.com/googleworkspace/cli/blob/main/skills/recipe-save-email-attachments/SKILL.mdCopy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.
How to use
The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.
Ready-to-paste message
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agent’s skills folder.
Example of what to ask your AI
“Save attachments from emails from client X to the 'Client X Projects' folder in my Google Drive.”
5 new skills a week. 1 minute to read.
How it works
It searches your Gmail for emails with attachments, retrieves the files, and uploads them to a specific folder in your Google Drive.
Technical content (original SKILL.md)
Original text by the author, straight from GitHub.
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:client@example.com"}' --format table - Get 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
FAQ
Do I need to have Gmail and Google Drive set up?
Yes, you need to have permissions to access your Gmail and Google Drive connected.
Can I choose which sender's attachments to save?
Yes, you can specify the sender in your request, like 'save attachments from so-and-so's email'.
Can I choose the folder where the attachments will be saved?
Yes, you can indicate the Google Drive folder in your request, like 'save to the Important Documents folder'.
Details
Original description by the author
Find Gmail messages with attachments and save them to a Google Drive folder.
repo: googleworkspace/cli
Popularity
- GitHub stars
- 32k
- Ranking position
- #9238
- License
- Apache-2.0
- Updated
- 10/6/2026
Comments
- …
More skills from this repository
gws-admin-reports
32kHelps your agent get activity reports from Google Workspace. It collects audit and usage data.
gws-calendar-agenda
32kHelps your agent see upcoming events across all calendars. It's useful for organizing your schedule and knowing what's coming up.
gws-calendar-insert
32kLets your agent create new events in Google Calendar. It's useful for scheduling appointments and meetings.
gws-calendar
32kAllows your agent to manage calendars and events. It's useful for organizing your life and work.
Similar skills
obsidian-vault-maintainer
394kHelps your agent keep an Obsidian-friendly memory vault tidy, with working wiki links, consistent properties, and safe generated sections.
wiki-maintainer
394kHelps your agent maintain an OpenClaw memory wiki with repeatable pages, safe managed blocks, and checks for contradictions or gaps.
obsidian
394kLets your agent read, search, create, and edit Obsidian notes, tasks, links, and properties using the official Obsidian command line.