This article is written for G Suite business users, not consumer Gmail users.
You probably know Gmail's out of office setting to set up one-time auto reply when you're away for vacation or sick leave. But do you wonder if this feature can be used to set up recurring out of office reply? It's useful when you want automated replies to your customers informing you are off work every Wednesday, or something. Yes, it sounds like business hours for Gmail.
Unlike the business hour settings in Google Calendar, Gmail does not come with this business hour setting and auto respond incoming messages when you are off hours.
This article shows how Foresight customizes and automates replying after work hour emails for you, so your customers / partners always get your prompt response and instructions.
If you have yet to install Foresight, check out this quick start.Video Demo
Consider the conventional 9-5 work hours schedule. Any after hour incoming emails (from 5pm to the 2nd day 9am and the weekends) are automatically replied.
In the nutshell, I created an automation rule in Foresight running daily to update your vacation responder settings in Gmail. Once the rule is set, auto responses are automatically on after 5pm and off at 9am (Monday to Friday). Also, note that 2 different auto response templates are supplied.
Create Your Recurring Out of Office Auto Reply Rule
Before getting your hands dirty on Foresight, let me explain how the automation works.
How It Works
A Foresight automation rule is composed of a Trigger, one or more Actions. When something triggers, execute a series of actions. Regarding this recurring out of office reply case, a rule is typically a Recurring times trigger, an If action, and multiple Update vacation responder actions.

Don't be intimidated by the cyber jargons. It's easy to understand in human language. Take the demo 9-5 business hour schedule as an example.
- The rule runs at 5pm daily.
- If the day is one of Monday, Tuesday, Wednesday and Thursday, then turn on your Gmail vacation responder with a canned message until 9am the 2nd day.
- If the day is Friday, then turn on Gmail vacation responder with a different canned response until 9am the next Monday.
- If the day is Saturday or Sunday, do nothing since out of office (OOO) is active already.
Once the rule is set, Foresight will periodically activate your OOO status when you are off hours in Gmail. Technically, such automation is to simulate your business hours setting in Gmail.
Configure and build your own rule if you have different schedules. For example, if you don't work on Wednesday and Thursday, then create a rule running every Tuesday 5pm and turning on your Gmail vacation responder for 2 days and 16 hours (until Friday 9am). No If action is needed.
Instructions
Prerequisite: Because the Update vacation responder action used in this use case requires restricted Gmail service access, your domain needs to add Foresight as a trusted third-party app. If you are not the domain administrator, ask your admin to Whitelist Foresight in Admin Console. If you don't do this, You'll be given a permission rejection from Google.

Once Foresight has been trusted by your domain, follow these steps.
- Sign into Foresight app.
- Verify your timezone settings with these steps.
- Click your profile image on the top right of screen.
- Select Settings from the drop down menu.
- Under ACCOUNT tab, Time zone field, verify the detected timezone value matches your time zone.
- In the Rules page, click
to draft a new rule.
- In the Select a trigger page, select Recurring times trigger.
- In the Edit trigger page,
- Select an initial time to start automation. This would be the first time Foresight automatically turned on OOO reply for you.
- Set the recurring schedule. This depends on how frequent you turn on OOO in Gmail. If your OOO mode is only once a week, then repeat every 1 week. If your OOO mode toggles several times a week, then repeat every day.
- (Optional) Set an end time for this recurring automation.
- Click NEXT.
- If your recurring OOO schedule is regular and simple, then in the Select an action page, directly select Update vacation responder. The configuration of this action is explained later.
- Otherwise, in the Select an action page, select If action. The action allows you to configure the rule to perform different actions based on predefined conditions. With If action, you will be able to send different responses and activate OOO mode in irregular patterns.
- In the Edit actions > If tab, configure different routes to initiate your OOO schedule. An If action have at least 2 branches. The screenshot below is the configuration for the 9-5 business hour demo, a branch for Monday to Thursday 5pm, a branch for Friday 5pm and a fallback branch for Saturday and Sunday.
- Create the correct number of branches. Think about the times to activate OOO, and the number of templates.
- Give each branch a name.
- Edit your conditions for each branch. A branch could have more than one condition. In our demo example, Current Day of Week is between 1 and 4 is translated into the day of week when the rule executes is one of Monday, Tuesday, Wednesday and Thursday. Though the rule will execute at 5pm daily, only the executions on these days will pass this Monday to Thursday branch and take the next action defined in this branch.
- Add next actions for branches. For this use case, select Update vacation responder.
- In the Edit actions > Update vacation responder tab, configure your vacation responder behavior similar to Gmail's built-in settings.
- First of all, grant Foresight permission to update your vacation responder settings via Gmail API. Look into the prerequisite section above you cannot grant permission for it.
- Check Enable vacation responder.
- In Start vacation at field, select the
icon. In the drop down menu, select the Current Datetime variable. This date and time is not the time when you're editing this rule, but the time when the recurring rule executes.
- In End vacation field, choose After option. Select the duration when OOO mode would stay active. It requires some math play here. In our demo example, for Monday to Thursday executions, the OOO mode is on at 5pm and expire in 16 hours, i.e. 9am the 2nd day. For Friday 5pm, the OOO mode expire on 2 days and 16 hours, i.e. 9am the following Monday. This is an important option.
- Edit Subject.
- Fill in the response body. This goes your canned template to the sender. Variables are supported by typing {{ in sophisticated use cases.
- The rest 2 checkbox options Only send a response to people in my Contacts or Only send a response to people in my domain are optional.
- When you edited fully the trigger and actions above, click REVIEW.
- Give the rule a name.
- Click SAVE.
- Back to the main Rules page, the just created rule is active like this.
- Now test your rule works as expected by visiting Gmail at key times the OOO mode is configured to be active or inactive. Note Gmail's First day and Last day are Date granularity accurate. Ignore them. Foresight will change your OOO status in Minute granularity.
FAQ
Q: How many out of office emails can I use by Foresight?
A: Unlimited. Foresight doesn't send the out of office emails for you. Foresight turns on and off your vacation responder setting only. It's Gmail that sends these emails.
Q: As an admin, can I set up the out of office setting for all my users?
A: Not possible. Your users will need to sign up Foresight and set up the automation individually.
Takeaways
Building the correct automation for your OOO schedule seems a steep learning curve. But it isn't. Just get your hands dirty and rectify the rules overtime. If you encountered issues or needed advice for your schedule, please leave comments below.
IM LOST trying to use this program – sorry, think I may be being a bit dim
This is soooooo complicated I gave up on it after two hours of trying to simply set my days off as a regular / recurring message in my gmail. I know how to set a vacation message, but I thought this would help me to have a recurring message. But there is no verbal instructions, it is all shown with the mouse clicking on various bits. When it came to verifying everything – it wouldn’t let me do it.
I was very patient and followed the video link numerous times (very slowly). A total waste of time!
Hey John, sorry for the inconvenience. Foresight will be improved in the future to be easier to use. Thanks for your feedback.
This is a great program. I was able to set it up and got my first rule working within an hour.
Is it possible to set different schedules for different employees? Or is this automation for the entire team?
Hey Andy, yes, it’s possible to set different schedules. To do so, they will need to sign up and set up scheduled automation rules individually.
In another words, the automation is for a single user, not the team.
Thank you.
Is it possible to set the rules to NOT run, or NOT change the vacation responder if a vacation response is already set, for example if I am on vacation for two weeks I don’t want my recurring weekend response to be set as I will have already set my vacation message.
Hi Nick, it’s not supported yet. Alternatively, you can disable the automation rule temporarily in the 2 weeks vacation and re-enable it after you’re back. Thank you.
Foresight is not turning the vacation responder on even though it has access, why?
Any other work throughs you can offer?
Please check if your rule setup has a valid start time and duration and checked “Enable vacation responder”. And check if your Gmail vacation responder setting reflects the changes after the rule runs. Thank you.
I have set this up to work through Google voice. When I tested, I sent my google voice number a text and an email to the associated email address. I received the auto response via email but not through the text. Since I can respond to text through email on Google Voice, shouldn’t the auto response also be sent to text?
The auto response from Gmail vacation responder has nothing to do with Google Voice SMS.
Hello I have this set up and functioning as directed. How do I enable this for my entire organization?
Hi Mike, that’s not supported. Foresight can only automate the recurring out of office for individuals. Automation for the entire organization has to be supported by Google by enterprise policies. Please report your feature request to Google. Thank you.
I have created a rule to run the out office message during the weekends and to turn on at 5PM and turn off at 9AM the next day. However, the rule/message does not automatically turn off at 9AM as programmed and instead I have to manually click “End now” on the yellow banner that appears at the top of my inbox. Any idea why this could be happening?
To help you troubleshoot the issue, please contact support@xfanatical.com. Thank you.