How imsusanta/helpa works
Helpa is a clinic-focused WhatsApp receptionist and patient-communications platform. Its main workflow is: a patient messages the clinic, an inbound webhook feeds the AI workflow, the system checks availability and confirms appointments, then sends confirmations and reminders; staff can review or take over conversations. The product also includes contact/lead management, campaigns and automations, voice calling, and tenant administration. The graph combines README-described capabilities with relationships visible in the supplied source index and excerpts; unsampled wiring is omitted where it cannot be verified.
Main entry points: route.ts Send messages · server.ts Supabase database · whatsapp WhatsApp channels · engine.ts AI receptionist
Components 18
Messaging and AI
- WhatsApp channels
src/core/providers/whatsapp - Inbound webhook
src/app/api/whatsapp/webhook/route.ts - AI receptionist
src/core/ai/engine.ts - Send messages
src/app/api/whatsapp/send/route.ts - Meta API helpers
src/lib/whatsapp/meta-api.ts
Clinic workflow
- Conversation inbox
src/app/(dashboard)/inbox/page.tsx - Appointments
src/app/api/appointments/route.ts - Patient records
src/app/api/patients/[id]/route.ts - Follow-up reminders
src/app/api/cron/reminders/route.ts - Contacts and leads
src/app/api/contacts/route.ts
Automation and outreach
- Automation engine
src/lib/automations/engine.ts - Flow engine
src/lib/flows/engine.ts - Broadcast campaigns
src/app/api/cron/campaigns/route.ts - AI calling
src/app/api/voice/outbound/route.ts
Platform services
- Session and tenant guard
src/lib/auth/account.ts - Supabase database
src/lib/supabase/server.ts
Other components
- Patient
- Clinic staff
Connections 21
- Patient → WhatsApp channels: messages clinic
README.md - WhatsApp channels → Inbound webhook: delivers events
README.md - Inbound webhook → AI receptionist: feeds workflow
README.md - AI receptionist → Appointments: checks availability
README.md - Appointments → Send messages: confirms booking
- Follow-up reminders → Send messages: sends reminders
- Clinic staff → Conversation inbox: reviews conversations
README.md - Conversation inbox → Send messages: sends replies
- Send messages → Session and tenant guard: requires agent role
src/app/api/whatsapp/send/route.ts - Send messages → Meta API helpers: sends messages
src/app/api/whatsapp/send/route.ts - Send messages → WhatsApp channels: selects provider
src/app/api/whatsapp/send/route.ts - Send messages → Supabase database: persists outbound
src/app/api/whatsapp/send/route.ts - Automation engine → Supabase database: reads and writes
src/lib/automations/engine.ts - Automation engine → Send messages: sends messages
- Flow engine → Supabase database: reads and writes
src/lib/flows/engine.ts - Broadcast campaigns → Supabase database: loads campaign data
src/app/api/cron/campaigns/route.ts - Broadcast campaigns → Send messages: sends campaign messages
- AI calling → AI receptionist: uses AI provider
- Session and tenant guard → Supabase database: authenticates and scopes
src/lib/auth/account.ts - Patient records → Supabase database: stores records
- Contacts and leads → Supabase database: stores contacts