💡 Inspiration The inspiration came from a simple observation: information overload is killing investment decisions.
Every day, thousands of news articles are published about companies, markets, and industries. Professional investors have Bloomberg terminals and analyst teams. But what about individual investors? They're drowning in noise, unable to separate signal from chaos.
We asked ourselves: What if AI could be your personal investment analyst?
That's when we discovered Google's Gemini 3 Flash - a model powerful enough to understand complex financial narratives, fast enough to process news in real-time, and intelligent enough to connect the dots across seemingly unrelated stories.
🎓 What We Learned AI is a Reasoning Engine, Not Just a Chatbot
Gemini 3 Flash can perform multi-step reasoning across complex financial scenarios It understands context, sentiment, and competitive dynamics The key is prompt engineering - we built specialized prompts for each analysis layer Knowledge Graphs are Game-Changers
Connecting entities (companies, people, events) reveals hidden patterns Stories evolve over time - tracking maturity (DEVELOPING → MATURE → ACTIONABLE) is crucial Graph-based analysis beats linear news feeds Real-Time is Hard
Web scraping is fragile - sites change, rate limits exist, content varies We built a dynamic scraper that adapts to different news sources Caching and async processing are essential for performance UX Matters in FinTech
Financial data is intimidating - we designed a "newspaper" aesthetic to make it approachable Color-coding (green for bullish, red for bearish) provides instant insights Progressive disclosure - show summaries first, details on demand Gemini 3 Flash is Production-Ready
Fast response times (< 2 seconds for complex analysis) Consistent output quality with structured prompts Cost-effective for real-time applications 🏗️ How We Built It Phase 1: Intelligence Layer (Days 1-2) Built web scrapers for NewsAPI, TechCrunch, Bloomberg Implemented entity extraction using Gemini 3 Flash Created knowledge graph to track companies, people, and events Developed story maturity classification (DEVELOPING → MATURE → ACTIONABLE) Phase 2: Analysis Engine (Days 3-4) Designed multi-layer AI analysis: Cognitive Layer: Investment thesis, conviction scoring, winners/losers Competitive Intelligence: Market positioning, competitive advantages Macro Context: Economic trends, market timing signals Sentiment Analysis: Trend detection across time Integrated Gemini 3 Flash for all AI operations Built comprehensive subreport generation Phase 3: Portfolio War Room (Days 5-6) Created AI-driven portfolio management Implemented signal generation (BUY/HOLD/EXIT/WATCH) Built risk assessment and exit strategy planning Added real-time alerts and opportunity discovery Designed "Investment War Room" UI with story integration Phase 4: Frontend Excellence (Days 7-8) Built modern React 19 + TypeScript frontend Designed newspaper-inspired UI for approachability Created interactive dashboards with Recharts Implemented responsive design for mobile/desktop Added real-time data synchronization Phase 5: Deployment & Polish (Day 9) Deployed backend to Render with auto-scaling Deployed frontend to Vercel with automatic GitHub deployments Configured CORS and environment variables Optimized build process and fixed TypeScript errors Created comprehensive documentation 🚧 Challenges We Faced Challenge 1: Gemini API Rate Limits Problem: Initial implementation hit rate limits during bulk analysis.
Solution:
Implemented request queuing and exponential backoff Added caching layer to avoid redundant API calls Batched similar requests together Challenge 2: Inconsistent Web Scraping Problem: Different news sites have different HTML structures.
Solution:
Built a dynamic scraper that adapts to different sources Used Newspaper3k for article extraction with fallbacks Implemented robust error handling and retry logic Challenge 3: Knowledge Graph Complexity Problem: Tracking relationships between entities across time is complex.
Solution:
Designed a story-centric graph structure Each story tracks its own entities and evolution Used NetworkX for graph operations and analysis Challenge 4: Real-Time Portfolio Updates Problem: Portfolio needs to reflect current market conditions and AI signals.
Solution:
Created enhanced portfolio endpoints with AI integration Linked portfolio positions to driving stories Implemented real-time signal calculation based on sentiment trends Challenge 5: TypeScript Build Errors in Production Problem: Vercel deployment failed due to unused imports.
Solution:
Set up local build testing before deployment Fixed TypeScript strict mode errors Configured proper build pipeline with type checking Challenge 6: UX for Complex Financial Data Problem: Financial analysis is inherently complex and intimidating.
Solution:
Designed "newspaper" aesthetic for approachability Used progressive disclosure (summaries → details) Color-coded signals (green/red) for instant understanding Added onboarding steps for empty states 🎨 Design Philosophy We wanted to make professional-grade investment intelligence accessible and beautiful:
Newspaper Aesthetic: Inspired by financial newspapers (WSJ, FT)
Serif fonts for readability Border-heavy design for structure Cream/beige backgrounds for warmth Signal-First Design:
AI signals (BUY/HOLD/EXIT/WATCH) are prominent Color-coding provides instant insights Risk levels clearly displayed Story-Driven:
Every investment is linked to a story Track story evolution over time Understand the "why" behind recommendations 🔬 Technical Deep Dive AI Architecture News Articles → Entity Extraction (Gemini 3 Flash) ↓ Knowledge Graph ↓ Multi-Layer Analysis (Gemini 3 Flash) ├── Cognitive Layer (Thesis, Conviction) ├── Competitive Intelligence ├── Macro Context └── Sentiment Trends ↓ Portfolio War Room (AI Signals) Key Algorithms Story Maturity Classification
Analyzes entity count, article frequency, sentiment stability Classifies as DEVELOPING, MATURE, or ACTIONABLE Uses Gemini 3 Flash for nuanced understanding AI Signal Generation
Combines sentiment trends, risk levels, and story maturity Generates BUY/HOLD/EXIT/WATCH signals with confidence scores Provides reasoning for each signal Risk Assessment
Analyzes volatility, sector exposure, position concentration Calculates risk scores (LOW/MEDIUM/HIGH) Suggests exit strategies based on risk profile 📊 Impact & Results 28 Stories Analyzed with comprehensive AI insights 1 Active Portfolio Position with real-time AI signals 5 AI Analysis Layers providing multi-dimensional intelligence < 2 Second Response Time for complex analysis 100% Gemini 3 Flash Powered - showcasing latest AI capabilities
Built With
- beautifulsoup4
- fastapi
- github
- google-gemini-3-flash-preview
- google-gemini-api
- json-storage
- knowledge-graphs
- natural-language-processing
- networkx
- newsapi
- newspaper3k
- pydantic
- python-3.11
- react-19
- react-router
- recharts
- render
- scraping
- shadcn/ui
- tailwind-css
- typescript
- vercel
- vite-7
- web
Log in or sign up for Devpost to join the conversation.