Manage subscription renewals with Supabase, Gmail, and a payment API
Ready for 3.0What this workflow does
This workflow has 12 nodes and runs on a schedule (every day at 09:00). Along the way it connects Gmail and Supabase. It also calls jsonplaceholder.typicode.com over HTTP.
How it runs
Trigger: On a schedule (every day at 09:00).
- Get Current Date (Date & Time): formats or calculates dates
- Check Expiring Subscriptions (Supabase): get many
- Check Subscription Active (If): checks a condition and branches into true / false
- Check Expiring Within 3 Days (If): checks a condition and branches into true / false
- Send Renewal Reminder (Gmail): uses Gmail
- Send Payment Info to API (HTTP Request): calls jsonplaceholder.typicode.com (POST)
- Add hasId Flag (Code): runs custom JavaScript code
- Check Payment Status (If): checks a condition and branches into true / false
- Update Subscription Active (Supabase): update
- Send Payment Failure Email (Gmail): uses Gmail
…plus 1 more step. See the full node list below.
Services it uses
HTTP calls to: jsonplaceholder.typicode.com
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 (7)
- Schedule Trigger
n8n-nodes-base.scheduleTrigger - Date & Time
n8n-nodes-base.dateTime - Gmail
n8n-nodes-base.gmail - If
n8n-nodes-base.if - Supabase
n8n-nodes-base.supabase - HTTP Request
n8n-nodes-base.httpRequest - Code
n8n-nodes-base.code
From the author
Quick overview This workflow runs daily to check subscription records in Supabase, email renewal reminders via Gmail for subscriptions expiring within three days, post payment details to an HTTP API, and then update the subscription and send either a renewal…