Track gym renewals, inactivity, and check-in streaks with Supabase and WhatsApp

Quick overview This workflow runs daily to pull gym members from Supabase, calculate membership expiry and check-in activity, and send WhatsApp messages for renewal reminders, trainer inactivity alerts, and check-in streak milestone celebrations.

How it works Runs every day on a schedule. Loads configuration values (gym name, Supabase table, WhatsApp phone number ID, renewal window, and inactivity threshold). Fetches all member records from Supabase and calculates days until membership expiry, days since last check-in, and whether a new streak milestone is reached. Sends a WhatsApp renewal reminder to members whose memberships expire within the configured window. Sends a WhatsApp alert to the trainer when a member has been inactive longer than the configured threshold. Sends a WhatsApp celebration message to members who hit a new streak milestone and updates the member record in Supabase to track the last milestone notified.

Setup Create a Supabase table (for example, "members") with fields for member_name, phone_number, membership_expiry, last_checkin_date, current_streak_days, and last_milestone_notified. Add Supabase credentials in n8n and set the members table name in the configuration values. Add WhatsApp Business Cloud credentials, then set your WhatsApp phone number ID and the trainer’s WhatsApp number in the configuration values. Adjust the schedule time, renewal reminder days, and inactivity threshold to match your gym’s process.

0
Downloads
3
Views
8.09
Quality Score
beginner
Complexity
Author:Kanishka Shrivastava (View Original →)
Created:7/29/2026
Updated:9/16/2026

🔒 Please log in to import templates to n8n and favorite templates

Workflow Visualization

Loading...

Preparing workflow renderer

Comments (0)

Login to post comments