Loading source
Pulling the file list, source metadata, and syntax-aware rendering for this listing.
Source from repo
Create a Gmail filter to automatically label, star, or archive incoming messages from specific senders.
Files
Skill
Size
Entrypoint
Format
Open file
Syntax-highlighted preview of this file as included in the skill package.
SKILL.md
1---2name: recipe-create-gmail-filter3description: "Create a Gmail filter to automatically label, star, or categorize incoming messages."4metadata:5version: 0.22.56openclaw:7category: "recipe"8domain: "productivity"9requires:10bins:11- gws12skills:13- gws-gmail14---1516# Create a Gmail Filter1718> **PREREQUISITE:** Load the following skills to execute this recipe: `gws-gmail`1920Create a Gmail filter to automatically label, star, or categorize incoming messages.2122## Steps23241. List existing labels: `gws gmail users labels list --params '{"userId": "me"}' --format table`252. Create a new label: `gws gmail users labels create --params '{"userId": "me"}' --json '{"name": "Receipts"}'`263. Create a filter: `gws gmail users settings filters create --params '{"userId": "me"}' --json '{"criteria": {"from": "[email protected]"}, "action": {"addLabelIds": ["LABEL_ID"], "removeLabelIds": ["INBOX"]}}'`274. Verify filter: `gws gmail users settings filters list --params '{"userId": "me"}' --format table`2829