
Voice & chat multi-agent AI financial advisory and cashflow intelligence for SMEs
FinVox is an enterprise-grade AI Financial Advisory system engineered specifically for Small and Medium Enterprises (SMEs). Built on a parallel LangGraph multi-agent architecture, it empowers business owners to manage finances, analyze cash flow, and verify compliance through natural voice and text. Who is it for? - SME owners, startup founders, and financial controllers who need real-time cash flow intelligence without expensive consulting fees or spreadsheet clutter. What problems does it solve? 1. Cash Flow & Burn Rate Analysis: Automatically converts raw CSV ledgers into dynamic PostgreSQL tables to answer complex queries (burn rate, runway, net cash margins, expense anomalies) via Text-to-SQL. 2. Ultra-Low Latency Voice Agent: Powered by LiveKit WebRTC, Deepgram STT, and ElevenLabs TTS, delivering conversational voice consultation with sub-second response times and barge-in interruption handling. 3. Document RAG: Extracts invoice line items, payment terms, and vendor clauses from uploaded PDFs using hybrid vector search (Qdrant). 4. Real-Time Tax & Regulatory Compliance: Searches official government tax portals (ird.gov.lk, treasury.gov.lk) for live VAT, SSCL, and corporate tax rates. 5. Strategic Investment Guidance: Evaluates short-term cash surpluses against Treasury Bills (CBSL) and fixed-income yields.
FinVox is an enterprise-grade Conversational Voice & Chat Multi-Agent Financial Advisory Platform engineered for Small and Medium Enterprises (SMEs).
This guide walks through cloning, configuring, database provisioning, and launching the full stack from scratch.
graph TD
User["๐งโ๐ผ User (Browser / Mobile)"]
subgraph Frontend["๐ป Frontend (Port 5173)"]
ReactUI["React 19 + TypeScript + Vite"]
Recharts["Recharts Visualizations"]
LiveKitClient["LiveKit WebRTC Audio Client"]
end
subgraph Backend["โ๏ธ Backend (Port 8000)"]
FastAPI["FastAPI (Async REST & SSE Stream)"]
LangGraph["LangGraph Multi-Agent Orchestrator"]
Router["Intent Router & Guardrail"]
VoiceAdapter["LiveKit Voice LLM Adapter"]
end
subgraph ExternalServices["โ๏ธ Data & AI Infrastructure"]
Supabase["Supabase (PostgreSQL + pgvector)"]
Qdrant["Qdrant Cloud (Document Vector DB)"]
OpenAI["OpenAI / Groq (LLM Inference)"]
LiveKitCloud["LiveKit Cloud (WebRTC Voice SFU)"]
Deepgram["Deepgram (Nova-3 Speech-to-Text)"]
ElevenLabs["ElevenLabs (Turbo v2.5 Text-to-Speech)"]
Tavily["Tavily (Live IRD / Market Search)"]
end
User <-->|HTTP / SSE / WebRTC| Frontend
Frontend <-->|REST / SSE| FastAPI
Frontend <-->|LiveKit Audio Stream| LiveKitCloud
FastAPI <--> LangGraph
LiveKitCloud <--> VoiceAdapter
VoiceAdapter <--> LangGraph
LangGraph <--> ExternalServices
pgvector), Qdrant Cloud (Vector store & CAG cache).Ensure you have the following installed on your machine:
| Requirement | Minimum Version | Verification Command |
| :--- | :--- | :--- |
| Python | 3.11 or higher | python --version |
| Node.js | 18.0 or higher | node -v |
| npm | 9.0 or higher | npm -v |
| Git | 2.30 or higher | git --version |
Before starting, register and collect API keys for the following services:
Database Connection String (Session Pooler URI), Project URL, and Service Role Key.QDRANT_URL and QDRANT_API_KEY.OPENAI_API_KEY (used for synthesis and GPT-4o-mini routing).GROQ_API_KEY (used for ultra-fast structured extraction).LIVEKIT_URL, LIVEKIT_API_KEY, and LIVEKIT_API_SECRET.DEEPGRAM_API_KEY (for speech-to-text).ELEVEN_API_KEY (for text-to-speech audio synthesis).TAVILY_API_KEY (for live IRD tax portal queries).git clone https://github.com/dinod001/FinVox.git
cd FinVox
python -m venv .venv
.\.venv\Scripts\activate
python -m pip install --upgrade pip
pip install -r requirements.txt
python3 -m venv .venv
source .venv/bin/activate
python -m pip install --upgrade pip
pip install -r requirements.txt
Create a .env file in the root project directory by copying the template below:
# ============================================================================
# Qdrant Cloud (Vector Knowledge Base for Documents & Semantic Cache)
# ============================================================================
QDRANT_URL=https://xxxxxxxx.us-west-1-0.aws.cloud.qdrant.io
QDRANT_API_KEY=your_qdrant_api_key
QDRANT_COLLECTION_NAME=finvox
# ============================================================================
# Supabase (CRM, User Sessions, Short-Term & Long-Term pgvector Memory)
# ============================================================================
# Use Transaction or Session Pooler URI on port 5432 or 6543
SUPABASE_DB_URL=postgresql://postgres.yourproject:[email protected]:5432/postgres
SUPABASE_URL=https://yourproject.supabase.co
SUPABASE_SERVICE_KEY=your_supabase_service_role_key
# ============================================================================
# LLM Providers
# ============================================================================
OPENAI_API_KEY=your_openai_api_key
GROQ_API_KEY=your_groq_api_key
OPENROUTER_API_KEY=your_openrouter_key_optional
# ============================================================================
# Real-Time Voice Pipeline (LiveKit + STT + TTS)
# ============================================================================
LIVEKIT_URL=wss://your-project.livekit.cloud
LIVEKIT_API_KEY=your_livekit_api_key
LIVEKIT_API_SECRET=your_livekit_api_secret
DEEPGRAM_API_KEY=your_deepgram_api_key
ELEVEN_API_KEY=your_elevenlabs_api_key
# ============================================================================
# Search & Web Intelligence
# ============================================================================
TAVILY_API_KEY=your_tavily_api_key
# ============================================================================
# Observability (Langfuse - Optional)
# ============================================================================
LANGFUSE_PUBLIC_KEY=your_langfuse_public_key
LANGFUSE_SECRET_KEY=your_langfuse_secret_key
LANGFUSE_BASE_URL=https://us.cloud.langfuse.com
FinVox requires database schemas for users, sessions, table registries, and pgvector embeddings. Initialize the database by running:
python scripts/setup/init_test_db.py
This script connects to Supabase, enables the vector extension, and builds:
users โ User credentials and profiles.chat_sessions โ Active and archived chat sessions with auto-titling.st_messages โ Short-term sliding-window conversation turns.mem_vectors โ Long-term semantic user facts with HNSW cosine similarity index.table_registry โ Metadata catalog for user-uploaded CSV/Excel financial ledgers.Open a new terminal window, navigate to the frontend directory, and install dependencies:
cd ui/finvox
npm install
To run the full FinVox platform, start the three services in separate terminal tabs:
From the project root:
# Windows
.\.venv\Scripts\activate
uvicorn src.api.main:app --reload --host 0.0.0.0 --port 8000
# macOS / Linux
source .venv/bin/activate
uvicorn src.api.main:app --reload --host 0.0.0.0 --port 8000
http://localhost:8000/docshttp://localhost:8000/healthFrom the project root:
# Windows
.\.venv\Scripts\activate
python -m src.voice.run dev
# macOS / Linux
source .venv/bin/activate
python -m src.voice.run dev
When this connects successfully, you will see:
โ Voice worker registered and waiting for LiveKit room participants.
From the ui/finvox directory:
cd ui/finvox
npm run dev
Open your browser and navigate to:
๐ http://localhost:5173
FinVox supports dynamic dataset ingestion for both structured ledgers (CSVs) and unstructured documents (PDFs).
Upload via the Ingestion UI at http://localhost:5173/ingest or run the CLI ingestion script:
python scripts/ingest_file.py --file data/sample/apex_technologies_cashflow_ledger_2026.csv --user test_user_finvox
Upload data/sample/sample_invoice.pdf via the UI or CLI:
python scripts/ingest_file.py --file data/sample/sample_invoice.pdf --user test_user_finvox
To verify the installation and agent workflows, run the test suites:
# Run all unit and integration tests
pytest tests/ -v
# Run orchestrator and multi-agent tests
pytest tests/test_orchestrator.py -v
# Run chunking and vector ingestion tests
pytest tests/test_ingest.py -v
5432 or 6543) with pool_pre_ping=True. If your ISP has IPv6 resolution issues, the pooler hostname resolves via IPv4 reliably.LIVEKIT_URL..env, check that LIVEKIT_URL starts with wss:// and credentials match your LiveKit Cloud dashboard.pgvector Extension ErrorCREATE EXTENSION IF NOT EXISTS vector;
# Find and kill process on port 8000
Get-Process -Id (Get-NetTCPConnection -LocalPort 8000).OwningProcess | Stop-Process -Force