Gym Owner Command Center

Real-time synchronization across n8n Workflows, Google Sheets, Razorpay Webhooks & WhatsApp Cloud API

Total Registered Members
0
Sheet 1: Members
Currently Active
0
Expiry_Date ≥ Today
Expiring Today / In 3 Days
0 / 0
Triggered at 08:00 AM IST
Expired Memberships
0
Needs Renewal Follow-up
Revenue Collected Today
โ‚น0
0 payment(s) today
Pending Payments
0
Awaiting Cash/UPI/Razorpay

Registered Gym Members Directory

Live view of Sheet 1: Members with 1-click renewal and payment actions

Member_ID Name Phone (E.164) Plan Assigned Trainer Joining_Date Expiry_Date Payment WA Consent Status Quick Action
1. Form Trigger → 2. Validate Input → 3. Normalize Indian Phone → 4. Check Duplicate → 5. Calculate Month-End Safe Expiry → 6. Add to Google Sheets → 7. Send Welcome WhatsApp

New Member Registration Form

Triggers n8n Workflow 1 (POST /api/workflows/1/register)

Auto-normalized to 91XXXXXXXXXX & checked for duplicates
Try 2026-01-31 + 1 Month → clamps accurately to 2026-02-28

Workflow 1 Node Execution Trace

Live step-by-step n8n node output & WhatsApp payload preview

Submit the registration form or click a test button to inspect every n8n node execution step.
1. Schedule Trigger (08:00 IST) → 2. Read Members → 3. Calculate Remaining Days → 4. Filter (3 Days & Today) → 5. Check Consent & Reminder_Logs → 6. Send WhatsApp Template → 7. Save Reminder Log

Morning Expiry Reminder Engine

Identifies memberships expiring in 3 days or today, enforces consent & same-day deduplication

Reminder_Logs (Sheet 3 Audit History)

Reminder_ID Member_ID Phone Reminder_Type Sent_Date Delivery_Status

Workflow 2 Execution Result & Idempotency Check

Click "Run Workflow 2 Now" twice in a row to verify duplicate reminders are blocked on the same day

Click "Run Workflow 2 Now" to scan all members and dispatch WhatsApp renewal reminders.
1. Razorpay Webhook / Manual Form → 2. Verify HMAC-SHA256 Signature → 3. Check Duplicate Reference → 4. Find Member → 5. Update Payment Status → 6. Extend Membership Expiry → 7. Save Transaction History → 8. Notify Member

A. Manual Payment Update (Cash / UPI)

For gym owners collecting Cash or UPI at the front desk

Enforces strict idempotency: submitting the same reference twice will be blocked

B. Razorpay Payment Link & HMAC-SHA256 Webhook Simulator

Never marks payment paid on browser redirect โ€” verifies raw body HMAC-SHA256 signature

Workflow 3 Security & Execution Trace

Displays HMAC-SHA256 verification, expiry extension & idempotency checks

Process a manual Cash/UPI payment or fire a signed Razorpay webhook to view the trace.

Sheet 2: Payments Transaction History

Payment_ID Member_ID Amount Method Status Date Razorpay_Reference Processed
1. Schedule Trigger (08:30 IST) → 2. Read Members → 3. Read Payments → 4. Calculate 8 Core KPIs → 5. Generate Clean HTML Report → 6. Send Email to Gym Owner (Gmail)

Automated Morning Email Report Preview

Exact HTML email dispatched via Gmail node to owner@ironfitgym.in

Calculated Statistics JSON & Node Trace

Output from Workflow 4 Code Node

Google Sheets 4-Tab Database Structure

Inspect live rows or download ready-to-import CSV templates for your Google Sheet

Sheet 1: Members

โฌ‡ Download This Sheet as CSV
1. MongoDB Atlas SRV Connection → 2. Auto-Index Collections (Unique Member_ID & Phone) → 3. Real-Time Write-Through on Every n8n Workflow → 4. Two-Way Push / Pull Sync with Google Sheets CSVs

๐Ÿƒ Connect to MongoDB Atlas Cluster

Paste your MongoDB Atlas connection string (mongodb+srv://...) to enable real-time cloud persistence

Connected to Atlas Cloud
In MongoDB Atlas: go to Database → Connect → Drivers (Node.js) and copy your connection string.

๐ŸŒ Backend API Server URL (Vercel / Render Connection)

Leave blank to use the built-in Vercel Serverless Backend (/api/*), or paste your Render Backend URL (e.g. https://gym-manager-automation-system.onrender.com)

Atlas Cluster Status & Cloud Collection Counts

Every registration, payment webhook, reminder, and trainer update automatically writes through to these 7 Atlas collections

members
0
Unique Phone & ID
payments
0
Razorpay / Cash / UPI
reminder_logs
0
WhatsApp Audit
trainers
0
Coach Accounts
member_profiles
0
Workout & Diet Plans
gym_settings
0
Tenant Config

Importable n8n Workflow JSON Files

Import directly into your n8n instance via Workflows → Import from File

Workflow 1
New Member Registration

Webhook → Validate & Normalize → Duplicate Check → Month-End Safe Expiry → Sheets → WhatsApp

โฌ‡ Download WF1 JSON
Workflow 2
Membership Expiry Reminder

08:00 IST Cron → Read Members → Filter 3d & 0d → Check Consent & Logs → WhatsApp Template

โฌ‡ Download WF2 JSON
Workflow 3
Payment Processing

Razorpay Webhook / Manual → HMAC-SHA256 Verify → Idempotency Guard → Extend Expiry → Receipt

โฌ‡ Download WF3 JSON
Workflow 4
Daily Gym Report

08:30 IST Cron → Read Members & Payments → Compute 8 KPIs → HTML Email → Gmail Owner

โฌ‡ Download WF4 JSON

System Audit Trail & Workflow Execution Logs

Every registration, reminder, webhook verification, and report execution is logged here

Sheet 4: Gym_Settings Configuration

Multi-tenant per-gym configuration stored in Google Sheets

Commercial SaaS Packaging & Unit Economics

Reusable multi-gym deployment blueprint for local fitness centers

One-Time Client Setup Fee
โ‚น10,000 โ€“ โ‚น15,000 / gym (Example Initial Setup Fee)
  • Dedicated Google Sheet 4-Tab Database cloned on Gym's Google Account
  • Meta WhatsApp Business Cloud API configuration & 4 Template approvals
  • Razorpay Webhook & HMAC-SHA256 secret configuration
  • 4 Production n8n Workflows + Staff Training & Handover
Optional Monthly AMC / Retainer
โ‚น1,500 โ€“ โ‚น2,500 / month
  • Managed n8n VPS hosting, uptime monitoring & error alerts
  • Monthly Google Sheets backup & template adjustments
  • Estimated Monthly Infrastructure Cost per Gym: ~โ‚น400 โ€“ โ‚น850/month (VPS share + Meta Utility conversations)