click here to view the application : https://llm-wealth-advisor.vercel.app/ A sophisticated AI-powered financial advisor chatbot integrated into Wallet Wealth's website, providing personalized investment guidance, portfolio analysis, and financial planning assistance.
- 🤖 AI-powered financial advisory using Groq/Llama 3.3 70B
- 💼 Portfolio analysis and recommendations
- 📊 Real-time financial guidance for Indian markets
- 🔒 Secure authentication and admin dashboard
- 📱 Responsive web interface
- 🚀 Production-ready Vercel deployment
- 📅 Appointment booking system with email notifications
- FastAPI - High-performance Python web framework
- Groq API - LLM inference with Llama 3.3 70B
- Vercel Serverless - API functions deployment
- Python 3.12 - Runtime environment
- React 18 - UI framework
- TypeScript - Type-safe JavaScript
- Tailwind CSS - Utility-first CSS framework
- React Router - Client-side routing
- Vercel - Full-stack deployment
- GitHub Actions - CI/CD pipeline
- EmailJS - Email notification service
- Python 3.10+
- Node.js 18+
- Groq API Key (console.groq.com)
- Git
- Clone the repository:
git clone https://github.com/Msundara19/LLM-wealth-advisor.git
cd LLM-wealth-advisor- Set up environment variables:
cp .env.example .env
# Edit .env with your API keys and configuration- Start Backend:
cd backend
python -m venv venv
source venv/bin/activate # On Windows: venv\Scripts\activate
pip install -r requirements.txt
export GROQ_API_KEY=your_groq_key
uvicorn app.main_minimal:app --reload --port 8000- Start Frontend:
cd frontend
npm install
npm start- Access the application:
- Frontend: http://localhost:3000
- Backend API: http://localhost:8000
- API Docs: http://localhost:8000/docs
LLM-wealth-advisor/
├── api/ # Vercel Serverless Functions
│ ├── chat.py # AI chat endpoint
│ ├── appointments.py # Booking endpoint
│ └── index.py # Health check
├── backend/
│ ├── app/
│ │ ├── api/ # API routes
│ │ ├── core/ # Config, database, security
│ │ ├── models/ # SQLAlchemy models
│ │ ├── services/ # Business logic
│ │ └── main_minimal.py # FastAPI application
│ ├── tests/
│ └── requirements.txt
├── frontend/
│ ├── src/
│ │ ├── components/ # Navbar, Footer
│ │ ├── pages/ # Home, Chat, Appointment, Admin
│ │ └── App.tsx
│ ├── tailwind.config.js
│ └── package.json
├── vercel.json # Deployment configuration
└── README.md
- Push to GitHub
- Import project on Vercel
- Add environment variables:
GROQ_API_KEY- Your Groq API keyREACT_APP_EMAILJS_SERVICE_ID- EmailJS service IDREACT_APP_EMAILJS_TEMPLATE_ID- EmailJS template IDREACT_APP_EMAILJS_PUBLIC_KEY- EmailJS public key
- Deploy!
- Open in Codespaces
- Run backend:
cd backend && uvicorn app.main_minimal:app --reload --port 8000 - Run frontend:
cd frontend && npm start - Access via forwarded ports
| Method | Endpoint | Description |
|---|---|---|
POST |
/api/chat |
Send message to AI advisor |
POST |
/api/appointments |
Book an appointment |
GET |
/api/appointments?admin_token=xxx |
List appointments (admin) |
GET |
/api |
Health check |
curl -X POST https://llm-wealth-advisor.vercel.app/api/chat \
-H "Content-Type: application/json" \
-d '{"message": "What are the best mutual funds for beginners?"}'- All admin endpoints require authentication
- API keys stored as environment variables
- CORS configured for production domains
- No sensitive data exposed in client code
Wallet Wealth LLP is a SEBI-registered Investment Advisor (Registration: INA200015440) based in Chennai, India.
Services:
- Mutual Fund Advisory
- Portfolio Management
- Financial Planning
- Tax Planning
- Retirement Planning
- Insurance Planning