Agent Skills
› googleworkspace/cli
› recipe-create-gmail-filter
recipe-create-gmail-filter
GitHub自动化创建Gmail邮件过滤器,实现自动标记、星标或分类功能。通过调用API列出标签、新建标签并配置过滤规则,提升邮件管理效率。
Trigger Scenarios
用户需要自动整理收件箱邮件
用户希望根据发件人或关键词对邮件进行分类
用户想要设置特定邮件的默认标签或操作
Install
npx skills add googleworkspace/cli --skill recipe-create-gmail-filter -g -y
SKILL.md
Frontmatter
{
"name": "recipe-create-gmail-filter",
"metadata": {
"version": "0.22.5",
"openclaw": {
"domain": "productivity",
"category": "recipe",
"requires": {
"bins": [
"gws"
],
"skills": [
"gws-gmail"
]
}
}
},
"description": "Create a Gmail filter to automatically label, star, or categorize incoming messages."
}
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
Version History
- a3768d0 Current 2026-08-20 07:26


