Log in

recipe-create-gmail-filter

Vercel
All-time installs
28.6K

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

Other options

Summary

Automated Gmail message routing through filters that label, star, or archive incoming mail.

  • Requires the gws-gmail skill and gws binary to execute filter operations
  • Supports filter criteria matching (sender, subject, keywords) with actions including label assignment, removal from inbox, and archiving
  • Includes commands to list existing labels, create new labels, apply filters, and verify filter configuration

Raw SKILL.md

1,039 bytes
---
name: recipe-create-gmail-filter
description: "Create a Gmail filter to automatically label, star, or categorize incoming messages."
metadata:
  version: 0.22.5
  openclaw:
    category: "recipe"
    domain: "productivity"
    requires:
      bins:
        - gws
      skills:
        - gws-gmail
---

# 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": "[email protected]"}, "action": {"addLabelIds": ["LABEL_ID"], "removeLabelIds": ["INBOX"]}}'`
4. Verify filter: `gws gmail users settings filters list --params '{"userId": "me"}' --format table`

Security audits

SnykPASS
SocketPASS
Gen Agent Trust HubPASS