WhatsApp Lab Report Status Automation with OpenAI & Supabase
WhatsApp Lab Report Status Automation with OpenAI & Supabase
Regular price
£42.99
Regular price
£42.99
Sale price
Unit price
/
per
⬇
Instant Digital Download
∞
Unlimited Downloads
★
Lifetime Access in Your Account
Couldn't load pickup availability
🔥
128+ Sold
Popular with n8n builders
⚡
23 people viewing
High interest right now
✅
9 added today
Fast-moving digital product
WhatsApp Lab Report Status Automation with OpenAI & Supabase
Regular price
£42.99
Regular price
£42.99
Sale price
Unit price
/
per
Let patients check WhatsApp lab report status (and get the PDF) with OpenAI + Supabase—fully automated
This n8n workflow connects WhatsApp Business Cloud with OpenAI and Supabase/PostgreSQL to let patients request lab report status or receive a ready report PDF in English, Urdu, or Roman Urdu. It also enforces access control by matching the sender’s WhatsApp number to an authorized number stored with each report.
What this workflow does
- Receives WhatsApp text messages and ignores non-text or invalid messages.
- Loads session context from Supabase, then uses OpenAI to classify intent (status check, send PDF, or general query), extract a Report ID or full patient name, and detect reply language.
- Normalizes identifiers and can reuse recently verified report context for short follow-ups.
- Looks up matching report records in Supabase and applies access control by verifying the incoming WhatsApp number matches authorized_whatsapp on the report.
- Status check reply: responds with “ready” or “pending” based on the report_status field.
- PDF delivery: when authorized and the report is ready, validates the PDF URL host, downloads the PDF over HTTPS, and sends it back to the same WhatsApp number as a document.
- General questions: uses OpenAI with PostgreSQL chat memory to draft a short WhatsApp reply in the user’s language.
Use cases
- A clinic patient messages their Report ID and receives ready/pending status instantly on WhatsApp.
- A patient requests the PDF report once it’s available, with access restricted to their authorized WhatsApp number.
- Patients ask follow-up questions; the workflow responds in English, Urdu, or Roman Urdu.
Technical details
- WhatsApp Business Cloud trigger for new text messages
- Supabase for session state and report lookup (backed by PostgreSQL)
- OpenAI for intent classification, identifier extraction, and language detection
- n8n nodes/logic: if, set, code, switch, postgres, supabase
Perfect for n8n users, automation engineers, and SaaS operators building a secure WhatsApp lab status automation with OpenAI + Supabase.
