Inspiration
The inspiration for SafeHold AI was born out of a very personal, persistent anxiety. As a teacher, I found myself in the role of an "accidental banker." Every week, students would hand me small amounts of cash—₦500 for a field trip, ₦200 for a workbook, ₦1,000 for a club fee. Without a dedicated system, I did what most teachers do: I put the cash in my wallet. My bank balance became a confusing sum of my personal funds and the collective student funds : The pain point was sharpest when my balance looked high, leading to "lifestyle creep" or accidental overspending. I would inadvertently spend where was actually student money. Calculating exactly how much I owed the "student pool" at any given moment was a manual nightmare, often resulting in me struggling to refund the ledger from my own salary. I realized that to solve this, I needed a system that strictly decoupled these funds and used intelligence to manage the records for me.
What it does
SafeHold AI is a sophisticated mobile-first fund management infrastructure. It allows teachers to: Instant Ledgering: Create individual accounts for every student. Natural Language Accounting: Use the Gemini 3 AI Assistant to process complex bulk operations (e.g., "Deduct ₦500 from all SS2 students for lunch") instead of manual clicking. Immutable Auditing: Every transaction is logged, creating a transparent "paper trail" that separates teacher activity from student fund movements. Admin Oversight: Provides school principals with a bird's-eye view of total system liquidity and AI-driven operations.
How we built it
We built SafeHold AI using a modern, resilient tech stack designed for speed and reliability: Frontend: React with a "Glassmorphic" UI/UX, utilizing Tailwind CSS for a professional, high-trust aesthetic. AI Engine: Gemini 3 Flash-preview. We specifically leveraged the Response Schema feature to ensure that natural language commands are converted into valid, structured JSON transaction arrays. Architecture: A serverless-ready client with a robust MockDB implementation for state persistence, ensuring the app works seamlessly as a standalone progressive web app.
Challenges we ran into
The primary challenge was the "Trust Gap." Financial data is sensitive; users are naturally wary of an AI "calculating" balances. The Logic Barrier: We had to ensure the math was bulletproof. If the AI proposed a change , the system had to validate that: UI Latency: Processing bulk rosters through an LLM can be slow. By switching to Gemini 3 Flash, we reduced the analysis time to sub-seconds, making the "AI Preview" feel like a native system feature rather than a remote call.
Accomplishments that we're proud of
Syntactic Integrity: Achieving 100% success in mapping unstructured teacher prompts to typed TypeScript interfaces using Gemini's structured output. Emotional Relief: Successfully building a "Human-in-the-loop" workflow. The AI suggests, but the teacher confirms. This design choice directly addresses the anxiety that inspired the project. Mobile-First Design: Creating an interface that feels like a premium banking app while being accessible enough for a busy classroom environment.
What we learned
We learned that Generative AI is the ultimate bridge between human intent and financial structure. In the past, software forced humans to speak the language of databases (forms, tables, buttons). With SafeHold AI, the software finally speaks the language of the teacher ("Take ₦500 from everyone in Grade 10"). We also learned that transparency is the key to AI adoption—by showing the "AI Analysis Complete" preview, we give the user confidence in the underlying math.
What's next for SAFEHOLD AI
OCR Receipt Scanning: Integrating Gemini's vision capabilities to allow teachers to snap a photo of a paper receipt and automatically attribute the expense to the correct student group. Real-time Parent Notifications: Generating automated SMS or WhatsApp summaries for parents when their child's balance is updated. Multi-currency Support: Expanding the LaTeX-supported ledger to handle different regional currencies for international schools. Predictive Liquidity: Using AI to forecast when a teacher might run low on student funds for upcoming scheduled events.
Built With
- enterprise-grade-design-system.-local-storage-(mockdb):-to-provide-a-persistent
- esm.sh
- gemini
- google-gemini
- offline-capable-experience-for-the-demo-environment.-esm.sh:-for-high-speed
- react19
- reactive-user-interface.-google-gemini-api:-specifically-the-gemini-3-flash-preview-model-for-lightning-fast-financial-reasoning.-typescript:-to-ensure-absolute-data-integrity-and-type-safety-in-transaction-handling.-tailwind-css:-for-a-professional
- tailwind
- typescript
Log in or sign up for Devpost to join the conversation.