Inspiration
Flood tools in Nairobi mostly show where water is. The real failure is the last mile: the warning arrives late, in the wrong language, or from someone nobody trusts. We built Wimbi (Swahili for "ripple") to decide who needs to hear what, from whom, and to check it against what neighbours are seeing.
What it does
Wimbi models Nairobi as two connected graphs: a water graph (rivers, areas, roads, drainage) and a people graph (residents linked by weighted trust).
- When rainfall rises, risk flows downstream area by area, with ETAs.
- Warnings then fan out through trusted community leaders instead of a generic blast.
- Each person gets a message matched to their role, language and vulnerability. A boda rider gets roads to avoid, a ground-floor tenant gets a move-first checklist, and an elderly resident gets a neighbour assigned to check on them.
- If a vulnerable person stays silent, the warning escalates to a trusted neighbour.
- Resident reports are verified against upstream neighbours and feed back into the risk model.
Four dashboards serve different audiences: Resident, Community Leader, Responder Command, and Accountability (reach, response times and escalations for county, funders and media). All people, places and reports are fictional sample data.
How we built it
Everything is written in Jac.
- Graph: areas, rivers, roads, people and reports are Jac nodes, linked by typed edges (
FlowsTo,Trusts,ReportedAt). - Agents: four walkers traverse and update the graph.
RiskPropagatormoves risk downstream.WarningRelaywalks the trust graph.SilenceEscalatorescalates unacknowledged vulnerable residents.ReportVerifierchecks reports against upstream neighbours and feeds the result back into risk.
- LLM: typed
by llm()functions write role- and language-specific warnings, verification reasoning and responder resource briefs, with deterministic fallbacks so the system still works without a model key. - UI: Jac full-stack client code, with no separate React or REST layer.
- Tests: Jac tests cover rainfall, warnings, escalation and report feedback.
Challenges we ran into
- Designing around the last mile instead of prediction, which is where most flood tools stop.
- Keeping the agents driven by the graph rather than a chain of prompts.
- Building a full-stack Jac app in a single overnight hackathon, while learning its client syntax and tooling.
- Making one shared state stay consistent across four different dashboards.
Accomplishments that we're proud of
- Two graphs and four cooperating walkers with a real feedback loop: rain, risk, warnings, escalation, verification, and back to risk.
- Personalised warnings that differ by role, language and vulnerability for the same flood.
- Four audience dashboards on one shared state, including an accountability view that makes every alert measurable.
- A design that degrades gracefully: it still works end to end without an LLM key.
What we learned
- In Jac, graph structure and walkers are a natural fit for problems made of relationships, such as water flow and community trust.
- A warning is only as good as its delivery. Who sends it matters as much as what it says.
- Fallbacks are essential for AI features, so a demo never depends on a single API call.
- Designing separate views for different stakeholders early makes the data model clearer.
What's next for WIMBI
- Real SMS/USSD delivery so warnings reach people without smartphones or data.
- Live rainfall and river-gauge data in place of the slider.
- Trust networks built with real community leaders and chamas, with consent and privacy built in.
- Letting the LLM make decisions as well as write messages, such as verdicts and escalation choices.
- A pilot with a Nairobi ward and county disaster teams.
Built With
- by-llm()-(byllm)
- jac
- jac-full-stack-client
- jachammer
- jaseci
- sms
- ussd