Inspiration
I invest in stocks and spend hours analyzing if a stock is worth buying. Data is scattered and hard to use and also there are way too many parameters, numbers and aspects that you need to know and use inorder to make decision, so I created Plex al-gaib, an AI Investment Advisor, it does all those heavy analysis tasks, research, analyze live data, and give clear advice on buying, holding, or rejecting a stock with solid reasons and predictions.
What it does
Plex al-gaib is an AI-powered tool that acts like a human stock analyst. It:
- Analyzes stocks through a 10-step process, from basics to market trends.
- Gives a Buy, Watch, or Reject verdict with detailed reasoning.
- Shows price predictions, risks, and other key insights.
How I built it
Used Next.js 14 for the UI and API routes. The core AI uses Perplexity Sonar AI Models for quick data and OpenAI for deep analysis. Added caching with Upstash Redis, and built a clean UI with Tailwind CSS for a smooth experience.
Challenges I ran into
- Reserach the best way to decide whether to buy stock at that point or not, it took so much time, to prepare all details and then create a long Workflow using Sonar AI and making sure everything works properly in the long almost 2000 lines of code for AI workflow.
- Combining different AI outputs into reliable data was tricky. fixed it with a JSON repair tool.
- Getting live financial data to work consistently took a lot of error handling.
- Making a complex 10-step analysis easy to understand in the UI was tough. Did so many iterations.
Accomplishments that I'm proud of
- Built a detailed 10-step stock analysis pipeline powered by AI.
- Made the app reliable with automatic JSON fixes for data handling.
- Created a sleek, user-friendly design that simplifies complex info.
- Designed it to be easy to update or add new features.
What I learned
- How to create longer and complex AI Workflows with mix AI tools for fast data and deep insights.
- Used Sonar AI For first time and had no idea how good they were for live data.
- Managing live financial data and improving app speed and scale with caching.
- Structuring complex logic for financial decisions in a simple way.
What's next for Plex Al-Gaib
- Expand support for other assets like Crypto, Gold, etc....
- Make it Super Agent for Finnace.
- Use learning algorithms to make advice even better.
- Offer email updates for users automatically when the status changes to buy if its no bug.
- Build a dashboard to track portfolios and risks and entire net worth.
Built With
- next.js
- react
- redis
- sonar
- typescript
- vercel
Log in or sign up for Devpost to join the conversation.