Inspiration

Imali AI: Africa's smartest AI Business OS. Imali AI runs the books, stock and sales of shops, suppliers and company groups. It works on WhatsApp, the web and Android. Some merchants carry a keypad phone that cannot run WhatsApp or any app, and data costs money. Those phones can still dial a short code and send a text. That is the old technology we brought back: the dialled menu (USSD) and the plain text message. Rules read what the owner types, and an optional model reader helps with messages the rules cannot read.

What it does

The owner dials a short code or sends a plain text such as sold 3 bread 45 or Tendai owes 20 sugar. The ledger saves the sale, expense, credit or payment in whole cents and replies with the new figure. It works on any phone that can dial a code or send a text, with no data bundle and no app.

  • Record a sale, an expense, money owed and money paid back, from the menu or by text. Both channels find the shop by the same phone number, so a sale typed by text shows in the menu and the other way round.
  • undo reverses the last record by adding a reversal. Nothing is deleted, so the history stays whole.
  • Ask for today's figures, who owes what, and the closing summary for the day.
  • When a message could mean two things, such as sold 2 200, the ledger asks which one before it saves.
  • Fixed rules read the common message shapes. An optional model reader suggests a reading for a message the rules cannot read, and the ledger keeps it only if the amount and the name appear in the owner's own words.
  • Seven currencies (ZAR, USD, KES, NGN, GHS, ZMW, BWP), each shop's day in its own time zone.
  • Every menu screen fits 182 characters and every text reply 160, in plain ASCII. A check plays every screen with long, realistic data in all seven currencies; the longest menu screen it found was 178 characters and the longest reply 158.
  • One command exports the whole ledger as one JSON file in an open, documented format, so the owner keeps a full copy of the books.

Judges have no African SIM card, so the demo page draws a working candybar phone. It calls the same handler that answers Africa's Talking's sandbox on *384*46254# and the short code 46254.

How we built it

Kiro wrote the application code: the ledger core, the text-message reader and handler, the dialled menu, the server and its Postgres store, and the browser phone. We wrote the steering files, the briefs that started each spec and the reviews; every fault a review found went back to Kiro as a new task. The stack is TypeScript on Node.js 22, Hono for the routes, a Postgres database for the records and an optional model reader. docs/built-with-kiro.md in the repository says how we used Kiro.

Challenges we ran into

Fitting every answer into 182 and 160 characters across seven currencies took a check of its own, which a Kiro hook runs on every save. Africa's Talking can send the same text callback twice, so the ledger needed a guard that answers a repeat with the first reply and saves nothing new. The database tests also got in each other's way, because a setting that should have kept each suite in its own part of the database was lost on the way in; the test helper now sets it another way and refuses to run if it did not take.

Accomplishments that we're proud of

All 246 tasks across five specs are ticked. The full suite passed 2,178 tests against a Postgres test database on 8 November 2026. Three review rounds ended with nothing left to fix.

What we learned

Most of what our reviews found sat where a spec was silent. A rule written once into the steering or a spec held for every later task, and a review finding went back as a task with a test that failed first.

What's next for Imali AI feature-phone ledger

The export is in an open, documented format, so an owner who moves to a smartphone can take the books along to Imali AI on WhatsApp; Imali AI's import is built separately from this repository. Next comes a live short code on a mobile network.

Built With

Share this project:

Updates

Submission history