👥
Total Patients
0
registered
📅
Pending Appointments
0
0 total
💳
Pending Dues
₹0
0 invoices
💰
Revenue Collected
₹0
this month
📅 Recent Appointments
📱 WA Activity
🤖 Automation Active
✅ 24h reminder scheduler
✅ 2h reminder scheduler
✅ Invoice auto-send
✅ Payment reminders Day 3,7,14
✅ 2h reminder scheduler
✅ Invoice auto-send
✅ Payment reminders Day 3,7,14
⏰ Automation Cron Schedule
📋 Appointment Queue
🧾 Invoice Queue
✏️ Custom WhatsApp Message
💬 WhatsApp Business API
Get credentials from developers.facebook.com
🔗 Webhook URL
https://your-backend.com/webhook
Verify Token:
cliniccare_webhook_secret_2024
Subscribe to: messages, message_deliveries, message_reads
📋 Setup Steps
1
Create Meta Developer Account
Go to developers.facebook.com → My Apps → Create App → Business
2
Add WhatsApp Product
Add Product → WhatsApp → Set Up → Connect Meta Business Account
3
Add Phone Number
WhatsApp → API Setup → Add Phone Number → verify via SMS/voice call
4
Get Permanent Token
business.facebook.com → System Users → Generate Token with whatsapp_business_messaging permission
5
Register Webhook
WhatsApp → Configuration → paste backend URL + verify token from above
6
Enter Credentials
Paste API Token and Phone Number ID in the form on the left
7
Deploy Backend
Run Node.js server on Railway/Render/AWS — all cron schedulers start automatically
🖥️ Backend .env Keys
WA_TOKEN=EAAxxxxxxxxxx
WA_PHONE_NUMBER_ID=1234567890
WEBHOOK_VERIFY_TOKEN=your_secret
MONGODB_URI=mongodb://localhost/clinic
ADMIN_PHONE=919876543210
CLINIC_NAME=ClinicCare
CLINIC_PHONE=044-12345678
🏥 Clinic Information
📱 WA Notification Rules
🖥️ Backend Stack
📦 Express.js — REST API server
🍃 MongoDB — Patient/Appointment/Invoice records
📱 WhatsApp Cloud API — Automated message delivery
⏰ node-cron — 24h/2h/daily reminder schedulers
🔗 Webhook /webhook — handles CANCEL/CONFIRM replies
🚀 Deploy: Railway / Render / AWS EC2 + PM2