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.
Related Templates
Automate Customer Support & Calendar Bookings with OpenAI GPT and Google Calendar
Website AI Agent with Calendar Integration Categories: AI Agents, Website Integration, Calendar Automation This workfl...
Score Company ICP (Ideal Customer Profile) with Airtop
Automating Company ICP Scoring via LinkedIn Use Case This automation scores companies based on their LinkedIn profile...
Enrich new accounts in Pipedrive using Datagma API
This workflow enriches new accounts in Pipedrive using Datagma API by adding data about ICP (ideal customer profile). In...
🔒 Please log in to import templates to n8n and favorite templates
Workflow Visualization
Loading...
Preparing workflow renderer
Comments (0)
Login to post comments