Loading source
Pulling the file list, source metadata, and syntax-aware rendering for this listing.
Source from repo
Apply Gmail labels to matching messages and archive them to keep the inbox clean.
Files
Skill
Size
Entrypoint
Format
Open file
Syntax-highlighted preview of this file as included in the skill package.
SKILL.md
1---2name: recipe-label-and-archive-emails3description: "Apply Gmail labels to matching messages and archive them to keep your inbox clean."4metadata:5version: 0.22.56openclaw:7category: "recipe"8domain: "productivity"9requires:10bins:11- gws12skills:13- gws-gmail14---1516# Label and Archive Gmail Threads1718> **PREREQUISITE:** Load the following skills to execute this recipe: `gws-gmail`1920Apply Gmail labels to matching messages and archive them to keep your inbox clean.2122## Steps23241. Search for matching emails: `gws gmail users messages list --params '{"userId": "me", "q": "from:[email protected]"}' --format table`252. Apply a label: `gws gmail users messages modify --params '{"userId": "me", "id": "MESSAGE_ID"}' --json '{"addLabelIds": ["LABEL_ID"]}'`263. Archive (remove from inbox): `gws gmail users messages modify --params '{"userId": "me", "id": "MESSAGE_ID"}' --json '{"removeLabelIds": ["INBOX"]}'`2728