Loading...
Loading...
Find Gmail messages with attachments and save them to a Google Drive folder.
npx skill4agent add googleworkspace/cli recipe-save-email-attachmentsPREREQUISITE: Load the following skills to execute this recipe:,gws-gmailgws-drive
gws gmail users messages list --params '{"userId": "me", "q": "has:attachment from:client@example.com"}' --format tablegws gmail users messages get --params '{"userId": "me", "id": "MESSAGE_ID"}'gws gmail users messages attachments get --params '{"userId": "me", "messageId": "MESSAGE_ID", "id": "ATTACHMENT_ID"}'gws drive +upload --file ./attachment.pdf --parent FOLDER_ID