Templates / Detect at-risk gym clients with Supabase, Gemini, Slack, Gmail, and Sheets

Detect at-risk gym clients with Supabase, Gemini, Slack, Gmail, and Sheets

Ready for 3.0

by WeblineIndia ✓ · 19 views · created 2026-09-07 · Lead Nurturing, AI Summarization

Ready for 3.0. This template uses no nodes that n8n 3.0 removes. No removed nodes, versions or helpers found. Static check, last run 2026-10-19.

What this workflow does

This AI workflow has 17 nodes and runs on a schedule (every day). Along the way it connects Supabase, Slack, Gmail and Google Sheets and 1 more.

How it runs

Trigger: On a schedule (every day).

  1. Load Active Clients from Supabase (Supabase): get
  2. Load Checkins from Supabase (Supabase): get many
  3. Load Weekly Forms from Supabase (Supabase): get many
  4. Merge: merges the data from its input branches
  5. Calculate Client Risk Metrics (Code): runs custom JavaScript code
  6. High Risk Clients (If): checks a condition and branches into true / false
  7. Check Duplicate Alert Window (If): checks a condition and branches into true / false
  8. Prepare Alert and AI Input Payload (Edit Fields (Set)): sets 6 fields: alert_title, coach_slack_text, client_email_subject_seed…
  9. Generate Re Engagement Draft with Gemini (Google Gemini): uses Google Gemini
  10. Parse Draft Response (Code): runs custom JavaScript code

…plus 6 more steps. See the full node list below.

Services it uses

SupabaseSlackGmailGoogle SheetsGoogle Gemini

Before you upgrade to n8n 3.0

Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.

Nodes used (10)

From the author

Quick overview This workflow runs on a daily schedule to detect at-risk gym clients using Supabase activity data, drafts a re-engagement email with Google Gemini, notifies coaches in Slack, emails clients via Gmail, and logs and syncs alert state to Supabase…

Excerpt from WeblineIndia's description on n8n.io.

View the original on n8n.io → Check your own copy

Get the weekly “what broke” email

New templates, newly broken ones, and n8n release changes. One short email a week.

Form not loading? Subscribe here.