Automation library · Chat assistants

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.

LargeCalls a model: Gemini

25 stepsLarge: read it before trusting it with anything live
1Branch: places the flow splits
1Loop or waits
3Services it connects to

The flow

Starts it 2Model 2Logic 12Service 9

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

  1. 1On Workflow ErrorError triggerStarts it
  2. 2Daily Churn TriggerSchedule triggerStarts it
  3. 3Google Gemini Sentiment ModelLm Chat Google GeminiModel
  4. 4Notify Slack of ErrorSlackService
  5. 5Set Configuration ParamsSetLogic
  6. 6Sentiment Analyzer AgentAgentModel
  7. 7Read Tenant Data in SheetsGoogle SheetsService
  8. 8Set Sentiment ScoresSetLogic
  9. 9Loop Over TenantsSplit In BatchesLogic
  10. 10Set Weighted Risk ScoreSetLogic
  11. 11Notify Churn Scan CompletionSlackService
  12. 12Set Payment FrictionSetLogic
  13. 13Set Risk Tier LabelSetLogic
  14. 14Set Maintenance FrictionSetLogic
  15. 15Route by Risk TierSwitchLogic
  16. 16Set Lease ProximitySetLogic
  17. 17Update CRM for High RiskGoogle SheetsService
  18. 18Update CRM for Medium RiskGoogle SheetsService
  19. 19Update CRM for Low RiskGoogle SheetsService
  20. 20Set High Risk Alert MessageSetLogic
  21. 21Set Check-in Survey EmailSetLogic
  22. 22Set Early-Bird Email MessageSetLogic
  23. 23Notify High Risk to ManagerSlackService
  24. 24Send Survey Email via GmailGmailService
  25. 25Send Standard Campaign via GmailGmailService

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.