$npx -y skills add googleworkspace/cli --skill recipe-create-vacation-responderEnable a Gmail out-of-office auto-reply with a custom message and date range.
| 1 | # Set Up a Gmail Vacation Responder |
| 2 | |
| 3 | > **PREREQUISITE:** Load the following skills to execute this recipe: `gws-gmail` |
| 4 | |
| 5 | Enable a Gmail out-of-office auto-reply with a custom message and date range. |
| 6 | |
| 7 | ## Steps |
| 8 | |
| 9 | 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}'` |
| 10 | 2. Verify settings: `gws gmail users settings getVacation --params '{"userId": "me"}'` |
| 11 | 3. Disable when back: `gws gmail users settings updateVacation --params '{"userId": "me"}' --json '{"enableAutoReply": false}'` |