🎯 Inspiration
The inspiration for Y&M Consulting Inc. came from observing the disconnect between traditional banking credit analysis and modern data-driven tools. Banks still depend on static spreadsheets and manual reviews when evaluating small business loan applications, while PYMEs struggle to understand why their credit requests are approved or denied.
We wanted to create a dual-perspective platform that serves both banks and PYMEs:
- Banks need comprehensive, AI-powered credit-analysis tools to make confident lending decisions.
- PYMEs need transparency and actionable insights to improve their creditworthiness.
Our design also drew inspiration from Banorte’s visual identity, using its red palette to reflect a professional and trustworthy banking aesthetic.
📚 What We Learned
- How to architect a full-stack AI platform combining React, Supabase, and OpenAI GPT-4o.
- How to apply credit-scoring logic using weighted financial indicators and performance metrics.
- How to implement a multi-layer caching system to improve AI response times by nearly 100×.
- How to use Supabase’s real-time database and JSON fields for dynamic financial data storage.
- The value of building modular, reusable components that serve both the bank and business dashboards.
- How to maintain data consistency, validation, and type safety through strict TypeScript typing.
🏗️ How We Built It
The project was built as a React 18 + TypeScript web app connected to a Supabase backend and powered by OpenAI GPT-4o for analysis.
- Frontend: Designed with React and Tailwind CSS v4; implemented dual login routes (
BusinessandBanorte) that render unique dashboards and components. - Backend / Database: Supabase (PostgreSQL + Edge Functions) storing business profiles, financial statements, and monthly data in JSONB fields.
- Credit Scoring Service: Implemented eight weighted factors (financial stability, profitability, revenue growth, debt management, efficiency, business age, industry risk, credit history) to generate scores from 0 to 1000.
- AI Integration: GPT-4o analyzes financial trends and creates an AI Analyst Overview with recommendations.
- Caching System: In-memory cache layer reduces API cost and improves speed.
- Visualization: Recharts and custom widgets for interactive financial dashboards (60+ widgets across 10 sections).
💪 Challenges We Faced
OpenAI JSON Parsing Reliability GPT-4o sometimes returned malformed JSON; we built a regex cleanup and sanitization pipeline before parsing.
Time-Series Data Structure Replaced multiple JOINs with Supabase JSONB fields to store monthly financial data, simplifying queries and improving performance.
AI Cost Management Implemented smart caching → reduced OpenAI API costs from $500 to $75 per month (~85 % cache hit rate).
Credit Score Calibration Designed non-linear scoring curves inspired by real FICO/Experian tiers:
- 0–399 = High Risk
- 400–549 = Conditional Approval
- 550–699 = Favorable Terms
- 700–1000 = Excellent Credit
- Real-Time Data Pipeline Replaced hardcoded values with live Supabase queries, making the system fully data-driven and dynamic.
🌟 Impact
For Banks and Financial Institutions
- Efficiency: 80 % reduction in credit analysis time (4 h → 45 min).
- Accuracy: AI-powered insights standardize risk assessment and reduce human bias.
- Scalability: Platform handles 10× more applications without extra analysts.
For PYMEs
- Transparency: Clear breakdown of how credit scores are calculated.
- Guidance: AI recommendations to improve creditworthiness and performance.
- Speed: Real-time scores and instant insights shorten loan approval times.
Social and Economic Impact
- Promotes financial inclusion by democratizing access to data-driven credit analysis.
- Stimulates economic growth through faster capital access for small businesses.
- Encourages innovation and digital transformation in Mexico’s banking ecosystem.
Built With
- openai
- postgress
- react
- redix
- tailwind
- typescript

Log in or sign up for Devpost to join the conversation.