# Score tenant churn risk with Google Sheets and Gemini: n8n workflow

> Started by a clock, and works across Gmail, Google Sheets and Slack. It hands the judgement calls to Gemini.

Source: https://millionrounds.com/workflow/score-tenant-churn-risk-with-google-sheets-and-gemini (Millionrounds; every figure on the page links to its filing or article)

[Automation library](https://millionrounds.com/workflows) · [Chat assistants](https://millionrounds.com/workflows?category=Chat+assistants#library)

# Score tenant churn risk with Google Sheets and Gemini

Started by a clock, and works across Gmail, Google Sheets and Slack. It hands the judgement calls to Gemini. 25 steps, 1 branch, 1 loop or waits: large, and worth reading before you trust it with anything live.

Large Calls a model: Gemini

[Download free](https://millionrounds.com/login?next=%2Fapp%2Fworkflow%2Fscore-tenant-churn-risk-with-google-sheets-and-gemini)

**25 steps** Large: read it before trusting it with anything live

**1** Branch: places the flow splits

**1** Loop or waits

**3** Services it connects to

## The flow

Starts it 2 Model 2 Logic 12 Service 9

The steps in the order they run, from what starts it.

- 1 **On Workflow Error** Error trigger *Starts it*
- 2 **Daily Churn Trigger** Schedule trigger *Starts it*
- 3 **Google Gemini Sentiment Model** Lm Chat Google Gemini *Model*
- 4 **Notify Slack of Error** Slack *Service*
- 5 **Set Configuration Params** Set *Logic*
- 6 **Sentiment Analyzer Agent** Agent *Model*
- 7 **Read Tenant Data in Sheets** Google Sheets *Service*
- 8 **Set Sentiment Scores** Set *Logic*
- 9 **Loop Over Tenants** Split In Batches *Logic*
- 10 **Set Weighted Risk Score** Set *Logic*
- 11 **Notify Churn Scan Completion** Slack *Service*
- 12 **Set Payment Friction** Set *Logic*
- 13 **Set Risk Tier Label** Set *Logic*
- 14 **Set Maintenance Friction** Set *Logic*
- 15 **Route by Risk Tier** Switch *Logic*
- 16 **Set Lease Proximity** Set *Logic*
- 17 **Update CRM for High Risk** Google Sheets *Service*
- 18 **Update CRM for Medium Risk** Google Sheets *Service*
- 19 **Update CRM for Low Risk** Google Sheets *Service*
- 20 **Set High Risk Alert Message** Set *Logic*
- 21 **Set Check-in Survey Email** Set *Logic*
- 22 **Set Early-Bird Email Message** Set *Logic*
- 23 **Notify High Risk to Manager** Slack *Service*
- 24 **Send Survey Email via Gmail** Gmail *Service*
- 25 **Send Standard Campaign via Gmail** Gmail *Service*

## How it's built

- **Starts on:** A clock
- **Steps:** 25, with 1 branch, 1 loop or waits
- **Size:** Large: read it before trusting it with anything live
- **Connects to:** Gmail, Google Sheets, Slack
- **Model:** Gemini

## Questions

What does it need to run?

An n8n account, plus your own Gmail, Google Sheets and Slack accounts, and a key for Gemini. You connect your own accounts after importing it; none are included.

What starts it?

It starts on a clock.

Does it use AI?

Yes. It calls Gemini. Model calls are billed by the provider, not by n8n.

How long does it take to set up?

Take your time. At 25 steps it is large: read it before trusting it with anything live.

How do I import it?

Copy the workflow, open a new workflow in n8n and paste. The steps appear on the canvas, ready for your own accounts.

**Before you run it**

Nothing here has been tested by us. It is somebody's working automation, read and described from its own steps. Treat the connections it wants as a list of accounts it will touch, and read the 25 steps before you point it at anything that matters.

## Run it in n8n

- **Create your n8n account** Free to start. n8n is where the workflow runs. [Create an n8n account ↗](https://millionrounds.com/n8n)
- **Download the workflow** Free with a Millionrounds account. [Download free](https://millionrounds.com/login?next=%2Fapp%2Fworkflow%2Fscore-tenant-churn-risk-with-google-sheets-and-gemini)
- **Paste it into n8n** Open a new workflow in n8n and paste. Then connect your own accounts.

Stored with the author's traces removed: canvas notes, instance identifiers, saved credential names and any live document they had left behind.

## Connects to

Each opens the other workflows that use it.

[Gmail](https://millionrounds.com/workflows?service=Gmail#library)[Google Sheets](https://millionrounds.com/workflows?service=Google+Sheets#library)[Slack](https://millionrounds.com/workflows?service=Slack#library)

## Workflows like it

Also chat assistants, with the same services where possible, closest in size first.

- [**AI email analyzer: Process PDFs, images & save** 25 steps · calls a model · Email, Google Drive](https://millionrounds.com/workflow/ai-email-analyzer-process-pdfs-images-and-save)
- [**AI email triage and smart auto-responder with OpenAI and Gmail** 25 steps · calls a model · Email, Gmail](https://millionrounds.com/workflow/ai-email-triage-and-smart-auto-responder-with-openai-and-gma)
- [**AI email triage and smart auto-responder with OpenAI and Gmail** 25 steps · calls a model · Email, Gmail](https://millionrounds.com/workflow/ai-email-triage-and-smart-auto-responder-with-openai-and-gma-3)
- [**AI email triage and smart auto-responder with OpenAI and Gmail** 25 steps · calls a model · Email, Gmail](https://millionrounds.com/workflow/ai-email-triage-and-smart-auto-responder-with-openai-and-gma-2)
- [**Analyze Pinterest keyword shelves with Bright Data and OpenAI** 25 steps · calls a model · Google Docs, Slack](https://millionrounds.com/workflow/analyze-pinterest-keyword-shelves-with-bright-data-and-opena)
- [**Analyze legislative policies and route compliance actions** 25 steps · calls a model · Google Sheets, Slack](https://millionrounds.com/workflow/analyze-legislative-policies-and-route-compliance-actions)
