Inspiration

In much of India, seeing a doctor still takes a full day: travel, a long queue, a short visit in a language you may not fully follow, a paper prescription you can't read, and a second trip to find a pharmacy that has the medicines. Many families also choose between Allopathy, Ayurveda and Homeopathy, and finding a verified practitioner of each is hard.

Telemedicine apps solve part of this, but the journey usually breaks into pieces: one app to book, another to call, cash or UPI for the fee, a photo of the prescription on WhatsApp, and a phone call to the pharmacy. Every gap means lost time, unpaid fees for doctors and unclear advice for patients.

We wanted one app that carries a patient from "I feel unwell" to "my medicines are at my door". AI removes the confusion at each step, and PayPal makes every payment in the journey trusted, instant and refundable.

What it does

Healvio is one installable app with four roles: Patient, Doctor, Medical store and Admin.

1. Patient: from symptoms to medicines

  • Their own language: right after login the patient chooses one of 12 languages (English, Hindi, Telugu, Tamil, Kannada, Malayalam, Marathi, Bengali, Gujarati, Punjabi, Odia, Urdu). Every screen, button and alert, the phone pop-ups that arrive while the app is closed, and their prescription, medicine names included, are then shown in that language. They can change it any time in Profile.
  • AI Doctor Finder: describe the problem in your own words ("fever and body pain for 3 days"). AI suggests the right kind of doctor, the system of medicine and how urgent it is. If it sounds like an emergency it shows ambulance number 108 at once, and the Tele-MANAS mental-health line when needed.
  • Book verified doctors (Allopathy, Ayurveda, Homeopathy) and see their qualifications, registration number, ratings, reviews, map and directions.
  • Emergency pre-booking: doctors keep priority slots for urgent cases, and those patients are connected first.
  • My doctors: tap ♡ to save any number of trusted doctors. They stay at the top of the home screen for one-tap booking. If the admin removes a saved doctor, for example after a patient report, every patient who saved that doctor is told at once and asked to choose another.
  • Pay the consultation fee with PayPal right after the doctor accepts.
  • Chat, voice call and video call inside the app (encrypted WebRTC), with alerts that ring like WhatsApp, even when the phone is locked.
  • After the visit: an e-prescription with the doctor's signature, an AI summary in the patient's language that can be read aloud, and medicine reminders at the right times.
  • Order medicines from a nearby store with a Healvio or paper prescription, pay with PayPal, and track delivery live on a map.

2. Doctor: a practice in a phone

  • Verified onboarding: certificates and a drawn signature are reviewed and approved by an admin.
  • Daily availability: start time, minutes per consultation and number of consultations; the slots are built automatically. Sunday is off by default, and "Reuse my previous day" copies the last working day and labels it.
  • A request queue with Accept, Waiting list and Decline, and a clear schedule.
  • Consultation timer that both the doctor and the patient see, also on the call screen. When the booked time ends the doctor gets "Time is up" and has 10 extra minutes, then a stronger reminder. A consultation never ends by itself; only the doctor ends it.
  • Fair waiting: if a consultation runs over, the next patients of the day are told once that the doctor is about 10 minutes late, with their booked time and their new expected time.
  • "Up next": ending a consultation tells the next patient "Please be ready". The doctor's "I'm ready" button and the "Consultation started" alert are two more, separate messages.
  • AI help during the visit: live translation, call notes, a list of the patient's likely doubts, and a SOAP clinical note.

3. Medical store

  • Receives orders, marks each medicine available, sets prices and a delivery fee, and sends the bill.
  • Gets paid through PayPal, hands over at the counter or delivers.
  • Shares the rider's live location so the patient can track the order.

4. Admin

  • Approves or rejects doctors and stores after checking their documents.
  • Terminates a doctor when needed. The app shows how many patients saved that doctor and tells each of them, saying whether it followed a patient report (ticked by itself when a report exists).
  • Sees all consultations and orders, issues refunds, and answers complaints (a grievance system, as the Telemedicine Practice Guidelines require).
  • System check: one screen that tests Google, the database, PayPal, AI and phone alerts live.

How PayPal powers Healvio

PayPal is the payment layer for every money moment in care: the doctor's fee, the pharmacy bill, the delivery charge and refunds.

  1. Consultation fees

    • The doctor accepts and sets a time, and the patient pays the fee with PayPal (PayPal JavaScript SDK buttons, plus a redirect approval flow made for installed mobile web apps, where pop-ups are blocked).
    • "Pay before you consult": Start consultation opens only after payment. The doctor can send a payment reminder or choose "Start anyway" for free or cash visits.
    • Automatic reminders: the server sends "Pay to confirm" alerts 60 minutes and 10 minutes before the slot.
  2. Medicine orders

    • The store prices each available medicine and adds delivery, and the patient pays the exact bill with PayPal.
  3. Refunds

    • If a paid consultation or order is cancelled, Healvio refunds it through PayPal (Payments v2 refunds) on its own, and the patient sees it in the app.
  4. Security by design

    • The phone never decides the price. The server (a Cloudflare Worker) reads the amount from the database, creates the order with the PayPal Orders v2 API, captures it on the server and checks that the captured amount matches.
    • Only the server can mark something as paid; the database security rules block every phone from writing "paid" or "refund".
    • PayPal credentials (Client ID and Secret) stay in the server's encrypted secrets and are never in the app.
    • Prices are in rupees and charged in the PayPal currency (USD in Sandbox) at a set rate, so the patient sees both amounts.

Where AI and PayPal meet: a patient photographs a handwritten prescription, AI reads the medicine names and doses, the store prices them, PayPal pays the bill, and the order is tracked live to the door. The Doctor Finder works the same way: the patient's own words lead to the right doctor, a booking and a PayPal payment. In both cases AI turns what the patient needs into a paid, completed order.

How AI powers Healvio

All AI runs on Cloudflare Workers AI's free tier, behind our own server, so patient data never goes to the browser and the free limit is protected (only signed-in users can use it).

  • AI Doctor Finder (Llama 3.3 70B): symptoms → specialty, system of medicine, urgency (emergency / today / soon / routine), warning signs, emergency and crisis numbers.
  • Live translation (Llama 3.3 70B): pick a language once and every chat message, and every sentence said on the call, is translated as it arrives: 12 languages, including Hindi, Telugu, Tamil, Kannada, Malayalam, Marathi, Bengali, Gujarati, Punjabi, Odia and Urdu. Medicine names and doses are never changed.
  • AI call notes (Whisper large-v3-turbo): what each person says on a voice or video call is written into the chat, so nothing said aloud is lost. A language guard stops wrong-language guesses.
  • AI consultation summary (Llama 3.3 70B → Llama 4 Scout → Llama 3.1 8B fallback chain): reads the whole chat, the call notes and the prescription, then writes a plain-language summary: symptoms, what the doctor found, each medicine with its timing, tests, food and rest advice, warning signs and follow-up. It is then checked again against the conversation. Doctors also get a SOAP note. It is translated and can be read aloud.
  • AI doubts: privately suggests questions the patient may want to ask, or doubts the doctor may want to clear, before the visit ends.
  • Paper prescription reader (Llama 3.2 11B Vision): turns a photo of a handwritten prescription into a medicine list for ordering.
  • The app in 12 languages: the app's own text (over 450 sentences per language) was translated in advance and ships with the app, so it works without AI. Names, the problem the patient wrote and prescription details are turned by AI once and kept on the phone, which keeps the free AI allowance for the rest. Alerts and phone pop-ups use ready-made sentence patterns in every language, so prices and times stay exact and no AI is needed; doctor, store and rider names appear in the patient's language too, and chat messages always stay exactly as people typed them. "Read my prescription aloud" reads it in the patient's own language.
  • Safety rules everywhere: AI never invents medical facts, always says it is not a diagnosis, and never replaces the doctor's advice.

How we built it

Architecture (all on free tiers):

[ Installable web app (PWA) ] HTML, CSS and plain JavaScript in one fast file; opens quickly from a local data cache; installs from the browser on Android and iPhone | | Google sign-in, real-time data, security rules v [ Firebase ] Authentication · Cloud Firestore (asia-south1, Mumbai) · Hosting · Cloud Messaging (push alerts) ^ | service account (server only) | [ Cloudflare Worker: Healvio server ] - PayPal: OAuth, Orders v2 create and capture, Payments v2 refunds - Workers AI: text models, vision model, Whisper speech-to-text - Push alerts: Firebase Cloud Messaging v1, only one alert per event - Cron job every minute: medicine reminders, payment reminders, consultation time-up reminders and delay notices - Video calls: TURN relay credentials for calls behind strict networks | v [ PayPal Sandbox ] [ Workers AI ] [ OpenStreetMap / Leaflet maps ]

Key engineering choices:

  • Peer-to-peer WebRTC voice and video calls, with a TURN relay fallback and automatic reconnection, that ring the other phone through push alerts.
  • Every alert that both the phone and the server could send has a fixed ID, and only whoever saves it first sends it. A reminder or delay notice is never sent twice.
  • Strict Firestore security rules: patients see only their own records, doctors only their own patients, and stores only orders sent to them. Payment fields can be written only by the server.
  • A local data cache keeps the app fast and inside the free database limit.
  • Updates reach every user with a simple refresh: the app checks its version and updates itself.
  • The whole patient app changes language without rewriting any screen: a watcher turns each text on screen before it is shown, the patient's typing is never touched, and doctors, stores and the pharmacy order stay in English.
  • 886 automated checks in 40 test suites: real browser tests with two phones (doctor and patient), plus server tests for PayPal, push alerts, reminders and the consultation timer.

Challenges we ran into

  • PayPal inside an installed app: the PayPal pop-up could get stuck in a home-screen web app. We added a redirect approval flow that returns to the same screen and finishes the payment on the server.
  • Never trusting the phone with money: we moved price lookup, order creation, capture and refunds to the server and locked the database so only the server can mark payments.
  • Speech in many languages: Whisper sometimes guessed the wrong language on short phrases, so we added a script and language guard with an automatic retry.
  • Alerts that really arrive: making push alerts ring on locked Android phones took a careful service worker, alert tokens that repair themselves, and a clear notification health check.
  • Free-tier limits: we reduced database reads with a local cache and protected the AI allowance by allowing only signed-in users.
  • One app, 12 languages: changing every screen by hand would have risked breaking working features. Instead, the screen is turned just before it is shown, dates use each language's own month names, and anything not in the built-in word lists falls back to AI.
  • Time is shared: the consultation timer, the doctor's phone and the server reminders all had to agree. We use one stored start time and length, and fixed alert IDs, so nothing repeats and a refresh never resets the clock.

Accomplishments that we're proud of

  • A complete care journey in one app: find, book, pay, consult, prescribe, summarise, order, pay, deliver, remind.
  • Real money safety: server-checked PayPal capture, refunds, and pay-before- consult.
  • AI that serves patients who are often left out: the whole app in 12 Indian languages, plain words, spoken aloud, and an emergency safety net.
  • Everything runs at zero cost on free tiers, so a small clinic or a single doctor can use it.
  • Built-in compliance with India's rules: account deletion, a privacy policy, terms that follow the Telemedicine Practice Guidelines 2020, a medical disclaimer, a complaint system, and a block on Schedule X and narcotic medicines in online prescriptions.

What we learned

  • In healthcare, trust is the product. Verified doctors, secure payments and honest AI ("this is not a diagnosis") matter more than any single feature.
  • Payments belong on the server. PayPal's Orders and Payments APIs make it natural to keep the phone out of every money decision.
  • Small free models can do serious work when the task is narrow, the prompt is strict and a second pass checks the answer.
  • The hardest parts of telemedicine are the human moments: who is next, who is late, did the alert really ring.

What's next for HealVio

  • PayPal Vault for saved payment methods and one-tap repeat visits with "My doctors", and PayPal payouts to settle doctor and pharmacy earnings automatically.
  • Agentic commerce: an AI care assistant that, with the patient's permission, finds stores that have every medicine, compares prices and checks out with PayPal.
  • Follow-up care plans with AI check-ins between visits.
  • Lab test booking and home sample collection, paid with PayPal.
  • Doctor earnings dashboard with PayPal transaction reports.
  • Native Play Store release, and partnerships with clinics in smaller towns.

Built With

Share this project:

Updates

Submission history