SuperAPI AI 工具集

recipe-create-vacation-responder

办公与效率

查看项目

更新于 10-16 04:22

技能介绍

用途:该技能用于在 Gmail 中启用休假(外出)自动回复,可自定义回复消息和日期范围。

主要能力:

  • 启用休假自动回复,设置回复主题与纯文本正文。
  • 可控制是否仅对联系人(restrictToContacts)或仅对域内用户(restrictToDomain)生效。
  • 验证当前休假设置。
  • 返回后关闭自动回复。

使用方式: 前置条件:执行此技能前需加载 gws-gmail 技能。

步骤一:启用休假自动回复 命令: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}'

步骤二:验证设置 命令:gws gmail users settings getVacation --params '{"userId": "me"}'

步骤三:返回后关闭 命令:gws gmail users settings updateVacation --params '{"userId": "me"}' --json '{"enableAutoReply": false}'

适用场景:需要在休假期间自动回复邮件、告知发件人紧急联系方式或返回日期的场景。

限制:资料中未提供关于日期范围参数的具体字段说明,也未提供除上述命令外的其他配置细节;使用前必须加载 gws-gmail 技能。