Lucent
illuminate your finances
The problem Lucent solves
Problem Statement
Managing personal and shared finances is often fragmented, time-consuming, and lacks intelligent insights. Most users rely on multiple apps—one for budgeting, another for investments, and yet another for expense sharing—without a unified view of their overall financial health.
Additionally, existing solutions either focus on individual expense tracking or basic analytics but fail to offer AI-driven insights, group collaboration features, or actionable financial recommendations tailored to user behavior.
⸻
Core Problems We Are Solving
-
Lack of Unified Financial Visibility
People struggle to understand their complete financial picture across savings, expenses, investments, and goals because data is scattered across multiple tools and accounts. -
Inefficient Group Expense Management
Managing shared expenses among friends, families, or teams (like trips, flatmates, or projects) often leads to confusion and manual settlements due to poor transparency and lack of automated calculations. -
Absence of Personalized Financial Insights
Users receive generic budgeting suggestions that don’t reflect their real financial behavior. There’s no AI layer that interprets transactions, predicts spending trends, or recommends smarter saving strategies. -
Cognitive Overload in Financial Decision-Making
Most users find financial tracking intimidating or tedious. They need intuitive dashboards that simplify data and provide actionable insights without requiring deep financial knowledge. -
Limited Financial Awareness and Goal Tracking
People often set financial goals (like saving for a trip, emergency fund, or investments) but lose track of progress. There’s no intelligent system to connect daily habits with long-term goals.
Challenges we ran into
Challenges Faced
- Technical Challenges
CORS Policy Restrictions
Connecting the Flask backend and Vite frontend caused CORS errors due to missing headers and preflight failures. The issue was resolved by configuring Flask-CORS correctly and adding global response headers to ensure all routes returned proper access control headers.
Backend Errors and API Instability
The AI Insights endpoint frequently returned HTTP 500 errors because of response structure mismatches with the Gemini API. The function was refactored with structured exception handling and dynamic response parsing to handle inconsistent API outputs.
Data Synchronization Between Backend and Frontend
Differences in response field names (e.g., merchant vs description) caused undefined data on the frontend. The issue was fixed by standardizing key names and adding null-safe rendering in React components.
Vercel Deployment Failure (404 Error)
After deployment, Vercel returned a 404 error because the platform could not detect the correct build output. Adding a vercel.json configuration file specifying the build and routing fixed this issue.
Database Relationship and Serialization Issues
Expense data was stored successfully but not displayed on the frontend due to improper relationship mapping and missing model imports. This was fixed by refreshing the database session and serializing related models properly.
JWT Authentication and Token Validation
Requests were being rejected due to missing or expired tokens. The frontend was updated to auto-create or re-login users when no valid token was found, improving reliability across API requests.
⸻
- Business Challenges
Integration of Financial APIs
Finding and integrating reliable, free-tier financial APIs (like Finnhub for market news) was challenging due to limited requests and inconsistent data formats.
AI Insight Validation
Generating financially meaningful insights from the Gemini model required iterative prompt tuning and handling unpredictable model responses, impacting result accuracy.
Product Scope Alignment
Balancing technical complexity (AI, analytics, and finance tracking) with development speed was difficult. The scope had to be optimized to deliver a functional MVP within time constraints.
Deployment and Environment Management
Maintaining consistent environments between local and production was a recurring challenge due to differing configurations, environment variables, and ports.
User Experience and Data Clarity
Designing a dashboard that communicated complex financial data clearly required multiple UI iterations to maintain visual balance and functional clarity.
Tracks Applied (1)
Best Use of Gemini API
Major League Hacking
