Label and Archive Gmail Threads

SkillCommunication

Lets your agent apply Gmail labels to matching emails and archive them.

Available today. Use it from your connected AI after setup.

Connect ahel once, and every AI you use reads what you have installed.

Then ask your AI: use the Label and Archive Gmail Threads skill

About this capability

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

What this skill tells your AI

The instructions your AI receives, as published by googleworkspace/cli in skills/recipe-label-and-archive-emails/SKILL.md and read by ahel’s review.

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:notifications@service.com"}' --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"]}'

Signals

GitHub stars
31k
Forks
2k
Last commit
Sep 2026
Advanced
Catalog kind
skill
Gateway key
recipe-label-and-archive-emails
Source
github.com/googleworkspace/cli