Generated banner for Recipe Save Email Attachments
Generated logo for Recipe Save Email Attachments

Recipe Save Email Attachments

Google WorkspaceOfficialPublished by Google Workspace

  • Skill
  • Workflow
  • Automation and integrations
  • Apache-2.0
  • No issues found

From the author

Find Gmail messages with attachments and save them to a Google Drive folder.
— the description by Google Workspace

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

  1. Download the skill as a ZIP:

    https://mp-staging.autogineer.com/agent-skills/googleworkspace/recipe-save-email-attachments/download
  2. Unzip 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

  1. Search for emails with attachments: gws gmail users messages list --params '{"userId": "me", "q": "has:attachment from:[email protected]"}' --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

Files

ATTRIBUTION.md

Attribution

This folder is an unmodified copy of the Agent Skill "recipe-save-email-attachments", distributed by AutoGineer (https://autogineer.com/agent-skills).

The skill's own files are unmodified copies. AutoGineer is not affiliated with or endorsed by the author or the publisher.

Files added by AutoGineer

  • ATTRIBUTION.md: this file, written by AutoGineer

  • LICENSE: copied from LICENSE

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.

Download ZIP

The ZIP holds the skill’s files, its licence files and an ATTRIBUTION.md. Download recipe-save-email-attachments.zip