Loading source
Pulling the file list, source metadata, and syntax-aware rendering for this listing.
Source from repo
Search Gmail for messages with attachments and save them to a specific Google Drive folder.
Files
Skill
Size
Entrypoint
Format
Open file
Syntax-highlighted preview of this file as included in the skill package.
SKILL.md
1---2name: recipe-save-email-attachments3description: "Find Gmail messages with attachments and save them to a Google Drive folder."4metadata:5version: 0.22.56openclaw:7category: "recipe"8domain: "productivity"9requires:10bins:11- gws12skills:13- gws-gmail14- gws-drive15---1617# Save Gmail Attachments to Google Drive1819> **PREREQUISITE:** Load the following skills to execute this recipe: `gws-gmail`, `gws-drive`2021Find Gmail messages with attachments and save them to a Google Drive folder.2223## Steps24251. Search for emails with attachments: `gws gmail users messages list --params '{"userId": "me", "q": "has:attachment from:[email protected]"}' --format table`262. Get message details: `gws gmail users messages get --params '{"userId": "me", "id": "MESSAGE_ID"}'`273. Download attachment: `gws gmail users messages attachments get --params '{"userId": "me", "messageId": "MESSAGE_ID", "id": "ATTACHMENT_ID"}'`284. Upload to Drive folder: `gws drive +upload --file ./attachment.pdf --parent FOLDER_ID`2930