Connect Supabase to WhatsApp Business
Ideas
What you can do with Supabase and WhatsApp Business
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 worksTake WhatsApp orders into Supabase
Customers order or ask for a quote on WhatsApp, the items are priced from your Supabase menu, the order is saved and they get a summary back.
See how it worksSend 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.
See how it works Your own logicAny other automation you can describe in words
Your own rules, schedule and AI steps with Supabase and WhatsApp Business, plus any other app. Describe it and your assistant builds it.
See how to build your ownBuild your own
Build any Supabase and WhatsApp Business automation you can describe
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.
For example, ask your assistant
When an order row in Supabase changes to Delayed, send a WhatsApp message to the customer only if they have not been messaged about that order in the last 24 hours.
When a WhatsApp message asks about a booking, look up the phone number in my Supabase bookings table and reply with the booking date, or ask for the booking reference if none is found.
Use cases
Why people connect Supabase and WhatsApp Business
How the two apps work together
- Supabase database webhooks can call a trigger link when rows are inserted or updated, or the script checks a table every few minutes.
- WhatsApp messages reach a trigger link right away through the WhatsApp Business Platform webhook.
- The script reads and writes Supabase rows through its API and sends WhatsApp messages in response.
Apps notify users on WhatsApp
When a row in a Supabase table changes, like an order status, the user gets a WhatsApp update. The app gets messaging without new backend code.
Support bots answer from product data
WhatsApp questions are answered using data in Supabase tables, such as booking or order details. Customers get real answers, not a menu.
Teams log every conversation
Incoming and outgoing WhatsApp messages are stored in a Supabase table. Conversation history can be queried and shown in the app.
Founders run opt-in campaigns
Contacts in a Supabase table who opted in receive a WhatsApp template campaign. Send status is written back per contact.
More apps
Supabase, WhatsApp Business and other apps in one automation
WhatsApp chats stored in Supabase with Slack alerts
Store each incoming WhatsApp message in my Supabase messages table and post in #support on Slack when the AI marks one as urgent.
Payment confirmations on WhatsApp
When a Stripe payment succeeds, update the order in my Supabase orders table to Paid and send the customer a WhatsApp confirmation template.
Answer with embeddings from Supabase
When a WhatsApp question comes in, use OpenAI embeddings to search my Supabase documents table and reply with the best answer.
Setup
Connect Supabase and WhatsApp Business once
Supabase
Developer / Database & backend
- In your Supabase project, open Settings, then API Keys, and copy or create a secret key (it starts with
sb_secret_). - Note your project URL, which looks like
https://<project-ref>.supabase.co. - If an automation needs the Management API, go to Account, then Access Tokens, and generate a new token.
- In the ClickRuntime dashboard, open Connections & secrets and save the project URL and secret key (and the access token, if you made one).
WhatsApp Business
Messaging
- At developers.facebook.com/apps, create a Business app and add the WhatsApp product to it.
- In business.facebook.com, open Business Settings, go to System users and add one. Assign it the app with Manage app and your WhatsApp account with Manage WhatsApp Business accounts.
- Generate a token for that system user, select the app and add
business_management,whatsapp_business_messagingandwhatsapp_business_management, then copy it. - Under WhatsApp, API Setup, note your Phone Number ID and WhatsApp Business Account ID.
- In the ClickRuntime dashboard, open Connections & secrets and save the token as a secret for WhatsApp Business, along with the two IDs.
FAQ
Questions about connecting Supabase and WhatsApp Business
Which Supabase key should I use?
Do I need the WhatsApp Business API?
Why do some messages need an approved template?
Do my tables need a particular structure?
Which Supabase key should it use?
Does it work with Row Level Security?
Can it store media in Supabase Storage?
Related pages
Keep exploring
Tell your assistant what Supabase and WhatsApp Business should do together
Free plan. No credit card.