Inspiration
From financial year 2023-24 through 2025-26, people in India reported more than ₹56,087 crore in cyber-fraud complaints. In the same period, more than ₹9,079 crore was marked as lien and more than ₹206 crore was refunded (Ministry of Home Affairs, 22 July 2026). In 2025, senior citizens filed 1,03,488 financial-fraud complaints reporting ₹4,005.12 crore.
Fast reporting through the 1930 helpline can still get money frozen. But the first hour is also when a victim is least able to dig an amount, a time and a transaction reference out of a pile of messages. I built GoldenHour for that hour, especially for older people and the family members who help them.
What it does
You paste the bank SMS and the call log. GoldenHour:
- reads the amount, time, UTR, payee UPI ID and bank, and flags values you should check
- suggests the scam type and builds a checklist with a golden-hour timer
- lays out a complaint packet in the order used by the 1930 helpline and the cybercrime portal, with copy buttons
- writes the complaint narrative, a call script it can read aloud, and a dispute letter to the bank, with Tamil and Hindi versions of the letter
- checks "we can get your money back" messages, because a fee for recovery is often a second scam
On the web app you can also check a bank statement PDF and share a redacted copy of a case with a family helper.
How I built it
The web app is React and TypeScript, using Firebase AI Logic hybrid inference with Gemini Nano in Chrome. The iOS app is SwiftUI, with Apple's on-device model through the Foundation Models framework and Gemini through Firebase AI Logic. Each platform has one router that decides where a feature runs:
- On device only: reading evidence, classifying the scam, finding names to redact, and the recovery-scam check. Remote Config cannot move these to the cloud.
- On device first: the complaint narrative and the call script.
- Cloud first: the dispute letter.
- Cloud only: Tamil and Hindi, the statement check, and a fallback reading when no on-device model is available.
Before a cloud call, values such as account numbers and UPI IDs are replaced with tokens like [ACCT_1]. A consent sheet shows the exact text that will be sent, and warns you if the on-device name check could not run. Each cloud request goes into a privacy ledger on the device. The app checks the tokens in the reply and puts the real values back locally. Every AI result shows where it ran, which model produced it and how long it took.
The rest of the stack is App Check, Remote Config, Firestore, Authentication and Hosting.
Challenges
Schema validation passed my local tests and then failed on the hosted site, because the content security policy blocked the code the validator generated at run time. I switched to precompiled validators.
Apple's on-device model refused to classify one of my demo cases, a UPI collect request, so the app lets the person pick the type. On a call log it also made up values, which the validators flagged for review.
In a hosted test, the cloud model wrote a phone token into a call script for a number the case didn't have. The token check threw the reply away, and I fixed the prompt.
The free tier limits how often I can call the cloud. The app waits out a short rate limit once and retries server errors. Grounded guidance is built but switched off, because Google Search grounding had no free quota on my project.
Results
On 30 synthetic development cases in Chrome, Gemini Nano matched 94.2% of reviewed extraction fields, and 96.7% with validators. Scam classification was 86.7% accurate on 30 cases, and the recovery-scam check 90.0% on 10. Median on-device latency was about 8.5 seconds. I have not run the held-out set yet.
What I learned
Deciding what runs where was mostly a privacy decision. Raw evidence is the most sensitive thing the person has, so the features that read it are locked to the device. I also learned to test the hosted build with real models early, since some bugs only showed up there.
What's next
I want to finish testing the iOS offline queue and helper sync between iOS and web, then run the held-out evaluation and do an accessibility pass.
Built during #BuildHybridAI 2026 with Claude Code, Codex and Firebase Agent Skills.