Quick overview
This workflow checks upcoming Calendly appointments every two hours, uses OpenAI to draft reminder and follow-up emails, sends them via Gmail, and logs whether the customer replied or needed a follow-up in Google Sheets.
How it works
- Runs every 2 hours on a schedule.
- Fetches scheduled events from the Calendly API and iterates through each appointment.
- Filters to appointments starting within the next 24 hours, then fetches invitee details for each event.
- Formats the client and appointment details, generates a short reminder with OpenAI, and sends it to the invitee via Gmail.
- Waits briefly, then searches Gmail for a reply from the invitee’s email address.
- If no reply is found, uses OpenAI to draft a polite follow-up email, sends it via Gmail, and appends a “Follow-Up Sent” record to Google Sheets.
- If a reply is found, appends a “Customer Replied” record with the Gmail thread ID to Google Sheets.
Setup
- Add a Calendly personal access token (HTTP Bearer Auth) and replace
YOUR_CALENDLY_USER_URI in the Calendly request with your user URI.
- Add an OpenAI credential for the reminder and follow-up text generation.
- Connect a Gmail OAuth2 account with permission to send mail and read inbox messages.
- Connect a Google Sheets OAuth2 account and set the target spreadsheet and sheet tabs used for reply and follow-up logging.
- Adjust the schedule interval, 24-hour reminder window, and wait time to match how far in advance you want reminders and how long you want to wait before sending a follow-up.