We initially looked at a mobile laser tag concept, but looking at the FNB challenge, we realized that most banking apps just show you the raw numbers, but they don't give you the tools to understand how to make good financial decisions. We wanted a co-pilot that helps users navigate their daily spending limits and highly important decisions, like dodging predatory loans.

What it does

Mercer is a two part financial resource.

  • AI loan auditor: Users can upload text-based PDF loan contracts, supporting files up to 12MB and 80 pages. The app extracts the principal, stated APR, and term, and then using a custom prompt with OpenAI gpt-4o-mini to scan for predatory clauses. It outputs a transparent risk score from 0-100 and highlights the exact problematic clauses on the original PDF.

  • Safe-to-spend: Instead of showing only a raw balance, the app calculates a user's actual cash flow capacity by analyzing the user's transaction history from a CSV upload, protecting their saving goals, upcoming bills, and an emergency fund.

How we built it

We built the full-stack web application in Python, using HTML/CSS/JS for a reactive, bank deployable frontend dashboard. Document parsing is powered by PyMuPDF, and reportlab handles the generation of PDFs. To ensure trust, we strictly separated LLM text extraction from the underlying math. OpenAI gpt-4o-mini is constrained to output JSON and exact substrings to avoid hallucination. The model never calculates the numbers. All financial modeling is handled by deterministic Python functions.

Challenges we ran into

Our first issue was simply choosing a concept, as we spent time debating between this banking suite or a Mobile QR code laser tag app. Additionally, since we were building something that is purely web-based, it was difficult to coordinate 5 members to use the same libraries while integrating all of their projects together at the end.

Accomplishments that we're proud of

We proved our core thesis, which is that: Trust is a feature. By separating the AI's compression from the deterministic math calculators, and forcing the app to cite its sources and highlight exact contract clauses, we built something that a bank could legitimately deploy without having to worry about AI hallucinations.

What we learned

We learned how much constraints matter when AI is dealing with money. A general-purpose chatbot isn’t safe to make judgements about legal contract, because it can sound confident while hallucinating. Mercer works because the model only extracts the prompt forces structured JSON with exact quotes, we verify every quote against the contract text, and all the math runs in deterministic Python. Where we do let users ask follow up questions, the model is limited to the contract’s specific words and told to say so when the contract doesn’t cover something.

What's next for Mercer FNB?

  • Scanned contracts. Today we only read text-based PDFs. Adding OCR would let people photograph a paper contract at a dealership or branch and audit it on the spot.
  • Live bank data. Safe-to-spend currently runs on a CSV upload. Connecting to real account data (through a bank’s own API) would make the forecast update automatically as bills post and paychecks land. You'd also be able to add/remove any predicted expenses to ensure accuracy.
  • Real rate comparison. We’d partner with lenders for verified, personalized quotes. Mercer could then rank offers by true total cost and show whether a payment fits the user’s safe-to-spend number.
  • A validated risk score. Our 0 to 100 score is a transparent heuristic. We’d test it against labeled real-world contracts and with consumer finance experts, and extend it to variable-rate and payday-style loans.
  • Bank-grade privacy. We’d add automatic redaction of personal identifiers before any text reaches the model, plus an option to run the extraction step on a private, bank-hosted model.

Built With

Share this project:

Updates

Submission history