Quick overview
This workflow monitors Gmail for new lead replies, uses OpenAI to classify intent and suggest next steps, logs each follow-up to Google Sheets, and emails you alerts, draft replies, and a daily due-today digest.
How it works
- Triggers every minute for new Gmail inbox replies (excluding your own mail, promotions/social, and messages already labeled as logged) and also runs each morning on a schedule.
- Cleans each new email by extracting sender/subject and the latest reply text, and skips newsletters, automated senders, and empty messages.
- Sends the cleaned reply to OpenAI to classify the intent, summarize the message, propose a next step, and extract any follow-up date or referral contact.
- Validates the OpenAI output, assigns a priority/status and a due date (or marks the item as “needs review” when confidence is low or parsing fails), then routes actions based on intent.
- Emails you immediately for hot leads and “needs review” items, and for questions generates a reply draft and saves it to Gmail without sending.
- Appends every processed reply as a new row in a Google Sheets “Follow-ups” tab and then applies a Gmail label to the original message so it is not processed twice.
- Each morning, reads the Google Sheet for open or “needs review” follow-ups due today or overdue and emails you a prioritized list.
Setup
- Connect Gmail credentials with permission to read messages, create drafts, send notification emails, and manage labels.
- Add an OpenAI credential and select a compatible chat model in the OpenAI steps.
- Connect Google Sheets credentials and create a spreadsheet with a tab named “Follow-ups” containing the required header columns used by the append step.
- In Gmail, create a label that matches the configured label name (default: “Follow-up logged”).
- Update the Settings values, including your Google Sheet URL, alert email address, name, business context, timezone, and any thresholds like min_confidence and not_now_days.