Skip to main content

Score churn risk and send retention emails with Google Sheets and Gmail

Workflow preview

Workflow preview
100%
Score churn risk and send retention emails with Google Sheets and Gmail preview
Open on n8n.io

1. Workflow Overview

Who's it for This template is for gyms, fitness studios, and membership based businesses that want to automatically detect at risk members and act before they cancel. Ideal for operations teams and...

Best for

  • Lead Nurturing automation workflows
  • AI Summarization automation workflows
  • advanced n8n builders looking for reusable templates

Tools used

n8n-nodes-base.manualtrigger, n8n-nodes-base.stickynote, n8n-nodes-base.googlesheets, n8n-nodes-base.code, n8n-nodes-base.switch, n8n-nodes-base.set, n8n-nodes-base.gmail, n8n-nodes-base.noop

Source and attribution

This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by Stefan Joulien.

Original n8n.io source

1.1 Workflow description

Title
Score churn risk and send retention emails with Google Sheets and Gmail
Workflow name
Score churn risk and send retention emails with Google Sheets and Gmail

Who's it for

This template is for gyms, fitness studios, and membership-based businesses that want to automatically detect at-risk members and act before they cancel. Ideal for operations teams and retention managers who want to replace manual follow-ups with a systematic, automated process.

How it works

The workflow fetches member records from Google Sheets and passes them through a JavaScript scoring engine that assigns each member a churn risk level: Critical, High, Medium, or Low.

A Switch node routes each member into the appropriate path:

  • Critical and High risk members receive a personalised retention email via Gmail and their action is logged in Google Sheets
  • Medium risk members are logged for later monitoring
  • Low risk members are ignored automatically

How to set up

  1. Copy the sample Google Sheet (link in the sticky note) and connect it to the Google Sheets nodes
  2. Connect your Gmail account to the email nodes
  3. Adjust the scoring logic in the Calculate Churn Risk code node to match your business rules
  4. Replace the manual trigger with a Schedule Trigger for daily automated runs

Requirements

  • Google Sheets account
  • Gmail account
  • Basic understanding of JavaScript to customise the scoring logic

1.2 Logical Blocks

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.

2. Block-by-Block Analysis

Block 1 - When clicking ‘Execute workflow’

Type / Role
n8n-nodes-base.manualTrigger - manualTrigger
Config choices
Version 1

Block 2 - Sticky Note

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 3 - Sticky Note1

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 4 - Sticky Note2

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 5 - Sticky Note3

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 6 - Sticky Note4

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 7 - Fetch Member Data

Type / Role
n8n-nodes-base.googleSheets - googleSheets
Config choices
Version 4.7

Block 8 - Calculate Churn Ris

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 9 - Route by Risk Level

Type / Role
n8n-nodes-base.switch - switch
Config choices
Version 3.3

Block 10 - Prepare Critical Alert

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Block 11 - Prepare High Risk Email

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Block 12 - Format Medium Risk Log

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Block 13 - Send Critical Notification

Type / Role
n8n-nodes-base.gmail - gmail
Config choices
Version 2.1

Block 14 - Send Winback Email

Type / Role
n8n-nodes-base.gmail - gmail
Config choices
Version 2.1

Block 15 - Log Critical Action

Type / Role
n8n-nodes-base.googleSheets - googleSheets
Config choices
Version 4.7

Block 16 - Log High Risk Action

Type / Role
n8n-nodes-base.googleSheets - googleSheets
Config choices
Version 4.7

Block 17 - Log Medium Risk Member

Type / Role
n8n-nodes-base.googleSheets - googleSheets
Config choices
Version 4.7

Block 18 - Ignore Low Risk

Type / Role
n8n-nodes-base.noOp - noOp
Config choices
Version 1

3. Summary Table

Workflow Score churn risk and send retention emails with Google Sheets and Gmail
Complexity advanced
Nodes 18
Categories Lead Nurturing, AI Summarization
Author Stefan Joulien
Published 09 Mar 2026

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/13969/13969.json as the source template for this automation.

  2. 2. Import the template into n8n

    Open n8n, import the downloaded JSON, and review each node before activating the workflow.

  3. 3. Configure credentials and variables

    Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.

  4. 4. Test with sample data

    Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.

  5. 5. Activate and monitor

    Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.

5. General Notes & Resources

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.

Frequently asked questions

What does Score churn risk and send retention emails with Google Sheets and Gmail do?

Who's it for This template is for gyms, fitness studios, and membership based businesses that want to automatically detect at risk members and act before they cancel. Ideal for operations teams and...

What do I need before importing this workflow?

Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.

Can I customize this workflow?

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 Lead Nurturing, AI Summarization use case.