WhatsApp API for Healthcare: Appointment Reminders and Patient Alerts
Use WhatsApp API to send appointment reminders, prescription alerts, lab result notifications, and health tips to patients. Rapiwa API ($5/month) for clinics, hospitals, and health apps.
WhatsApp API for healthcare lets clinics, hospitals, and health apps automatically send appointment reminders, lab result notifications, prescription refill alerts, and health tips to patients. Using Rapiwa API ($5/month, no per-message fees), healthcare providers reduce no-show rates by 40–60% and save hours of manual phone calling every day.
Why Healthcare Needs WhatsApp Automation
Healthcare has a no-show problem: 15–30% of appointments are missed, costing clinics $150–$300 per empty slot. Email reminders are read by 20% of patients. Phone call reminders are time-consuming and often missed.
WhatsApp solves this:
- 98% open rate — patients read your reminder within minutes
- Patients already use WhatsApp — 2 billion active users globally
- Two-way communication — patients can confirm, cancel, or reschedule by replying
- Cost: $5/month (Rapiwa) vs $0.10/SMS × 1,000 messages = $100/month
Important: Consult your local healthcare data privacy regulations (HIPAA in the US, GDPR in Europe, PDPA in Bangladesh/Southeast Asia) before implementing WhatsApp communications for patient data.
Top 6 WhatsApp Automation Use Cases for Healthcare
1. Appointment Reminder (24 Hours Before)
The problem: Patients forget appointments scheduled weeks in advance.
The solution: WhatsApp reminder 24 hours and 2 hours before appointment.
curl -X POST https://app.rapiwa.com/send-message \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"number": "8801234567890",
"message": "Hi Sarah! 📅 Appointment Reminder\n\nYou have an appointment tomorrow:\n\n👨⚕️ Doctor: Dr. Rahman\n🏥 Clinic: City Health Centre\n📅 Date: July 9, 2026\n⏰ Time: 10:30 AM\n📍 Address: 45 Medical Road, Dhaka\n\nReply *CONFIRM* to confirm or *CANCEL* to cancel.\n\nQuestions? Call: +880 1234 567890"
}'
Expected response:
{
"status": "success",
"messageId": "msg_health_abc123",
"timestamp": "2026-07-08T10:30:00Z"
}
2. Appointment Booking Confirmation
The problem: Patients wonder if their booking was successful after scheduling online.
The solution: Immediate WhatsApp confirmation when an appointment is booked.
import requests
from datetime import datetime
def send_appointment_confirmation(
phone: str,
patient_name: str,
doctor: str,
clinic: str,
appointment_time: datetime,
appointment_id: str,
api_key: str
) -> dict:
formatted_time = appointment_time.strftime('%B %d, %Y at %I:%M %p')
message = (
f"Appointment Confirmed ✅\n\n"
f"Hi {patient_name}!\n\n"
f"Your appointment has been booked:\n"
f"👨⚕️ Doctor: {doctor}\n"
f"🏥 Clinic: {clinic}\n"
f"📅 {formatted_time}\n"
f"🔖 Ref: {appointment_id}\n\n"
f"We will send you a reminder 24 hours before.\n"
f"To cancel or reschedule, reply CANCEL."
)
return requests.post(
'https://app.rapiwa.com/send-message',
headers={'Authorization': f'Bearer {api_key}'},
json={'number': phone, 'message': message}
).json()
3. Lab Result Ready Notification
The problem: Patients call the clinic repeatedly to ask if their test results are ready.
The solution: WhatsApp notification the moment results are available.
"Hi Sarah! 🔬 Your lab results are ready.
Your test results from July 8, 2026 are available in your patient portal:
🔗 https://portal.cityhealthcentre.com/results/ABC123
Log in to view them securely.
If you'd prefer a phone consultation to discuss the results, reply CALL and we'll arrange one.
- City Health Centre Team"
4. Prescription Refill Reminder
The problem: Patients forget to refill prescriptions and run out of medication.
The solution: WhatsApp reminder 7 days before the estimated end of a prescription.
def send_prescription_reminder(
phone: str,
patient_name: str,
medication: str,
refill_date: str,
pharmacy_url: str,
api_key: str
) -> dict:
message = (
f"Prescription Reminder 💊\n\n"
f"Hi {patient_name}!\n\n"
f"Your prescription for *{medication}* is running low.\n\n"
f"Estimated refill date: {refill_date}\n\n"
f"Order your refill now to avoid a gap:\n"
f"🔗 {pharmacy_url}\n\n"
f"Or visit our clinic pharmacy — open Mon–Sat, 9AM–6PM."
)
return requests.post(
'https://app.rapiwa.com/send-message',
headers={'Authorization': f'Bearer {api_key}'},
json={'number': phone, 'message': message}
).json()
5. Vaccination and Preventive Care Reminders
The problem: Patients miss annual check-ups, flu shots, and preventive screenings.
The solution: Automated WhatsApp reminders based on patient health records.
"Hi Sarah! 💉 Annual Reminder
It's time for your annual health check-up! You're due for:
✅ Blood pressure check
✅ Blood glucose test
✅ Flu vaccine (flu season starts next month)
Book your appointment: https://portal.cityhealthcentre.com/book
It takes just 20 minutes and keeps you ahead of health issues. See you soon! 🏥"
6. Post-Discharge Follow-Up
The problem: Patients are discharged without clear follow-up instructions and don't comply with medication schedules.
The solution: Automated WhatsApp check-in 24 hours and 7 days after discharge.
Day 1 after discharge:
"Hi Sarah! 👋 We hope you're recovering well at home.
A reminder about your medications:
💊 Amoxicillin: 1 tablet, 3x daily (with food)
💊 Ibuprofen: 1 tablet when needed for pain
Any concerns? Reply here or call: +880 1234 567890
Feel better soon! — City Health Centre"
Day 7 follow-up:
"Hi Sarah! 🏥 7-day check-in
How are you feeling after your procedure last week?
Please reply:
1️⃣ Recovering well
2️⃣ Some discomfort but okay
3️⃣ Not feeling well — need to speak with a doctor
Your response helps us ensure you're getting the right care."
How to Set Up WhatsApp for Healthcare with Rapiwa
Step 1: Create Your Rapiwa Account
Sign up at rapiwa.com — 3-day free trial, no credit card.
Step 2: Connect to Your Healthcare System
Most practice management systems (Zoho, Calendly, Acuity, ClinicSense) support webhooks or API access. Use n8n to:
- Receive events from your booking system
- Send reminders via Rapiwa at the right time
Step 3: Build the Reminder Schedule
import schedule
import time
def schedule_appointment_reminders():
"""Check for upcoming appointments and send reminders."""
appointments = get_appointments_in_next_24_hours() # Your DB query
for apt in appointments:
if not apt['reminder_24h_sent']:
send_appointment_reminder(
phone=apt['patient_phone'],
patient_name=apt['patient_name'],
doctor=apt['doctor_name'],
clinic=apt['clinic_name'],
appointment_time=apt['scheduled_time'],
appointment_id=apt['id'],
api_key='YOUR_API_KEY'
)
mark_reminder_sent(apt['id'], '24h')
# Run every hour
schedule.every().hour.do(schedule_appointment_reminders)
while True:
schedule.run_pending()
time.sleep(60)
Results You Can Expect
- 40–60% reduction in no-show rates (WhatsApp reminders vs phone calls)
- 30% reduction in "are my results ready?" phone calls (proactive notification)
- 25% improvement in medication adherence (prescription refill reminders)
- 2–3 hours saved per day per clinic on manual reminder calls
FAQ
Is WhatsApp HIPAA compliant for patient data? WhatsApp itself is not HIPAA compliant. Do not send protected health information (PHI) such as diagnoses or specific lab values via WhatsApp. Limit messages to appointment logistics and use a patient portal link for sensitive results.
Does Rapiwa charge per patient message? No. Rapiwa charges $5/month flat with no per-message fees. A clinic sending 500 appointment reminders/day pays $5/month total.
Can patients reply to confirm or cancel their appointments? Yes. Set up a Rapiwa webhook to receive incoming replies. When a patient replies "CANCEL", the webhook triggers a cancellation in your booking system and a notification to your front desk.
What if a patient doesn't have WhatsApp? Check if the patient's number is a WhatsApp number before sending. Non-WhatsApp numbers can be handled with an SMS fallback (different provider) or a phone call trigger in n8n.
What is the best WhatsApp API for healthcare appointment reminders? Rapiwa is the most cost-effective option at $5/month flat with no per-message fees, a 5.0/5 Sourceforge rating, and no official WhatsApp Business verification required.
