recipe-label-and-archive-emails

Apply Gmail labels to matching emails and archive them from the inbox.

30.3k|1.8k|Updated Mar 2, 2026
One-click install
npx skills add https://github.com/googleworkspace/cli --skill recipe-label-and-archive-emails-googleworkspace
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: recipe-label-and-archive-emails
Source: https://github.com/googleworkspace/cli/tree/main/skills/recipe-label-and-archive-emails
Command: npx skills add https://github.com/googleworkspace/cli --skill recipe-label-and-archive-emails-googleworkspace

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps you automatically manage your Gmail inbox by applying labels to emails that match specific criteria and then archiving them, reducing clutter.

Core Features & Use Cases

  • Automated Labeling: Apply custom labels to emails based on sender or content.
  • Inbox Archiving: Automatically move labeled emails out of your primary inbox.
  • Use Case: Keep your inbox clean by automatically labeling and archiving newsletters or notifications from specific services.

Quick Start

Apply the 'important' label to emails from '[email protected]' and archive them.

Frequently Asked Questions about recipe-label-and-archive-emails

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I automatically label and archive emails in Gmail from a specific sender?

To automatically label and archive Gmail emails, this Skill searches for messages from a specified sender, applies a designated label, and removes them from your inbox view to reduce clutter.

Can I use this to automatically archive newsletters and notifications in Gmail?

Yes, you can use this to automatically archive newsletters or service notifications in Gmail by matching specific sender criteria, applying a custom label, and moving them out of your primary inbox.

Do I need the gws-gmail skill to manage inbox archiving and labeling?

Yes, you need the gws-gmail skill because this Skill relies on it for Gmail API interactions to search messages, apply labels, and perform inbox archiving actions.

What is the best way to organize my Gmail inbox automatically?

The best way to organize your Gmail inbox automatically is using this Skill to match specific email criteria, apply custom labels, and archive the messages to maintain a clean inbox view.

Does this Gmail automation apply custom labels before archiving messages?

Yes, this Gmail automation applies a designated custom label to matching emails before archiving them, ensuring your messages are categorized and removed from the primary inbox simultaneously.

Why are my Gmail labels not applying when I try to archive emails automatically?

If Gmail labels are not applying during archiving, ensure the gws-gmail skill is properly configured for API interactions and that the specified sender criteria exactly match the target emails.