recipe-create-gmail-filter
SolidCreate a Gmail filter to automatically label, star, or categorize incoming messages.
AI & Automation 27,010 stars
1421 forks Updated yesterday Apache-2.0
Install
Quality Score: 94/100
Stars 20%
Recency 20%
Frontmatter 20%
Documentation 15%
Issue Health 10%
License 10%
Description 5%
Skill Content
# 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": "receipts@example.com"}, "action": {"addLabelIds": ["LABEL_ID"], "removeLabelIds": ["INBOX"]}}'`
4. Verify filter: `gws gmail users settings filters list --params '{"userId": "me"}' --format table`
Details
- Author
- googleworkspace
- Repository
- googleworkspace/cli
- Created
- 3 months ago
- Last Updated
- yesterday
- Language
- Rust
- License
- Apache-2.0
Integrates with
Similar Skills
Semantically similar based on skill content — not just same category
AI & Automation Solid
recipe-label-and-archive-emails
Apply Gmail labels to matching messages and archive them to keep your inbox clean.
27,010 Updated yesterday
googleworkspace AI & Automation Solid
recipe-forward-labeled-emails
Find Gmail messages with a specific label and forward them to another address.
27,010 Updated yesterday
googleworkspace AI & Automation Solid
recipe-save-email-attachments
Find Gmail messages with attachments and save them to a Google Drive folder.
27,010 Updated yesterday
googleworkspace