Quick overview
This workflow runs daily at 8 AM (or manually), pulls new Google Business Profile review notification emails from Gmail or reviews you paste in, uses OpenAI to draft safe reply suggestions, and saves a single summary as a Gmail draft to you without posting anything publicly.
How it works
- Runs every day at 8 AM or when triggered manually.
- Loads your configuration and either uses built-in sample reviews (test mode), parses reviews you paste into the workflow (paste mode), or fetches recent Google review notification emails from Gmail while skipping messages already labeled as processed.
- Screens each review with rule-based checks to flag legal/refund/safety/personal-data/link/prompt-injection content and only sends safe reviews to OpenAI for reply drafting.
- Uses OpenAI (chat model) with structured output to generate a short suggested public reply and an optional owner note for each eligible review.
- Guards the AI-generated replies by dropping risky drafts (for example refunds, discounts, legal language, or asking to change a review) and inserting [CONFIRM: ...] placeholders for sensitive details like prices, dates, or times.
- Compiles all suggested replies and “reply yourself” items into one summary email and saves it as a Gmail draft addressed to you.
- In Gmail mode, adds a Gmail label to the alert emails that were fully handled so the next run does not draft replies for the same notifications again.
Setup
- Connect a Gmail OAuth2 credential for the Gmail nodes so the workflow can read review alerts, create drafts, and manage labels.
- Add an OpenAI credential for the OpenAI chat model used to draft the replies.
- Update the Config values (at least my_email, business_name, city, keywords, sign_off, offline_contact, and optionally the Gmail search query and processed label name).
- Run once with test_mode set to yes to verify the generated Gmail draft, then set test_mode to no and keep source as gmail (or switch to paste) before activating the schedule.
- Ensure the processed_label value is acceptable in your mailbox, since the workflow creates the label if missing and uses it to mark handled alert emails.