SuperAPI AI 工具集

recipe-create-vacation-responder

办公与效率

查看项目

更新于 10-16 08:21

技能介绍

用途:通过 Google Workspace CLI 为 Gmail 配置休假自动回复(out-of-office auto-reply),可自定义回复内容与日期范围。

前置条件:执行本技能前,需要先加载 gws-gmail 技能。

主要能力:

  • 启用休假自动回复,并设置自定义主题与正文;
  • 可设置是否仅对联系人或仅对域内用户回复(restrictToContacts、restrictToDomain);
  • 查询当前休假回复设置以进行验证;
  • 返回后关闭休假自动回复。

使用方式(命令示例):

  1. 启用休假自动回复: 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. 验证设置: gws gmail users settings getVacation --params '{"userId": "me"}'

  3. 返回后关闭: gws gmail users settings updateVacation --params '{"userId": "me"}' --json '{"enableAutoReply": false}'

适用场景:需要在休假、出差或暂时无法处理邮件期间,自动向发件人发送通知,并告知紧急联系方式。

限制:资料中未提供关于日期范围参数的具体字段说明、收费、价格、平台支持范围或效果保证等信息。