recipe-create-gmail-filter

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

8|1|Updated Mar 5, 2026
One-click install
npx skills add https://github.com/niclasmartinsson-sys/google-workspace-cli --skill recipe-create-gmail-filter-niclasmartinsson-sys
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: recipe-create-gmail-filter
Source: https://github.com/niclasmartinsson-sys/google-workspace-cli/tree/main/skills/recipe-create-gmail-filter
Command: npx skills add https://github.com/niclasmartinsson-sys/google-workspace-cli --skill recipe-create-gmail-filter-niclasmartinsson-sys

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Automates Gmail inbox management by creating and applying filters that automatically label, star, or categorize incoming messages, reducing manual sorting.

Core Features & Use Cases

  • Automatic labeling, starring, and categorization of incoming emails based on sender, subject, or content.
  • Sequential recipe steps to list existing labels, create new labels, establish a filter, and verify results.
  • Prerequisite support via gws-gmail to ensure proper authentication and scope.

Quick Start

Install the gws-gmail prerequisite and run this recipe to automatically label and organize incoming messages.

Frequently Asked Questions about recipe-create-gmail-filter

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

FAQPage Schema
How do I automate Gmail filters to organize incoming mail?

Automating Gmail filters applies rules to incoming messages for automatic labeling, starring, or categorization based on sender, subject, or content. This recipe uses Gmail API calls to list labels, create labels, establish filters, and verify results.

Do I need gws-gmail to create Gmail labels and filters?

Yes, the gws-gmail prerequisite is required to ensure proper authentication and scope before creating Gmail filters. You must install gws-gmail to enable the API interactions needed for automatic inbox organization.

Can I apply automatic labeling across multiple Gmail accounts?

Automatic labeling can be applied across a Gmail account or multiple accounts. The filter management process categorizes incoming messages sequentially by listing existing labels, creating new ones, and verifying filter results.

What is the best way to categorize incoming emails by sender or subject?

Categorizing incoming emails by sender or subject is achieved by establishing Gmail filters through API calls. This recipe creates specific labels and applies filter rules to automatically sort matching messages without manual intervention.

How does Gmail filter verification work after setting up automatic workflows?

Gmail filter verification works by executing a deterministic sequence of API calls that list labels, create new labels, establish the filter, and check the results. This sequential recipe step confirms that your automated workflows are properly applied.