2026CompletedLLM/AI
Zubera Bot – AI Financial Advisory Assistant
Multi-LLM agent with memory, scheduling, search and finance tools

Metrics & Visuals
Agent Tools
DB Tables
384
Vector Dimensions
Demo videos
Persistent long-term memory across messages
Scheduled recurring tasks via tool-calling
Live web search with source comparison
Code generation and explanationRecorded on Telegram with an early build. Production channel: WhatsApp.
Overview
Individual investors lack access to affordable, personalized financial guidance. Professional advisors are expensive, and generic tools don't account for personal risk profiles, investment goals, or spending habits. Zubera Bot solves this by delivering an autonomous, multi-provider AI agent that offers personalized financial advisory through natural WhatsApp conversation — backed by real-time Indian market data, persistent user profiles, and a vector-powered knowledge base.
Key Features
- Risk-profiled mutual fund recommendations (Conservative / Moderate / Aggressive) with live NAV data from MFAPI India
- Goal-based investment planning — Retirement, Wealth, Emergency Fund, Child Education, Short-term
- Expense tracking across 7 categories with monthly summaries and category-wise breakdown in INR
- Real-time stock prices for global + NSE/BSE markets (e.g. TATAMOTORS.NS)
- RAG knowledge base powered by PostgreSQL vector store with semantic search across banking, personal, and general contexts
- Support ticket management with priority levels and full lifecycle tracking
- Per-user memory isolation — long-term MEMORY.md + daily date notes persisted across sessions
- Sub-agent delegation for complex multi-step tasks with up to 20 tool-call iterations per request
- Multi-modal support — text + image attachments (base64)
- Auto-reconnect on WhatsApp bridge disconnection with 5s retry
How It Works
- 1User sends a WhatsApp message → Node.js bridge (Baileys) forwards JSON over WebSocket
- 2WhatsAppChannel parses sender phone, content, timestamp → InboundMessage → MessageBus
- 3SessionManager retrieves ChatSession from PostgreSQL (last 50 messages)
- 4UserContextBuilder assembles LLM prompt: System Identity + User Memory + Conversation History
- 5LiteLLM call (8192 tokens, temp 0.7, 120s timeout) with iterative tool calling
- 6Final response → OutboundMessage → Bridge → WhatsApp; persisted to sessions + conversations tables
System Architecture
Users
WhatsApp
End users
Bridge
Node.js (Baileys)
WebSocket Bridge
Agent Core
Agent Loop
Tool calling
Context Builder
Prompt assembly
Tools
Finance Tool
Stocks + MF
Expense Tracker
RAG Knowledge
Web Search
Ticket Manager
Data & AI
LiteLLM Gateway
Multi-provider routing
PostgreSQL
11 tables + vector
External APIs
yFinance, MFAPI
Data Flow
WhatsApp→Node.js (Baileys)(Message)
Node.js (Baileys)→Agent Loop(WebSocket JSON)
Agent Loop→LiteLLM Gateway(LLM call)
Roadmap
- Frontend login/register UI with Supabase Auth
- Analytics dashboard with usage statistics
- Support for additional channels (Telegram, Slack)
- Webhook notifications for price alerts
- CI/CD pipeline for automated testing and deployment
Tech Stack
Backend
Python 3.11FastAPISQLAlchemy 2.0PostgreSQL 15LiteLLM
AI & LLMs
Google Gemini 2.0 FlashGroq Llama-3.3-70bAnthropic ClaudeOpenAI GPT-4Ollama (local)
Tools & Data
yfinanceMFAPI IndiaBrave SearchSentenceTransformersChromaDB
Infrastructure
DockerDocker ComposeNode.js 18 (Baileys)WebSocketNginx