Quick overview
This workflow manages paid WhatsApp VIP group access by reacting to Stripe subscription events, monitoring joins with Supergreen, tracking members in Google Sheets, and notifying admins in Slack, including grace-period handling, automated removals, daily roster audits, and error alerting.
How it works
- Triggers on Stripe subscription created/updated/deleted events, deduplicates retries, fetches the Stripe customer, and normalizes the member’s WhatsApp phone number and subscription status.
- For active or trialing subscriptions, attempts to add the member to the WhatsApp group via Supergreen and either sends a welcome DM (direct add) or fetches and DMs a private invite link (privacy fallback), then upserts the member as Active in Google Sheets and logs to Slack.
- For past_due subscriptions, creates a Stripe Billing Portal session, DMs a 48-hour payment-update warning via Supergreen, and records Past Due plus the grace expiry timestamp in Google Sheets.
- For canceled/unpaid/deleted subscriptions, removes the member from the WhatsApp group via Supergreen, DMs an exit/rejoin message, updates Google Sheets to Removed, and posts a churn alert to Slack.
- Triggers on Supergreen participant_joined events for the VIP group, checks the joiner’s phone against the Google Sheets ledger, welcomes authorized members in the group and marks them joined, or removes unauthorized joiners, DMs the signup link, and alerts Slack about a possible invite-link leak.
- Runs daily at 08:00 to pull the live WhatsApp group roster via Supergreen, compares it to the Google Sheets ledger, evicts expired-grace or unlisted members with a WhatsApp notification, syncs the sheet, and posts either eviction details or a clean audit digest to Slack.
- Triggers on workflow errors and posts the failing workflow/node and error message to a Slack ops channel.
Setup
- Install and configure the n8n community node n8n-nodes-supergreen, connect your Supergreen account, and ensure the connected WhatsApp number is a group admin of the target VIP WhatsApp group.
- Add credentials for Stripe, Google Sheets (OAuth2), and Slack (OAuth2), and ensure Stripe can send subscription webhooks to your n8n instance.
- Create a Google Sheet with a Members tab and the columns used by the workflow (at minimum: customerId, subscriptionId, phone, memberName, email, planName, status, accessMethod, inGroup, graceExpiresAt, joinedAt, updatedAt).
- Replace placeholders like SET_WHATSAPP_GROUP_ID, SET_GOOGLE_SHEET_ID, SET_SLACK_CHANNEL_ID, and SET_ADMIN_PHONES_CSV, and set your checkout and billing/return URLs in the configuration steps.
- Collect and store the subscriber’s WhatsApp phone number in Stripe (for example via Checkout phone collection or customer/subscription metadata) so the workflow can match members by E.164 digits.
Requirements
- Supergreen API account (https://supergreen.cc) with the n8n-nodes-supergreen community node installed and a connected WhatsApp number set as Group Admin in your VIP group.
Customization
- Adjust the past_due grace window (default 48 hours), customize welcome and win-back DM copy, or swap Google Sheets for Airtable or Postgres as your paid-member ledger.