@googleworkspace/recipe-label-and-archive-emails

Apply Gmail labels to matching messages and archive them to keep your inbox clean.

View in AI SkillSafe app
136427 downloads
0 stars
0 demos
SKILL.md
namerecipe-label-and-archive-emails
descriptionApply Gmail labels to matching messages and archive them to keep your inbox clean.
metadatagws

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

  1. Search for matching emails: gws gmail users messages list --params '{"userId": "me", "q": "from:[email protected]"}' --format table
  2. Apply a label: gws gmail users messages modify --params '{"userId": "me", "id": "MESSAGE_ID"}' --json '{"addLabelIds": ["LABEL_ID"]}'
  3. Archive (remove from inbox): gws gmail users messages modify --params '{"userId": "me", "id": "MESSAGE_ID"}' --json '{"removeLabelIds": ["INBOX"]}'

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-label-and-archive-emails/verified)](https://skillsafe.ai/skill/@googleworkspace/recipe-label-and-archive-emails/)
Installs badge
Installs badge
[![Installs badge](https://api.skillsafe.ai/v1/badge/@googleworkspace/recipe-label-and-archive-emails/installs)](https://skillsafe.ai/skill/@googleworkspace/recipe-label-and-archive-emails/)
Scan badge
Scan badge
[![Scan badge](https://api.skillsafe.ai/v1/badge/@googleworkspace/recipe-label-and-archive-emails/scan)](https://skillsafe.ai/skill/@googleworkspace/recipe-label-and-archive-emails/)
Eval pass rate badge
Eval pass rate
[![Eval pass rate badge](https://api.skillsafe.ai/v1/badge/@googleworkspace/recipe-label-and-archive-emails/eval)](https://skillsafe.ai/skill/@googleworkspace/recipe-label-and-archive-emails/)