Agent Skills
› googleworkspace/cli
› recipe-create-gmail-filter
recipe-create-gmail-filter
GitHub指导用户通过命令行工具创建Gmail过滤器,实现自动对邮件进行标签分类、加星或归档。
触发场景
用户希望自动化整理Gmail收件箱
需要为特定发件人设置邮件处理规则
安装
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
版本历史
- a3768d0 当前 2026-08-20 07:26


