Recipe Create Vacation Responder

by googleworkspacea3768d0e82adNo license31K starsListed Oct 8, 2026Updated Oct 8, 2026Repository updated yesterday

Enable a Gmail out-of-office auto-reply with a custom message and date range.

AI-generated overview

Enables, verifies and disables a Gmail out-of-office auto-reply with a custom message and date range.

What it does
This recipe walks through configuring a Gmail vacation responder using the gws command-line tool. It enables the auto-reply with a custom subject and body, verifies the current settings, and disables the responder when the user returns. It produces configuration changes to the user's Gmail account rather than a file.
When to use it
Use it when you need to set up an out-of-office auto-reply in Gmail for a period of absence. It also fits verifying that the responder is active or turning it off after returning.
Requirements
Requires the gws binary and the gws-gmail skill; it needs authenticated access to the Gmail account and network access. It ships no scripts, only instructions.

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 [email protected].", "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}'

Source and attribution

Source:googleworkspace/cliinskills/recipe-create-vacation-responderat commita3768d0

License: No license

Content belongs to its original authors. SourceWeft indexes it from a public repository.

Report or request removal