先看看示例
作者提供的示例,实际效果取决于你的输入和使用工具。
输入
设置休假回复:主题写 Out of Office,正文说明返岗日期与紧急联系人邮箱,限定日期范围后启用,返岗时再关闭。
输出
预期交付:已启用的 Gmail 休假自动回复设置,以及查询返回的当前休假配置。(编辑说明,非实际运行结果)
方法说明
---
name: recipe-create-vacation-responder
description: "Enable a Gmail out-of-office auto-reply with a custom message and date range."
metadata:
version: 0.22.5
openclaw:
category: "recipe"
domain: "productivity"
requires:
bins:
- gws
skills:
- gws-gmail
---
# Set Up a Gmail Vacation Responder
> **PREREQUISITE:** Load the following skills to execute this recipe: `gws-gmail`
Enable a Gmail out-of-office auto-reply with a custom message and date range.
## Steps
1. Enable vacation responder: `gws gmail users settings updateVacation --params '{"userId": "me"}' --json '{"enableAutoReply": true, "responseSubject": "Out of Office", "responseBodyPlainText": "I am out of the office until Jan 20. For urgent matters, contact backup@company.com.", "restrictToContacts": false, "restrictToDomain": false}'`
2. Verify settings: `gws gmail users settings getVacation --params '{"userId": "me"}'`
3. Disable when back: `gws gmail users settings updateVacation --params '{"userId": "me"}' --json '{"enableAutoReply": false}'`