Draft and review Google review reply emails with Gmail, OpenAI, and Google Sheets
Ready for 3.0What this workflow does
This AI workflow has 15 nodes and runs on Gmail events. Along the way it connects Gmail, Google Sheets and OpenAI Chat Model.
How it runs
Trigger: On Gmail events.
- ⚙️ Your settings (Edit Fields (Set)): sets 7 fields: businessName, ownerEmail, sheetUrl…
- Read what is already logged (Google Sheets): uses Google Sheets
- Keep only the new review alerts (Code): runs custom JavaScript code
- Draft the reply (AI) (Basic LLM Chain): sends a prompt to an LLM, with model: OpenAI model (bring your own key); output parser: Force clean JSON output
- Check the draft (Code): runs custom JavaScript code
- Could we read the review? (If): checks a condition and branches into true / false
- 1 or 2 stars? (If): checks a condition and branches into true / false
- Tell me a review could not be read (Gmail): uses Gmail
- Email me: call before replying (Gmail): uses Gmail
- Email the draft to the owner (Gmail): uses Gmail
…plus 2 more steps. See the full node list below.
Services it uses
Before you upgrade to n8n 3.0
Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.
- Still check Gmail Trigger below v1.4 runs as v1.4 (drafts skipped, max emails per poll) (Watch Gmail for new review alerts).
Nodes used (9)
- Gmail Trigger
n8n-nodes-base.gmailTrigger - Edit Fields (Set)
n8n-nodes-base.set - Google Sheets
n8n-nodes-base.googleSheets - Code
n8n-nodes-base.code - Basic LLM Chain
@n8n/n8n-nodes-langchain.chainLlm - OpenAI Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenAi - Structured Output Parser
@n8n/n8n-nodes-langchain.outputParserStructured - Gmail
n8n-nodes-base.gmail - If
n8n-nodes-base.if
From the author
Quick overview Watches Gmail for Google review alerts, drafts a reply with AI, checks that draft against the email it came from, and sends it to you. Low ratings arrive with a warning to call first. Nothing is ever posted automatically. How it works 1.…