Automated daily customer win-back campaign with AI offers
Ready for 3.0What this workflow does
This AI workflow has 12 nodes and runs on a schedule (every day). Along the way it connects Google Sheets, Google Gemini Chat Model and Gmail.
How it runs
Trigger: On a schedule (every day).
- Fetch Customer Data from Sheet (Google Sheets): uses Google Sheets
- Filter: keeps only the items that match a condition
- Check if Eligible Customers Found (If): checks a condition and branches into true / false
- Process Each Eligible Customer (Loop Over Items (Split in Batches)): loops over the items in batches
- Set 'Not Found' Status (Edit Fields (Set)): sets 2 fields: system_log, date
- Generate Win-Back Offer (Basic LLM Chain): sends a prompt to an LLM, with model: (LLM Model for Offer Generation); output parser: (Parse Offer JSON)
- Log 'Not Found' in System Log (Google Sheets): append or update
- Log Sent Offer in System Log (Google Sheets): append or update
- Send Win-Back Offer via Email (Gmail): uses Gmail
Services it uses
Other Google Sheets + Gmail templates (2,102) · Other Google Gemini + Google Sheets templates (819) · Other Google Gemini + Gmail templates (518)
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.
Nodes used (10)
- Schedule Trigger
n8n-nodes-base.scheduleTrigger - Google Sheets
n8n-nodes-base.googleSheets - Filter
n8n-nodes-base.filter - If
n8n-nodes-base.if - Loop Over Items (Split in Batches)
n8n-nodes-base.splitInBatches - Basic LLM Chain
@n8n/n8n-nodes-langchain.chainLlm - Google Gemini Chat Model
@n8n/n8n-nodes-langchain.lmChatGoogleGemini - Structured Output Parser
@n8n/n8n-nodes-langchain.outputParserStructured - Gmail
n8n-nodes-base.gmail - Edit Fields (Set)
n8n-nodes-base.set
From the author
Proactively retain customers predicted to churn with this automated n8n workflow. Running daily, it identifies high-risk customers from your Google Sheet, uses Google Gemini to generate personalized win-back offers based on their churn score and preferences,…