Skip to content

Latest commit

Β 

History

9 Commits

Folders and files

NameName
Last commit message
Last commit date
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ’° Investment Advisor Bot

An AI-assisted investment recommendation platform that converts a simple 5-question assessment into personalized investment strategies.

Assess Risk β€’ Match Investments β€’ Generate AI Explanations β€’ Make Better Financial Decisions

Node.js Express React TypeScript TailwindCSS Gemini License


πŸŽ₯ Demo

Demo Video: (Add YouTube or Loom link here)

Live Preview: (Add deployment link here)

Landing Page


πŸš€ Why Investment Advisor Bot?

Most beginner investors struggle to choose investments that align with their financial goals and risk tolerance.

Investment Advisor Bot simplifies this process through a guided questionnaire. Instead of relying entirely on AI, the platform uses a deterministic rule-based recommendation engine to generate transparent, explainable investment suggestions, while Gemini AI provides personalized explanations in natural language.

This approach ensures recommendations remain consistent, auditable, and reliable.


✨ Highlights

  • πŸ“Š Rule-based risk assessment engine
  • πŸ€– AI-generated investment explanations
  • πŸ’Ό Personalized investment portfolios
  • πŸ“ˆ Three recommendation tiers
  • ⚑ Fast React + Express architecture
  • πŸ”’ Deterministic recommendation logic
  • 🧠 Explainable AI responses
  • πŸ“± Responsive user interface

πŸ“Œ Features

Feature Status
Five-Step Questionnaire βœ…
Risk Profile Generation βœ…
Investment Matching Engine βœ…
Safe Portfolio βœ…
Balanced Portfolio βœ…
Aggressive Portfolio βœ…
Gemini AI Explanations βœ…
Offline Fallback Explanations βœ…

πŸ— Architecture

             User
              β”‚
              β–Ό
      React Frontend
              β”‚
              β–Ό
      Express API Server
              β”‚
              β–Ό
      Risk Scoring Engine
              β”‚
              β–Ό
   Instrument Matching Engine
              β”‚
              β–Ό
 Curated Investment Dataset
              β”‚
              β–Ό
 Gemini Explanation Generator
              β”‚
              β–Ό
 Personalized Recommendations

Detailed architecture and product specification are available in docs/PRODUCT_SPEC.md.


πŸ“· Application Preview

Landing Page

Landing

Questionnaire

Questionnaire


βš™ Tech Stack

Frontend

  • React
  • TypeScript
  • Vite
  • Tailwind CSS

Backend

  • Node.js
  • Express.js
  • TypeScript

AI

  • Gemini API

Data

  • Curated JSON Instrument Database

🧠 Recommendation Pipeline

User Answers
      β”‚
      β–Ό
Risk Score Calculation
      β”‚
      β–Ό
Instrument Matching
      β”‚
      β–Ό
Generate Safe Portfolio
Generate Balanced Portfolio
Generate Aggressive Portfolio
      β”‚
      β–Ό
Gemini AI Explanation
      β”‚
      β–Ό
Final Recommendations

πŸ“‚ Project Structure

financial-advisor-bot/

β”œβ”€β”€ backend/
β”‚   β”œβ”€β”€ controllers/
β”‚   β”œβ”€β”€ services/
β”‚   β”œβ”€β”€ routes/
β”‚   β”œβ”€β”€ middleware/
β”‚   β”œβ”€β”€ models/
β”‚   β”œβ”€β”€ config/
β”‚   └── data/

β”œβ”€β”€ frontend/
β”‚   β”œβ”€β”€ components/
β”‚   β”œβ”€β”€ pages/
β”‚   β”œβ”€β”€ hooks/
β”‚   β”œβ”€β”€ context/
β”‚   β”œβ”€β”€ services/
β”‚   └── types/

└── docs/

πŸš€ Getting Started

Clone the repository

git clone https://github.com/Zoro-1012/investment-advisor-bot.git

cd investment-advisor-bot

Backend

cd backend

npm install

cp .env.example .env

npm run dev

Backend runs at

http://localhost:4000

Frontend

cd frontend

npm install

cp .env.example .env

npm run dev

Frontend runs at

http://localhost:5173

πŸ”‘ Environment Variables

GEMINI_API_KEY=YOUR_API_KEY

πŸ”„ Recommendation Flow

  1. User answers five financial questions.
  2. Risk tolerance is calculated.
  3. Investment instruments are matched using deterministic rules.
  4. Three investment portfolios are generated.
  5. Gemini AI creates personalized explanations.
  6. Fallback templates are used if Gemini is unavailable.
  7. Final recommendations are displayed.

πŸ“ˆ Recommendation Categories

🟒 Safe

Low-risk investments for capital preservation.

🟑 Balanced

Moderate risk with balanced growth.

πŸ”΄ Aggressive

High-risk investments with higher return potential.


🎯 Design Philosophy

Unlike many AI financial assistants, Investment Advisor Bot does not rely on an LLM to make investment decisions.

Instead:

  • Recommendation logic is deterministic and explainable.
  • AI is responsible only for natural-language explanations.
  • The recommendation engine remains fully functional even if Gemini is unavailable.

This architecture improves reliability, transparency, and auditability.


πŸš€ Roadmap

Future improvements include:

  • User authentication
  • Portfolio history
  • Live stock & ETF APIs
  • Mutual fund integrations
  • Portfolio comparison
  • Goal tracking
  • Tax optimization
  • Investment simulations

🀝 Contributing

Contributions, ideas, and feature requests are welcome.

Please open an Issue or Pull Request.


⭐ Support

If you found this project useful, please consider giving it a Star ⭐.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages