AutomationMart
Home/Browse/Automated daily customer win-back campaign with AI offers
n8n

Automated daily customer win-back campaign with AI offers

n8nn8n12 modulesv1.0
GmailGoogle SheetsGemini

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, sends these offers via Gmail, and logs all actions for tracking. What does this workflow do? This workflow automates the critical process of customer retention by: Running automatically every day on a schedule you define. Fetching customer

At a glance

Automated daily customer win-back campaign with AI offers is a ready-made n8n workflow you import as a workflow JSON file — no build required. It connects Gmail, Google Sheets, Gemini. It's free to download. Follow the 5-step import below to go live in minutes.

Platform
n8n
Connects
Gmail, Google Sheets, Gemini
Modules
12
Price
Free
Version
v1.0
Automated daily customer win-back campaign with AI offers workflow diagram

About this workflow

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, sends these offers via Gmail, and logs all actions for tracking. What does this workflow do? This workflow automates the critical process of customer retention by: Running automatically every day on a schedule you define. Fetching customer data from a designated Google Sheet containing metrics like predicted churn scores and preferred categories. Filtering to identify customers with a high churn risk (score > 0.7) who haven't recently received a specific campaign (based on the createdcampaigndate field - you might need to adjust this logic). Using Google Gemini AI to dynamically generate one of three types of win-back offers, personalized based on the customer's specific churn score and preferred product categories: Informational: (Score 0.7-0.8) Highlights new items in preferred categories. Bonus Points: (Score 0.8-0.9) Offers points for purchases in a target category (e.g., Books). Discount Percentage: (Score 0.9-1.0) Offers a percentage discount in a target category (e.g., Books). Sending the personalized offer directly to the customer via Gmail. Logging each sent offer or the absence of eligible customers for the day in a separate 'SYSTEMLOG' Google Sheet for monitoring and analysis. Who is this for? CRM Managers & Retention Specialists: Automate personalized outreach to at-risk customers. Marketing Teams: Implement data-driven retention campaigns with minimal manual effort. E-commerce Businesses & Subscription Services: Proactively reduce churn and increase customer lifetime value. Anyone using customer data (especially churn prediction scores) who wants to automate personalized retention efforts via email. Benefits Automated Retention: Set it up once, and it runs daily to engage at-risk customers automatically. AI-Powered Personalization: Go beyond generic offers; tailor messages based on churn risk and customer preferences using Gemini. Proactive Churn Reduction: Intervene before customers leave by addressing high churn scores with relevant offers. Scalability: Handle personalized outreach for many customers without manual intervention. Improved Customer Loyalty: Show customers you value them with relevant, timely offers. Action Logging: Keep track of which customers received offers and when the workflow ran. How it Works 1. Daily Trigger: The workflow starts automatically based on the schedule set (e.g., daily at 9 AM). 2. Fetch Data: Reads all customer data from your 'Customer Data' Google Sheet. 3. Filter Customers: Selects customers where predictedchurnscore > 0.7 AND createdcampaigndate is empty (verify this condition fits your needs). 4. Check for Eligibility: Determines if any customers passed the filter. 5. IF Eligible Customers Found: Loop: Processes each eligible customer one by one. Generate Offer (Gemini): Sends the customer's predictedchurnscore and preferredcategories to Gemini. Gemini analyzes these and the defined rules to create the appropriate offer type, value, title, and detailed message, returning it as structured JSON. Log Sent Offer: Records actiontaken = SENTWINBACKOFFER, the timestamp, and customerid in the 'SYSTEMLOG' sheet. Send Email: Uses the Gmail node to send an email to the customer's usermail with the generated offertitle as the subject and offerdetails as the body. 6. IF No Eligible Customers Found: Set Status: Creates a record indicating systemlog = NOTFOUND. Log Status: Records this 'NOTFOUND' status and the current timestamp in the 'SYSTEMLOG' sheet. n8n Nodes Used Schedule Trigger Google Sheets (x3 - Read Customers, Log Sent Offer, Log Not Found) Filter If SplitInBatches (Used for Looping) Langchain Chain - LLM (Gemini Offer Generation) Langchain Chat Model - Google Gemini Langchain Output Parser - Structured Set (Prepare 'Not Found' Log) Gmail (Send Offer Email) Prerequisites Active n8n instance (Cloud or Self-Hosted). Google Account with access to Google Sheets and Gmail. Google Sheets API Credentials (OAuth2): Configured in n8n. Two Google Sheets: 'Customer Data' Sheet: Must contain columns like customerid, predictedchurnscore (numeric), preferredcategories (string, e.g., ["Books", "Electronics"]), usermail (string), and potentially createdcampaigndate (date/string). 'SYSTEMLOG' Sheet: Should have columns like systemlog (string), date (string/timestamp), and customerid (string, optional for 'NOTFOUND' logs). Google Cloud Project with the Vertex AI API enabled. Google Gemini API Credentials: Configured in n8n (usually via Google Vertex AI credentials). Gmail API Credentials (OAuth2): Configured in n8n with permission to send emails. Setup 1. Import the workflow JSON into your n8n instance. 2. Configure Schedule Trigger: Set the desired daily run time (e.g., Hours set to 9). 3. Configure Google Sheets Nodes: Select your Google Sheets OAuth2 credentials for all three Google Sheets nodes. 1. Fetch Customer Data...: Enter your 'Customer Data' Spreadsheet ID and Sheet Name. 5b. Log Sent Offer...: Enter your 'SYSTEMLOG' Spreadsheet ID and Sheet Name. Verify column mapping. 3b. Log 'Not Found'...: Enter your 'SYSTEMLOG' Spreadsheet ID and Sheet Name. Verify column mapping. 4. Configure Filter Node (2. Filter High Churn Risk...): Crucially, review the second condition: {{ $json.createdcampaigndate.isEmpty() }}. Ensure this field and logic correctly identify customers who should receive the offer based on your campaign strategy. Modify or remove if necessary. 5. Configure Google Gemini Nodes: Select your configured Google Vertex AI / Gemini credentials in the Google Gemini Chat Model node. Review the prompt in the 5a. Generate Win-Back Offer... node to ensure the offer logic matches your business rules (especially category names like "Books"). 6. Configure Gmail Node (5c. Send Win-Back Offer...): Select your Gmail OAuth2 credentials. 7. Activate the workflow. 8. Ensure your 'Customer Data' and 'SYSTEMLOG' Google Sheets are correctly set up and populated. The workflow will run automatically at the next scheduled time. This workflow provides a powerful, automated way to engage customers showing signs of churn, using personalized AI-driven offers to encourage them to stay. Adapt the filtering and offer logic to perfectly match your business needs!

n8n

How to import this n8n workflow

  1. 1

    Download the workflow JSON file after purchase.

  2. 2

    Open n8n → click the menu → Import from File.

  3. 3

    Select the downloaded JSON and import.

  4. 4

    Set up credentials for each node that requires them.

  5. 5

    Click Execute Workflow to test, then activate.

Setup guide

Setup guide included

Purchase to unlock the full step-by-step guide

Related N8n workflows

Record Wave transactions for new Google Sheets rows

This template shows how to export your bank or credit card statements to Wave. Every time a new row of expense (or income) is added to your Google Sheets spreadsheet, Make will automatically create an accounting transaction in Wave. The template uses this [example spreadsheet](https://docs.google.com/spreadsheets/d/1Lkltj7IHbQY5afWRBKPelup80jfgPV7pRLGMUpL4K6k/edit#gid=2109159956).

Free

Save Relatel Calls to a Google Sheets spreadsheet

Every time a new call is received in Relatel, Make will automatically add that message to your Google Sheets spreadsheet as a new row. The template uses [this example spreadsheet.](https://docs.google.com/spreadsheets/d/1rZxmW0-pVxScq-NLHNun3EVb2VdhTE16EOCUoWKDo6o/edit?usp=sharing)

Free

Create an Emma audience member from new Google Sheets rows

Every time a new row is added to your Google Sheets spreadsheet, Make will automatically create an audience member in Emma.

Free

Sync ActiveCampaign analytics to Google Sheets

Automatically sync your ActiveCampaign analytics to Google Sheets to enhance your marketing campaigns. This template transfers key performance metrics every Friday, allowing you to access fresh insights at the start of each week. Optimize your strategies with up-to-date data, reduce manual tasks, and improve decision-making efficiency. Ideal for teams looking for a streamlined approach to campaign tracking and analysis. The scenario runs every Friday (feel free to change the schedule if needed).

Free

Landing Page Analysis & Optimization with Claude's 4-Agent AI System

AI Landing Page Analyzer & Optimizer Transform your landing page audits into a powerful lead generation machine with this professional n8n workflow powered by 4 specialized AI agents. What It Does This workflow analyzes any landing page and delivers a comprehensive, $2,000-value audit report in under 90 seconds. Perfect for agencies, consultants, and SaaS companies looking to generate high-quality leads while showcasing their expertise. 🤖 Four Specialized AI Agents 1. Design Cri

Free

Generate SWOT analysis reports with OpenAI, Google Sheets & APITemplate PDF Export

SWOT Analysis Generator That Produces PDF Reports In n8n Want to skip the manual work and instantly generate SWOT analyses for your business plans, investor decks, or strategy docs? 🚀 This workflow lets you automate the entire SWOT (Strengths, Weaknesses, Opportunities, Threats) process—using AI and no-code tools! Whether you're using this for yourself or creating documents for clients, this workflow will save you hours of time and help identify the key components of growing any business.

Free

Create SEO blog drafts in WordPress from trending topics with Perplexity and HuggingFace

Automatically discover trending developer and security topics, generate SEO-optimized blog posts, and publish them to WordPress as drafts — complete with AI-generated featured images. How it works 1. Discover trends — Perplexity AI identifies the hottest topic from the last 24-48 hours 2. Queue topics — Topics are saved to Google Sheets for tracking and management 3. Generate content — Perplexity creates complete blog posts with titles, sections, keywords, and meta descriptions

Free

Workflow error logging and alerts with Google Sheets and Gmail

What this workflow does This workflow creates a comprehensive error monitoring system for your n8n instance by automatically capturing workflow failures, logging them to Google Sheets, and sending immediate email notifications. Step by step: 1. Error Trigger automatically activates whenever any workflow in your n8n instance encounters an error or failure 2. Google Sheets - Create Error Log captures and stores comprehensive error details in a spreadsheet including workflow information, node detai

Free

Reviews

No reviews yet

Be the first to buy and share your experience.

Leave a review

Sign in to share your experience with this workflow.

Log in to review
Free
No ratings yet

Create a free account to purchase workflows.

  • JSON blueprint — instant download
  • Setup guide PDF included
  • 5 downloads · valid 30 days
  • Works with n8n

Need help setting this up?

Book a 3-hour live setup session with an Agility consultant.

₹2,499/ session
3 hrs · video call
  • Configure live on Google Meet / Zoom
  • Free follow-up if workflow has defects
  • Platform expert assigned to you
Book installation session
Free