Win back lapsed clients with OpenAI, Google Sheets and Gmail
Ready for 3.0What this workflow does
This AI workflow has 37 nodes and runs on a schedule (every week at 09:00) (plus 2 other triggers). Along the way it connects Gmail, Google Sheets and OpenAI Chat Model.
How it runs
Trigger: On a schedule (every week at 09:00) (plus 2 other triggers).
- Configure Your Settings (Edit Fields (Set)): sets 14 fields: googleSheetId, testMode, businessName…
- Build Failure Alert (Code): runs custom JavaScript code
- Is This A Client Reply? (If): checks a condition and branches into true / false
- Alert Staff That It Stopped (Gmail): uses Gmail
- Read Clients For Replies (HTTP Request): calls an HTTP API
- Check Your Settings (Code): runs custom JavaScript code
- Match Replies To Clients (Code): runs custom JavaScript code
- Read Sheet As Displayed (HTTP Request): calls an HTTP API
- Classify Each Reply With AI (Basic LLM Chain): sends a prompt to an LLM, with model: OpenAI Model For Replies
- Pair Each Reply With Its Label (Merge): merges the data from its input branches
…plus 22 more steps. See the full node list below.
Services it uses
Other Google Sheets + Gmail templates (2,102) · Other OpenAI + Google Sheets templates (2,011) · Other OpenAI + Gmail templates (1,623)
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) (Check For Client Replies).
- Code node: the task timeout drops from 300s to 60s. Test with a realistic data volume.
Nodes used (12)
- Schedule Trigger
n8n-nodes-base.scheduleTrigger - Gmail Trigger
n8n-nodes-base.gmailTrigger - Edit Fields (Set)
n8n-nodes-base.set - If
n8n-nodes-base.if - Code
n8n-nodes-base.code - HTTP Request
n8n-nodes-base.httpRequest - Google Sheets
n8n-nodes-base.googleSheets - Basic LLM Chain
@n8n/n8n-nodes-langchain.chainLlm - OpenAI Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenAi - Merge
n8n-nodes-base.merge - Gmail
n8n-nodes-base.gmail - Error Trigger
n8n-nodes-base.errorTrigger
From the author
Quick overview This workflow runs every Monday, reads a client list from Google Sheets, uses an OpenAI chat model to draft personalized win-back messages, and sends them via Gmail while updating the sheet and emailing staff a delivery summary. How it works 1.…