On a schedule
Send WhatsApp reminders for due dates in Supabase
People with a fee, renewal or appointment coming up get a WhatsApp reminder, and the row is marked so they aren't reminded twice.
- Runs
- On a schedule
- Apps
- Supabase, WhatsApp Business
- AI
- Not needed
- Access
- Supabase read+write; WhatsApp messaging
Send this to your assistant
Create a ClickRuntime automation: every morning, find rows in our Supabase renewals table due in 3 days that haven't been reminded, send each person our approved WhatsApp reminder, and mark the row reminded.
First time? Adding ClickRuntime to your assistant takes about two minutes.
Why use it
Why teams use this automation
Membership organisations, clinics and subscription businesses lose money and goodwill when people forget a renewal or an appointment. The dates are already in the database, but reminders depend on someone running a query and sending messages.
Reminding each person on WhatsApp a few days before the date, straight from your Supabase records, cuts missed payments and no-shows without anyone working through a list.
What you get out of it
Fewer missed payments and visits
A timely reminder on WhatsApp gets read and acted on.
Straight from your data
Due dates come from your own table, so there's no list to maintain.
Never twice
Each row is marked reminded, so nobody is pestered.
Your approved wording
Reminders use your template, with the person's details filled in.
How it works
What happens, step by step
Every morning it asks Supabase for rows due in three days that haven't been reminded.
Each person gets your approved WhatsApp reminder with their name and date.
The row is marked reminded so the same person isn't messaged again.
Before it runs live
- Connect Supabase
- Connect WhatsApp Business
What you get
Build your own
Need it to work differently?
Your own rules
Conditions, thresholds, filters and exceptions, written the way you'd explain them to a colleague.
Any number of apps
One automation can read from one app and update several others. Over 248 apps are ready, and anything with an API works too.
AI where it helps
Summaries, classification, extraction and drafts use ClickRuntime's built-in AI, with no extra key.
On a schedule or on each event
Runs as often as every 5 minutes, or the moment an app sends an event, and keeps track of what it already handled.
Changes you can ask for
- Run it at a different time, more or less often, or only on weekdays
- Add an AI step, for example to summarize, sort or draft a reply
- Add another app, for example also send it to Slack
- Combine it with other Supabase and WhatsApp Business steps into one automation
Under the hood
The code that runs this automation
from datetime import date, timedelta
from clickruntime import on_trigger, credentials, http
TABLE = "renewals"
SUPABASE_URL = "https://your-project.supabase.co"
sb = lambda: {"apikey": credentials.secret("SUPABASE_SECRET_KEY"), "Authorization": f"Bearer {credentials.secret('SUPABASE_SECRET_KEY')}"}
WA = "https://graph.facebook.com/v20.0/your-phone-number-id/messages"
def wa_template(to, name, params):
body = {"messaging_product": "whatsapp", "to": to, "type": "template", "template": {"name": name, "language": {"code": "en"},
"components": [{"type": "body", "parameters": [{"type": "text", "text": str(p)} for p in params]}]}}
return http.post(WA, headers={"Authorization": f"Bearer {credentials.secret('WHATSAPP_TOKEN')}"}, json=body).json()
@on_trigger
def run(event):
due = (date.today() + timedelta(days=3)).isoformat()
rows = http.get(f"{SUPABASE_URL}/rest/v1/{TABLE}", headers=sb(),
params={"due_date": f"eq.{due}", "reminded": "is.false", "select": "id,name,phone,due_date"}).json()
sent = 0
for r in rows:
res = wa_template(r["phone"], "renewal_reminder", [r["name"], r["due_date"]])
if "messages" in res:
http.patch(f"{SUPABASE_URL}/rest/v1/{TABLE}", headers=sb(), params={"id": f"eq.{r['id']}"}, json={"reminded": True})
sent += 1
return {"due": len(rows), "sent": sent}FAQ
Common questions
How far ahead are reminders sent?
Can it remind people who missed an appointment?
What columns are needed?
What permissions does it need?
Does it need AI?
How many runs does it use?
Can I change how it works?
Related
You might also like
Answer WhatsApp questions from your Supabase knowledge base
Customers who message you on WhatsApp get an answer drawn from the docs or catalogue in your Supabase database, and you're emailed the questions it couldn't answer.
See how it worksLog WhatsApp requests in Supabase by category and urgency
Every WhatsApp request is sorted by type and urgency, saved in your Supabase table and acknowledged, with urgent ones emailed to you.
See how it worksReply to new leads on WhatsApp in a matching tone
New leads saved in Supabase get a WhatsApp reply chosen to match the tone of their message, and the lead is marked as contacted.
See how it worksKeep exploring
Set up “Send WhatsApp reminders for due dates in Supabase” from your assistant
Copy the prompt above, or connect your assistant first. Free plan, no credit card.