StoreSKILL.mdRead at a3768d0
recipe-create-gmail-filter
Create a Gmail filter to automatically label, star, or categorize incoming messages.
Overview
Create a Gmail Filter
PREREQUISITE: Load the following skills to execute this recipe:
gws-gmail
Create a Gmail filter to automatically label, star, or categorize incoming messages.
Steps
- List existing labels:
gws gmail users labels list --params '{"userId": "me"}' --format table - Create a new label:
gws gmail users labels create --params '{"userId": "me"}' --json '{"name": "Receipts"}' - Create a filter:
gws gmail users settings filters create --params '{"userId": "me"}' --json '{"criteria": {"from": "[email protected]"}, "action": {"addLabelIds": ["LABEL_ID"], "removeLabelIds": ["INBOX"]}}' - Verify filter:
gws gmail users settings filters list --params '{"userId": "me"}' --format table
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-create-gmail-filterMore 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