Quick overview
This workflow runs every Monday morning to read a shift schedule from Google Sheets, email each security agent a personalized reminder for confirmed shifts that have not been notified yet via Gmail, and then updates the sheet to mark each shift as notified.
How it works
- Runs every Monday at 07:00 on a schedule.
- Reads all rows from your shift schedule in Google Sheets.
- Keeps only shifts where Status is "Confirmed" and the Notified field is empty.
- Sends each matching agent an HTML shift reminder email via Gmail using the row’s date, time, and site details.
- Updates the corresponding Google Sheets row by setting Status to "Notified" and writing today’s date to the Notified column.
Setup
- Connect Google Sheets OAuth2 credentials and Gmail OAuth2 credentials.
- Update the Google Sheets URL in the workflow’s configuration value (sheetUrl).
- Ensure your sheet includes columns for Agent_Name, Email, Shift_Date, Shift_Start, Shift_End, Site, Status, and Notified, and that Status is set to "Confirmed" for shifts that should trigger reminders.