@googleworkspace/recipe-create-gmail-filter

Create a Gmail filter to automatically label, star, or categorize incoming messages.

View in AI SkillSafe app
138076 downloads
0 stars
0 demos
SKILL.md
namerecipe-create-gmail-filter
descriptionCreate a Gmail filter to automatically label, star, or categorize incoming messages.
metadatagws

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

  1. List existing labels: gws gmail users labels list --params '{"userId": "me"}' --format table
  2. Create a new label: gws gmail users labels create --params '{"userId": "me"}' --json '{"name": "Receipts"}'
  3. Create a filter: gws gmail users settings filters create --params '{"userId": "me"}' --json '{"criteria": {"from": "[email protected]"}, "action": {"addLabelIds": ["LABEL_ID"], "removeLabelIds": ["INBOX"]}}'
  4. Verify filter: gws gmail users settings filters list --params '{"userId": "me"}' --format table

Embed badges

Add these to your README to show the skill's verification status.

SkillSafe verified badge
Verified badge
[![SkillSafe verified badge](https://api.skillsafe.ai/v1/badge/@googleworkspace/recipe-create-gmail-filter/verified)](https://skillsafe.ai/skill/@googleworkspace/recipe-create-gmail-filter/)
Installs badge
Installs badge
[![Installs badge](https://api.skillsafe.ai/v1/badge/@googleworkspace/recipe-create-gmail-filter/installs)](https://skillsafe.ai/skill/@googleworkspace/recipe-create-gmail-filter/)
Scan badge
Scan badge
[![Scan badge](https://api.skillsafe.ai/v1/badge/@googleworkspace/recipe-create-gmail-filter/scan)](https://skillsafe.ai/skill/@googleworkspace/recipe-create-gmail-filter/)
Eval pass rate badge
Eval pass rate
[![Eval pass rate badge](https://api.skillsafe.ai/v1/badge/@googleworkspace/recipe-create-gmail-filter/eval)](https://skillsafe.ai/skill/@googleworkspace/recipe-create-gmail-filter/)