Block 1 - Scheduled Start: Daily Churn Check
- Type / Role
- n8n-nodes-base.scheduleTrigger - scheduleTrigger
- Config choices
- Version 1.2
This workflow is provided as-is. Please review and test before using in production.
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 personalize...
n8n-nodes-base.scheduletrigger, n8n-nodes-base.googlesheets, n8n-nodes-base.filter, n8n-nodes-base.if, n8n-nodes-base.splitinbatches, @n8n/n8n-nodes-langchain.chainllm, @n8n/n8n-nodes-langchain.lmchatgooglegemini, @n8n/n8n-nodes-langchain.outputparserstructured
This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by Onur.
Original n8n.io sourceProactively 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.
This workflow automates the critical process of customer retention by:
created_campaign_date field - you might need to adjust this logic).predicted_churn_score > 0.7 AND created_campaign_date is empty (verify this condition fits your needs).predicted_churn_score and preferred_categories 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.action_taken = SENT_WINBACK_OFFER, the timestamp, and customer_id in the 'SYSTEM_LOG' sheet.user_mail with the generated offer_title as the subject and offer_details as the body.system_log = NOT_FOUND.customer_id, predicted_churn_score (numeric), preferred_categories (string, e.g., ["Books", "Electronics"]), user_mail (string), and potentially created_campaign_date (date/string).system_log (string), date (string/timestamp), and customer_id (string, optional for 'NOT_FOUND' logs).Hours set to 9).1. Fetch Customer Data...: Enter your 'Customer Data' Spreadsheet ID and Sheet Name.5b. Log Sent Offer...: Enter your 'SYSTEM_LOG' Spreadsheet ID and Sheet Name. Verify column mapping.3b. Log 'Not Found'...: Enter your 'SYSTEM_LOG' Spreadsheet ID and Sheet Name. Verify column mapping.2. Filter High Churn Risk...):{{ $json.created_campaign_date.isEmpty() }}. Ensure this field and logic correctly identify customers who should receive the offer based on your campaign strategy. Modify or remove if necessary.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").5c. Send Win-Back Offer...): Select your Gmail OAuth2 credentials.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!
This catalog entry is organized from the workflow JSON. The node-level section below shows the executable blocks available for review before importing the template.
| Workflow | Automated daily customer win-back campaign with AI offers |
|---|---|
| Complexity | advanced |
| Nodes | 17 |
| Categories | Social Media, Multimodal AI |
| Author | Onur |
| Published | 12 May 2025 |
Use the JSON export at /data/workflows/4001/4001.json as the source template for this automation.
Open n8n, import the downloaded JSON, and review each node before activating the workflow.
Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.
Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.
Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.
Review imported nodes carefully before activation. This catalog entry is intended to help you inspect the workflow structure, understand required services, and find related templates faster.
Node names, credentials, schedules, webhook paths, and external service limits may need adjustment for your workspace.
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 personalize...
Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.
Yes. Use the block-by-block analysis and the downloadable JSON to inspect each node, then adjust credentials, prompts, schedules, filters, or destinations for your Social Media, Multimodal AI use case.