Skip to Main Content

AgriTrade is a credit and inventory ledger for cereal traders in Ghana, upgraded with an AI assistant built on Meta's Muse Spark (muse-spark-1.3) that reads photographs of handwritten credit notebooks and turns them into verified, reviewable ledger proposals. THE PROBLEM In Ghana's grain markets, cereal traders run their entire business on credit from a paper notebook: cash advanced to smallholder farmers before planting, bags of maize or soya owed back at harvest, and buyers who take stock on credit and pay later. A single notebook holds tens of thousands of cedis in open balances. Paper notebooks get lost, torn, or miscalculated, and busy traders—many of whom prefer speaking or writing on paper over typing into forms, or who operate in Twi—do not have time for manual data entry. However, letting an AI write directly to a financial and stock ledger is dangerous: one hallucinated name, misread digit, or prompt injection could corrupt real money and inventory balances. THE SOLUTION AgriTrade bridges the paper notebook and the digital ledger using a strict "Propose -> Review -> Confirm" architecture: 1. Notebook Photo Import (Vision + Tool Calling): A trader photographs a page of their handwritten notebook. Muse Spark reads each line, searches the real database for matching farmers, buyers, open advances, and credit sales, and creates structured proposals (advances, bag repayments, credit sales, cash payments, or new farmer/customer records). It skips crossed-out or illegible rows and asks clarifying questions when names are ambiguous (e.g., when three people are named "Efua"). 2. Natural Language & Twi Chat: Traders can ask questions ("who owes me the most?", "what happened this week?") or log entries via text in English or Twi, backed by 19 read and propose tools. 3. Simple (Voice-First) Mode: For traders who aren't comfortable reading or typing, a full-screen mobile mode offers a single microphone button and reads responses aloud. 4. Safety by Architecture, Not Just Prompts: The AI has zero tools that write to the ledger or move stock. Its propose_* tools only create inert AiProposal records. Proposal cards display live database targets, the exact handwritten source row, the model's rationale ("Why:"), and confidence scores. Only when the trader taps Confirm does the server execute the transaction through existing ACID MongoDB transactions with idempotency locks. In live testing against real handwritten pages, this triple-layer defense caught an overpayment three times (flagged by the model's confidence, warned on the review card, and blocked by the ledger service) and defeated prompt-injection attempts because no confirmation tool exists for the model to call.

Team

More from Meta Global AI Developer Hackathon

Cardo turns the world around you into Kurdish flashcards. Kurdish is spoken by tens of millions of people, but it has very few learning tools, and most…

Kurdolingo project preview

oqed is an LLM-guided superoptimizer for x86-64. You point it at a C or C++ project and it does the rest: - builds the project and runs its workload…

oqed project preview

Playtest Agent plays a game from screenshots, looks for bugs, then replays each report and has a judge check it. I make games alone. Solo developers and…

Adrian project preview

Open-source npm malware detection on Meta's models: a live monitor that flags new malware about a day before the public lists, a Muse agent that investigates…

Gatekeeper project preview

Video2URDF turns one short phone video of a real articulated object (a laptop lid, a drawer, a desk lamp, a microwave door) into a measured URDF/MJCF a robot…

Video2URDF project preview

Glimmer Scope opens up Muse Glimmer 30B so you can see and steer the concepts it thinks with. I trained sparse autoencoders on nine layers of Glimmer's…

Kroonen AI project preview