Rescue at-risk gym members using Google Sheets, Gemini, and Twilio SMS
Needs changesWhat this workflow does
This AI workflow has 15 nodes and runs on a schedule (every week). Along the way it connects Google Sheets, Google Gemini Chat Model and Twilio.
How it runs
Trigger: On a schedule (every week).
- Read Members in Sheets (Google Sheets): uses Google Sheets
- Read Attendance in Sheets (Google Sheets): uses Google Sheets
- Calculate Churn Risk Score (Code): runs custom JavaScript code
- If: checks a condition and branches into true / false
- Read Profiles in Sheets (Google Sheets): uses Google Sheets
- Member Retention Agent (AI Agent): runs an AI agent, with model: Google Gemini Model; output parser: Parse Strategy Output
- If: checks a condition and branches into true / false
- Limit: keeps the first few items
- Send SMS via Twilio (Twilio): uses Twilio
- Log Outreach in Sheets (Google Sheets): append
Services it uses
Other Google Gemini + Google Sheets templates (819) · Other Twilio + Google Sheets templates (89) · Other Twilio + Google Gemini templates (13)
Before you upgrade to n8n 3.0
1 thing in this workflow is removed in n8n 3.0. Fix it before you upgrade:
- AI Agent v1 (old agent modes) in Member Retention Agent (v1.7): replace with Latest AI Agent node (Tools Agent). For SQL Agent, use a Postgres or MySQL tool with a recent AI Agent.
Rather not rewrite it? Many of these flows can be rebuilt in Make (free plan).
Published 2026 — 6% of 2026 templates need changes for 3.0. See how template age affects 3.0 readiness →
| Removed in 3.0 | Replace with |
|---|---|
| AI Agent v1 (old agent modes) Member Retention Agent (v1.7) | Latest AI Agent node (Tools Agent). For SQL Agent, use a Postgres or MySQL tool with a recent AI Agent. |
Nodes used (10)
- Schedule Trigger
n8n-nodes-base.scheduleTrigger - Google Sheets
n8n-nodes-base.googleSheets - Code
n8n-nodes-base.code - If
n8n-nodes-base.if - No Operation, do nothing
n8n-nodes-base.noOp - AI Agent
@n8n/n8n-nodes-langchain.agent - Google Gemini Chat Model
@n8n/n8n-nodes-langchain.lmChatGoogleGemini - Structured Output Parser
@n8n/n8n-nodes-langchain.outputParserStructured - Limit
n8n-nodes-base.limit - Twilio
n8n-nodes-base.twilio
From the author
Quick overview Youtube Video: https://youtu.be/YNinqI84rNw This workflow runs weekly to analyze Google Sheets member attendance, calculate churn risk scores, and use Google Gemini to generate personalized re-engagement SMS copy, then sends eligible messages…