Welcome to Vaazhvu
Vaazhvu (வாழ்வு) means life in Tamil. It is a system that helps an emergency ambulance service, like Tamil Nadu's 108, answer calls faster, understand them better and send the right help, not just the nearest help.
You don't need to be technical to read this page. It explains what Vaazhvu is, why it was built and how a call moves through it. When you want more detail, the guide at the bottom points you to the right document.
Why we built it
Picture a call to 108 at two in the morning. The caller is frightened. They speak quickly, in Tamil or in Tanglish (Tamil typed or spoken with English words mixed in). They may not know the street name, only that they are "near the Guindy bridge". In those first seconds someone has to work out three things: how serious this is, where it is, and which ambulance should go.
Today that decision is usually "send the closest ambulance". That sounds sensible, but it can go wrong:
- The closest ambulance may not be equipped for it. A basic ambulance (BLS) cannot give the care an advanced one (ALS) can, and for a heart attack or a serious crash that difference matters.
- A short, panicked call is uncertain. Treating a best guess as a fact means either over-reacting or missing something serious.
- Every dispatch affects the next call. Sending the only advanced ambulance out of a busy area leaves the next patient there waiting longer.
Vaazhvu is our attempt to handle all three, and to explain every decision so a human can check it.
What happens when someone calls
- The call comes in. A person can call, send a message or press an SOS button in the app. The SOS button shares their location straight away.
- An AI call-taker talks with them. It speaks Tamil and English, understands Tanglish, asks only what is still unknown, gives first-aid instructions while help is on the way, and tells them which ambulance is coming and when.
- The system works out how serious it is. Instead of picking one label, it estimates the chances: how likely it is that this is critical, urgent or less urgent. Every conclusion has to point to the caller's own words, so it cannot invent symptoms.
- Safety rules come next. A fixed set of medical safety rules checks the assessment. They can only make the response stronger (for example, insist on an advanced ambulance), never weaker. If anything is unclear, a human dispatcher decides.
- The best ambulance is chosen. Vaazhvu compares every ambulance that could go, including sending police or fire first, or two ambulances, and picks the option that gives the patient the best chance while keeping the rest of the city covered. It also writes down why the nearest ambulance was or wasn't chosen.
- Everyone sees the same picture. The ambulance crew gets the job and the route on their phone. The receiving hospital is alerted before the patient arrives, with the expected arrival time and what to prepare. Traffic police can be asked to clear a green corridor.
- It keeps watching. If the patient's condition gets worse on the way, the system notices, and can send extra help or choose a better-equipped hospital.
Who uses it
| Person | What they use | What it gives them |
|---|---|---|
| Someone who needs help | The citizen iPhone app, a web page, or an ordinary call or message | A way to ask for help in their own language, and live updates on the ambulance |
| Dispatcher | The dispatcher terminal in a web browser | Every live call, the map, the system's recommendation and the reasons for it, with the final say on every decision |
| Ambulance crew | The crew iPhone app or crew web app | Their job, the route, patient details and a way to report each step |
| Hospital emergency department | The ER board in a web browser | Patients on their way, their condition, arrival times and a preparation checklist |
| Police, fire and traffic police | Their own portal | Requests to help at a scene or to clear a road |
What makes it different
- It speaks the way people actually speak. Tamil, English and the Tanglish mix in between.
- It is honest about uncertainty. It works with probabilities and shows its confidence, instead of pretending to be sure.
- It explains itself. Every recommendation comes with its reasons, so a person can agree or overrule it.
- The AI never has the last word. Fixed safety rules and human dispatchers sit above it, and every decision is recorded.
- It keeps working when parts fail. If the AI or the online map is unavailable, Vaazhvu falls back to simpler methods and the safety rules, rather than stopping.
Everything Vaazhvu can do
The short version is above. Here is the longer tour, grouped by the part of an emergency each feature helps with. The full list, with how each one works and its current status, is in Features.
Taking the call
- Talk, type or tap. A caller can phone the AI voice line, chat by message, send an SMS, or press a one-tap SOS button in the citizen app. Repeat messages from the same person join the same emergency instead of creating a new one.
- A call-taker that listens like a person. The AI voice line is full-duplex: the caller can interrupt it, switch between Tamil and English halfway through a sentence, or speak Tanglish. Nothing it says is a fixed script; every sentence is written from what is actually known about this emergency at that moment.
- Help even when the caller can't speak. A silent SOS still sends help, for someone who is hiding, injured or unable to talk.
- Finding the caller. Location comes from seven sources, ranked by how trustworthy they are: phone GPS, the network, a pin dropped on a map, a typed address, a location shared by SMS or link, or the dispatcher. "Near the Guindy bridge" is turned into a point on the map using real Chennai place names in Tamil and English. If the location is unclear, the caller gets a simple link to drop a pin, with no app or login needed.
- Missed and dropped calls are not forgotten. Calls that hang up or fail go on a call-back list, and repeat attempts from the same caller are linked.
Understanding what is wrong
- Severity as chances, not a guess. The system reads the call five separate times and combines them into the chance that it is critical, urgent or not urgent, with a confidence level.
- No invented symptoms. It works from a fixed list of 29 clinical findings, and a finding only counts if the caller actually said something that supports it. This is how it avoids the made-up answers AI tools are known for.
- Spotting the same emergency twice. When several people call about the same crash, the system notices (using distance, timing, symptoms, wording and caller), but it never holds back help in case it is really a second emergency.
- Handling hoax and non-emergency calls responsibly. It keeps a record of call outcomes without ever storing the caller's phone number itself, can refer non-emergencies to 102 or 104, and never refuses to answer a call.
Keeping it safe
- Sixteen fixed safety rules sit between the AI and every dispatch. They catch danger signs, contradictions, split opinions, an uncertain location or a caller who may be unconscious. They can only make the response stronger, never weaker.
- People stay in charge. Low-confidence or unusual cases go to a human dispatcher, who can approve, change or overrule anything, and every action is recorded in an audit log.
- Nobody waits on the computer. A likely-critical call is dispatched straight away and checked afterwards, and no held call waits more than four minutes.
Choosing who goes
- Best chance, not just closest. Every possible response is compared: one ambulance, an advanced one, two ambulances, or police or fire arriving first to start CPR. Each is scored by the expected harm to the patient, together with the hospitals it could take them to.
- Thinking about the next caller. It counts the cost of leaving a neighbourhood without cover, using a forecast of where calls are likely to come from, and repositions idle ambulances to fill the gaps.
- Several calls at once. Calls that arrive together are solved together, so one call cannot take the ambulance a sicker patient needed more.
- Crews can say no. An ambulance is offered the job; if it declines or doesn't answer in 45 seconds, the next best one is asked.
- "Why not the nearest?" Every decision explains itself, in words a dispatcher can check.
On the road
- Turn-by-turn route for the crew on real Chennai roads, re-routed around closures.
- Built for bad networks. The system knows when a crew's phone has gone quiet, stops showing that ambulance as moving, and keeps the crew's taps safe offline until the signal returns.
- Green corridors. Traffic police can be asked to clear junctions along the ambulance's route.
- Police and fire are alerted automatically when the scene needs them (a fire, someone trapped, violence).
Looking after the patient
- Live vital signs from the ambulance (from Bluetooth medical monitors or entered by the crew) are turned into a standard early-warning score.
- If the patient gets worse, the system can send an advanced ambulance as backup, choose a better-equipped hospital, and tell the hospital what has changed.
- Doctor on call. Crews can consult an emergency physician from inside the app.
At the hospital
- The ER knows before the ambulance arrives: who is coming, how unwell they are, the arrival time, their vital signs and a preparation checklist.
- The ER can answer back: accept the patient, say they are full or diverting, report beds, theatres, cath labs and specialists available right now, and request a transfer to another hospital.
- The right hospital, legally. Choices respect live readiness and Tamil Nadu's admission rules and schemes, and a patient in a critical state can be diverted to the nearest place that can stabilise them.
- Standard medical records. Patient and vital-sign records are shared in FHIR, the international health-records standard.
The screens
- Dispatcher terminal: a keyboard-driven control room with dockable panels (calls, live map, decisions, the conversation with the caller, vital signs, units, hospitals, coverage) and a command bar.
- ER board for each hospital, crew app for ambulances (also works offline), agency portal for police and fire, an admin portal for accounts, hospitals and fleet, and a public welcome page and in-app help.
- Two iPhone apps: one for citizens and one for crews (see "The two iPhone apps" below).
- A Dispatcher Copilot you can ask questions in plain language ("which incidents are open right now?"). It can read and explain but, by design, can never dispatch, approve or change anything.
Built for the keyboard
A dispatcher's hands should never have to leave the keyboard during a call, so the dispatcher terminal is designed to be driven entirely from it. A mouse works too, but nothing needs one.
- One command for everything. Press ⌘K (Ctrl+K on Windows and Linux), / or : to open the command line, type a few letters of what you want ("approve", "closure", "export audit") and press Enter. About 90 actions live there, and roughly 60 of them also have their own key.
- Single keys for the moments that matter. J and K move through the queue of incidents, Shift+J/K through the ambulances. A approves the recommendation, O overrides it, R replies to the caller, X closes the incident, N takes a new call, W puts one on hold, M adds a team note and Y opens the latest alert. Linking and merging duplicate calls, sharing and exporting have keys too.
- The map from the keyboard. F follows the selected incident, . fits everything in view, + and − zoom, C draws a road closure and Shift+L switches map layers.
- Panels and workspaces. The screen is made of 20 dockable panels: number keys 1–9 jump to the most used, and two-key chords such as G then a letter reach the rest. Z maximises a panel, Alt+Shift+arrows move it, Alt+P pops it out to a second monitor. F1–F5 switch between five workspaces (dispatch, call-taking, map wall, analysis, compact), each remembering its own layout.
- Nothing to memorise. ? shows every shortcut at any time, the command line shows each action's key next to its name, and right-click menus offer the same actions as the keys. Shortcuts are ignored while you are typing in a text box, so a reply to a caller never triggers a command by accident.
The two iPhone apps
Vaazhvu has two native iPhone apps, built in SwiftUI, that talk to the same live system as the web screens.
These are from an iPhone 18 Pro Max simulator at its native resolution (1320 x 2868, in screenshots/ios-4k/native), shown in 4K (3840 x 2160) showcases.
Vaazhvu, for people who need help

The citizen app is built around one idea: in an emergency there should be one obvious thing to do. It never shows a busy dashboard; each screen fits the moment you are in.
- Setting up, once. Four short steps: a welcome, your name and number, what the crew should know about you (blood group, conditions, allergies, medicines, an emergency contact), and the location and microphone permissions, asked up front so an SOS never stops on a pop-up. "Emergency now? Call 108" stays on every step, because an emergency can come before setup is finished.
- Home: one big button. Hold the SOS button for just over a second. Two things happen at once: your request and GPS position go to the system, which picks the nearest suitable ambulance, and a voice call opens with the AI call-taker so it can learn what happened. Above the button you can choose what help to send (medical by default; police and fire can be added). Below it are Talk to 108 and Message 108, and one tap switches the whole app, and the AI, between Tamil and English.
- Talking to the AI. The call-taker greets you in your language and asks what happened. Your words and its replies appear as chat bubbles while it speaks. You can interrupt it at any time, and it tells you the moment an ambulance is dispatched or arrives.
- Following your ambulance. A full-screen map shows where you are and the ambulance's road route shrinking as it drives, with the minutes left in large type, the vehicle and the distance. A progress bar moves from requested, to on the way, to with you, to the hospital. There is always one main button for the current moment, and you can call the crew directly if they have shared a number.
- Getting the location right. It tells you whether your location is confirmed, approximate or needed, names the place by a landmark you would recognise, and lets you drop a pin if it is wrong.
- While you wait. Simple instructions for the current stage, the same ones the AI call-taker may give.
- Calm and private. Severity scores, hospital rankings and internal ids are deliberately hidden from the caller. If the network fails, the app falls back to an ordinary text message to 108 with your GPS position in it.
VaazhvuCrew, for the ambulance crew

- Start a shift by signing in and picking your vehicle. From then on the phone acts for that ambulance only.
- Waiting for a job: shows that you are available, your home zone, and any instruction to reposition, with the route. You can go off duty and come back in service from here.
- When a job comes in, the phone alerts you with a banner, a vibration and, if it is in your pocket, a notification with sound. The screen stays awake during the job.
- On the job: a map with the route still to drive, the scene, the destination hospital and other ambulances, and a card with the severity, arrival time and distance, the symptoms, the caller's latest words, the destination and the patient's age. Buttons open Apple Maps turn-by-turn navigation, call the caller, or open the live patient sheet.
- One big next step. The main button is always the single next action: on scene, depart to hospital, at hospital, available. Taps made with no signal are kept and sent in order once it returns.
- The live patient sheet: vital signs with a trend chart and the early-warning score, the triage reasoning with the caller's quoted words, the whole caller conversation, notes from dispatch and the ER, and the job timeline. Crews can record their own vital-sign readings, with impossible values blocked, and confirm a reading from a monitor before it is sent as theirs.
- GPS from the phone keeps the ambulance's position live on every other screen, and readings taken out of signal are replayed in order.
The dashboards
Different people need different views of the same emergency, so Vaazhvu has a dashboard for each of them, plus two for the people who keep the system running.
| Dashboard | Who it is for | What it shows |
|---|---|---|
Dispatcher terminal (/) | Dispatchers and supervisors | The control room: incident queue, live map with every unit and road closure, the decision and its reasons, the conversation with the caller, vital signs, units, hospitals, coverage, the event feed, team notes and the Copilot. Five workspaces (dispatch, call-taking, map wall, analysis, compact) and fully keyboard driven |
ER command (/hospital) | Each hospital's emergency department | A status bar with ED status, diversion, load and beds; a dashboard of incoming and critical patients and the next arrival; the incoming queue, most urgent first; each patient's details with the reasons behind the assessment; the preparation checklist; accepting patients and transfers; resources (beds, resuscitation bays, ICU, theatres, cath lab, specialists); referrals; and history. Each hospital sees only its own patients |
Agency portal (/agency) | Police, fire and traffic police | Only the scenes and requests addressed to them, with the location and what is needed, including green-corridor requests |
ERC physician board (/ercp) | The on-call emergency physician | Live consultation requests from ambulance crews |
Admin portal (/admin) | Administrators | Overview, staff and citizen accounts, hospitals, caller records, ambulance tiers, applications from new hospitals and private fleets, the fleet registry, data checks and crash hotspots |
| Command centre (Grafana) | Whoever runs the system | Stack health, active incidents and approvals waiting, ambulances free, 8-minute coverage, system stress, call-to-dispatch and call-to-scene times, override rate, severity, channel and language mix, fleet and coverage by zone, API speed and errors, the live event bus, every service's health, and web vitals from real browsers |
| LLMOps (Grafana) | Whoever runs the AI | Every AI call measured: operations per minute, error and fallback rates, triage and first-word speed, spend in rupees, tokens, which provider answered, cache hits, what the call-taker's guard held back, and which prompt and configuration versions are live. It never records what a caller said |
Logs for every one of these, and every service behind them, are searchable in Grafana through Loki.
What they look like
These are real screens, captured from a running copy of Vaazhvu during the demo storylines (a Tanglish cardiac call, a bike crash and a city-wide surge). Ambulance positions and vital signs in them are simulated, and are labelled so on screen.
Dispatcher terminal, dispatch workspace: the queue on the left, the live map with every unit and coverage ring, the selected incident's severity, safety policy and reasoning on the right, and the event feed below.
Map wall workspace (F3): the map first, for a wall screen in the control room.
Analysis workspace (F4): the dispatch decision taken apart: every option considered, its expected harm, the caller's words behind each finding, and the language pipeline.
ER command, dashboard: what is coming in, the next arrival, patients waiting, beds, transfers, what needs attention and everything that changed.
ER command, one patient: the assessment with its evidence, current vital signs, the ambulance and why this hospital was chosen, the preparation checklist, and alerts as the patient deteriorates.
ERC physician board: a crew's question about a patient in their ambulance, with the live vital-sign trends, and a place to record advice.
Agency portal (police): only the scenes where police are needed, with the hazard, the ambulance's arrival time, and accept or decline.
Admin portal: accounts, hospitals, callers, tiers, applications, fleet, data checks and hotspots.
Crew web app and the browser 108 line, at phone size: the crew's job with the receiving-hospital choice, and the caller's page in Tamil.
Welcome page: the public front door, with an interactive explanation of how a severity distribution works.
Grafana, command centre: the state of operations at a glance, and how fast calls become dispatches and arrivals. Shown over one hour of 33 demo calls (Tamil, Tanglish and English, by voice, SMS and app) through the real pipeline. Demo calls are left out of the 24-hour response figures, which is why those panels are empty here.
Grafana, database and logs: Postgres health, size, traffic and which api holds the database, then error logs from every service through Loki.
Grafana, LLMOps: every AI call measured: who answered, latency, time to first word, fallbacks, errors, tokens and
spend in rupees. Shown after 20 minutes of the synthetic traffic generator (make llm-demo: simulated providers, no
credit spent), which is how this dashboard can be demonstrated without real calls.
The Grafana screenshots are 3840 x 2160; open one in a new tab to see it at full size.
What it runs on
You don't need any of this to understand Vaazhvu, but for the curious, here is what sits behind the screens.
| Piece | What it does |
|---|---|
| The api | The heart of the system (Python, FastAPI): takes calls, runs triage, the safety rules and dispatch, and serves every screen live |
| Postgres | The database. Every event, incident, decision and audit record is stored here. Only one copy of the api may run against it at a time, so two never fight over the same emergency |
| AI models | DeepSeek in the cloud for understanding calls, with a local Gemma model (Ollama) as a fallback; Whisper turns speech into text; IndicTrans2 and IndicXlit handle Tamil, Tanglish and translation |
| OSRM and VROOM | Real road routing over the South India map, and route optimisation |
| Dispatch scorer | A second, independent copy of the dispatch maths (in Go) that cross-checks every decision |
| Google OR-Tools | The optimiser behind joint dispatch and where the 37 ambulances are stationed (OR-Tools) |
| HAPI FHIR | A standard medical-records server that receives the patient records |
| NATS | A durable copy of every event for other systems to subscribe to |
| MCP server | A safe, read-only way for AI assistants (like the Copilot) to look at live operations (MCP) |
| Monitoring | Prometheus and Grafana show the health of every service and every AI call (cost, speed, fallbacks) with alerts, without ever recording what a caller said (Monitoring) |
| Logs (Loki) | Every service's logs in one searchable place: Promtail collects them, Loki stores them for a week, Grafana searches them |
| Docker Compose | Starts the whole stack on one computer with a single command |
| Kubernetes | A ready-made set of Kubernetes files (infra/k8s) to run the core of the system on a cluster: the api, Postgres, NATS, the scorer and a secure public entry point |
| CI/CD | Every change runs over 3,600 automated tests on GitHub (on both the test database and Postgres), and new container images are published automatically |
| This site | The documentation you are reading, published automatically from the repository on every change |
Where it stands today
Vaazhvu is a working prototype, run as a demonstration. The map, the roads, the hospitals and the neighbourhoods come from real Chennai and Tamil Nadu data, and the language understanding, safety rules and dispatch decisions are real software doing real work. The ambulances, police and fire units, patient vital signs and some call scenarios are simulated, because it is not connected to the real 108 service. Every simulated value is labelled on screen and listed in What is simulated.
A few words you will see
| Word | Meaning |
|---|---|
| 108 | India's emergency ambulance number |
| Triage | Deciding how serious a patient's condition is |
| ALS / BLS | Advanced / Basic Life Support: an ambulance with more or fewer medical capabilities |
| ETA | Estimated time of arrival |
| NEWS2 | A standard score of how unwell a patient is, from their vital signs |
| Tanglish | Tamil mixed with English, often typed in English letters |
| Green corridor | Traffic police clearing a route so an ambulance can get through |
| FHIR | The international standard for sharing medical records between systems |
Where to go next
| If you want to… | Read |
|---|---|
| Understand the idea in a little more depth | Overview, then Features |
| See each app and how people use it | Apps |
| Know what is real and what is simulated | What is simulated |
| Run it on your own computer | Setup |
| Understand how it is built | Architecture, Backend, API |
Five-minute start (for people running it)
If everything is already installed:
docker compose up -d # start everything; the web app opens on http://localhost:8001
docker compose down # stop everything
Open http://localhost:8001 for the dispatcher terminal, or http://localhost:8001/welcome for a guided overview. First time? Setup walks through the installation.
All documents
| Doc | What it covers |
|---|---|
| Overview | What the system does, end to end, and the ideas behind it |
| Setup and running | Install, start everything, ports, Tailscale, iOS build/install, tests, troubleshooting |
| Web platform | Web platform: landing, help, onboarding, search, keyboard, team notes, presence, files, sharing, autosave, offline/PWA, analytics, roles, webhooks, API keys, exports, security headers, rate limits, metrics |
| The apps | Every app (web console, ER board, crew, caller, iOS citizen, iOS crew): who it is for and how to use it |
| Architecture | Components, incident lifecycle, event types, persistence, live vs legacy paths |
| Backend modules | Every backend module and what it is responsible for |
| API reference | HTTP / WebSocket / SSE endpoints with examples |
| AI and voice | Language pipeline, LLM triage, the AI call-taker, the real-time voice line |
| Safety and dispatch | Safety policy R1–R9, risk dispatch objective, fleet placement, simulation, vitals, coverage |
| Optimisation (OR-Tools) | Google OR-Tools (CP-SAT): the joint-dispatch, MEXCLP fleet-plan and legacy batch models, with formulations, limits, fallbacks and how to change them safely |
| Configuration | All environment variables and config/*.yaml files |
| AI access and the Copilot | MCP server (/api/mcp, stdio bridge) and the Dispatcher Copilot: tools, safety boundary, giving other people access (public gateway, personal keys), connecting clients |
| Monitoring and logs | Watch every service: terminal dashboard, JSON/Prometheus exporter, Grafana; LLMOps (every model call traced and measured) |
| External services | Every external model / service: what it does, how it is started, what happens without it |
| Database | Postgres in compose (SQLite for tests): one live api per database, schema (core + platform tables), migrating SQLite data, NATS/FHIR, retention, reset, inspection |
| Data | GIS data, hospital profiles, fleet plan, scripts that regenerate them, where each dataset lives (served vs bundled), what is hardcoded, licences |
| Clinical values | Every medical number and mapping: published standards in code (NEWS2, RTS), tunable clinical cut-offs in config/, clinical mappings awaiting review, and how to change each |
| What is simulated | Every value on every screen (web, iOS) that is simulated, estimated, set in config or hardcoded rather than live, whether the UI says so, and what would make it real |
| Third-party components | The third_party/ clones and how each is (or is not) used |
| Dispatch evaluation | Dispatch evaluation: independent truth model, ablation outcomes, parameter sensitivity sweep |
| Tanglish evaluation | Tanglish pipeline v1 vs v2: span labels, transliteration, end-to-end triage, synthetic ASR |
| Speech recognition | ASR word and character error rates (WER, CER) by engine, language and noise condition (scripts/eval_asr.py; synthetic until consented recordings exist) |
| Road routing (OSRM) | Building the road graph |