AGENT SKILL
recipe-create-gmail-filter
Create a Gmail filter to automatically label, star, or categorize incoming messages.
- License 许可
- MIT
- 最近更新
- 2026-06-24
- Stars
- ★ 66
- Forks
- 24
01 前言 Front Matter
- name
- recipe-create-gmail-filter
- version
- 1.0.0
- metadata
- { "openclaw": { "domain": "productivity", "category": "recipe", "requires": { "bins": [ "gws" ], "skills": [ "gws-gmail" ] } } }
- description
- Create a Gmail filter to automatically label, star, or categorize incoming messages.
03 SKILL.md 正文
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
- List existing labels:
gws gmail users labels list --params '{"userId": "me"}' --format table - Create a new label:
gws gmail users labels create --params '{"userId": "me"}' --json '{"name": "Receipts"}' - Create a filter:
gws gmail users settings filters create --params '{"userId": "me"}' --json '{"criteria": {"from": "receipts@example.com"}, "action": {"addLabelIds": ["LABEL_ID"], "removeLabelIds": ["INBOX"]}}' - Verify filter:
gws gmail users settings filters list --params '{"userId": "me"}' --format table