StoreSKILL.mdRead at a3768d0
recipe-label-and-archive-emails
Apply Gmail labels to matching messages and archive them to keep your inbox clean.
Overview
Label and Archive Gmail Threads
PREREQUISITE: Load the following skills to execute this recipe:
gws-gmail
Apply Gmail labels to matching messages and archive them to keep your inbox clean.
Steps
- Search for matching emails:
gws gmail users messages list --params '{"userId": "me", "q": "from:[email protected]"}' --format table - Apply a label:
gws gmail users messages modify --params '{"userId": "me", "id": "MESSAGE_ID"}' --json '{"addLabelIds": ["LABEL_ID"]}' - Archive (remove from inbox):
gws gmail users messages modify --params '{"userId": "me", "id": "MESSAGE_ID"}' --json '{"removeLabelIds": ["INBOX"]}'
Files 1 file
Install it by hand
Deska runs this for you, for every agent you pick. To run it yourself in a terminal:
npx skills add googleworkspace/cli --skill recipe-label-and-archive-emailsMore from googleworkspace
- gws-gmailgoogleworkspaceOfficialGmail: Send, read, and manage email.78.8K installs on skills.sh0
- gws-gmail-sendgoogleworkspaceOfficialGmail: Send an email.72.7K installs on skills.sh0
- gws-drivegoogleworkspaceOfficialGoogle Drive: Manage files, folders, and shared drives.71.8K installs on skills.sh0
- gws-sharedgoogleworkspaceOfficialgws CLI: Shared patterns for authentication, global flags, and output formatting.63.4K installs on skills.sh0
- gws-calendargoogleworkspaceOfficialGoogle Calendar: Manage calendars and events.58.6K installs on skills.sh0