Save Gmail Attachments to Google Drive

SkillFiles & storage

Lets your agent find Gmail messages with attachments and save those files into a Google Drive folder.

Available today. Use it from your connected AI after setup.

Connect ahel once, and every AI you use reads what you have installed.

Then ask your AI: use the Save Gmail Attachments to Google Drive skill

About this capability

Find Gmail messages with attachments and save them to a Google Drive folder.

What this skill tells your AI

The instructions your AI receives, as published by googleworkspace/cli in skills/recipe-save-email-attachments/SKILL.md and read by ahel’s review.

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

Signals

GitHub stars
31k
Forks
2k
Last commit
Sep 2026
Advanced
Catalog kind
skill
Gateway key
recipe-save-email-attachments
Source
github.com/googleworkspace/cli