Quick Overview
This workflow runs every weekday morning to read open document requests from Google Sheets, uses OpenAI to draft reminder emails in your firm’s tone, sends them via Gmail, and updates the sheet with the last-sent date and reminder count.
How it works
- Runs every weekday at 8am on a schedule.
- Loads rows from the Google Sheets “Requests” tab where Status is set to Open.
- Calculates how many reminders have been sent, how many days have passed since the last email, and whether the next email is a first request, reminder, or final reminder.
- If enough time has passed and the reminder limit is not exceeded, uses OpenAI to generate a short email subject and body for the specific client and document.
- Sends the generated email to the client using Gmail with the configured reply-to address.
- Updates the same Google Sheets row with today’s date in “Last sent” and increments the “Reminders” count.
Setup
- Create a Google Sheet with a “Requests” tab that includes columns Client, Email, Document, Due date, Status, Last sent, Reminders, and ensure open items have Status set to Open.
- Add Google Sheets credentials and paste your spreadsheet ID into the workflow’s Settings values.
- Add Gmail credentials and set the reply-to address in the Settings values.
- Add an OpenAI credential, and (optionally) adjust the tone, daysBetweenReminders, and maxReminders settings to match your reminder policy.