How jagan-16/zobot works
MedCore Health presents a healthcare consultation booking experience: patients interact with the chatbot, receive AI-interpreted next steps, verify a phone number, choose a service and time, and manage bookings. The frontend also exposes an admin dashboard for booking metrics. Booking and OTP behavior is implemented with in-memory mock data in both the Express backend and frontend mock service; the dashboard uses the frontend mock service. The graph omits unshown action branches and does not imply persistence. README capabilities and sampled code support the principal workflow; excerpts limit certainty about detailed chatbot dispatch.
Main entry points: ChatWidget.tsx Booking chatbot · App.tsx Clinic landing app · llm.ts Gemini assistant · api.ts HTTP API client
Components 12
Patient experience
- Clinic landing app
App.tsx - Booking chatbot
components/ChatWidget.tsx
Chat and AI
- Gemini assistant
services/llm.ts
Booking operations
- HTTP API client
services/api.ts - Admin mock API
services/mockApi.ts - Express API
backend/server.js - Vercel API
api/index.js - In-memory bookings
backend/server.js - Frontend mock bookings
services/mockApi.ts
Administration
- Admin dashboard
components/AdminDashboard.tsx
Other components
- Patient
- Google Gemini
Connections 12
- Patient → Clinic landing app: visits
README.md - Clinic landing app → Booking chatbot: renders
App.tsx - Clinic landing app → Admin dashboard: opens
App.tsx - Patient → Booking chatbot: interacts
- Booking chatbot → Gemini assistant: requests replies
components/ChatWidget.tsx - Gemini assistant → Google Gemini: generates content
services/llm.ts - Booking chatbot → HTTP API client: runs actions
components/ChatWidget.tsx - HTTP API client → Express API: HTTP requests
- Express API → In-memory bookings: reads and writes
backend/server.js - Admin dashboard → Admin mock API: loads bookings
components/AdminDashboard.tsx - Admin mock API → Frontend mock bookings: reads and writes
services/mockApi.ts - Vercel API → In-memory bookings: maintains bookings
api/index.js