How jaypathak-dev/voxlead-ai works
VoxLead AI is a local-first voice and chat sales agent with a React CRM. The principal workflow runs from the voice/text interface through the chat API and conversation orchestration, which combines local-model responses, grounded knowledge, contextual memory, qualification, sentiment, scoring, booking, and summaries; CRM and analytics expose the resulting persisted records. The README documents major capabilities, while several routes and services are unsampled, so links to those are limited to explicit documentation or indexed references.
Main entry points: conversation_service.py Conversation orchestration · api CRM API routes · main.py FastAPI application · database.py SQLite CRM store
Components 22
Sales workspace
- Voice and chat UI
frontend/src/pages/VoiceAgent.tsx - Browser speech I/O
frontend/src/hooks/useSpeech.ts - Frontend API client
frontend/src/services/api.ts - CRM dashboard
frontend/src/App.tsx
API and orchestration
- FastAPI application
backend/app/main.py - Chat endpoint
backend/app/api/chat.py - Conversation orchestration
backend/app/services/conversation_service.py
Conversation intelligence
- Contextual memory
backend/app/services/memory_service.py - Knowledge retrieval
backend/app/services/rag_service.py - Local embeddings
backend/app/services/embedding_service.py - Local LLM
backend/app/services/ollama_service.py - Sentiment analysis
backend/app/services/sentiment_service.py - Lead scoring
backend/app/services/scoring_service.py
CRM workflows
- Lead management
backend/app/services/lead_service.py - IST appointment booking
backend/app/services/booking_service.py - Structured summaries
backend/app/services/summary_service.py - CRM API routes
backend/app/api - Analytics API
backend/app/api/analytics.py
Local data and models
- SQLite CRM store
backend/app/database.py - CRM data models
backend/app/models.py
Other components
- Prospect
- Ollama inference service
Connections 26
- Prospect → Voice and chat UI: speaks or types
- Voice and chat UI → Browser speech I/O: uses speech I/O
frontend/src/pages/VoiceAgent.tsx - Voice and chat UI → Frontend API client: sends requests
frontend/src/pages/VoiceAgent.tsx - CRM dashboard → Frontend API client: loads CRM data
frontend/src/App.tsx - Frontend API client → FastAPI application: calls REST API
- FastAPI application → Chat endpoint: registers router
backend/app/main.py - Chat endpoint → Conversation orchestration: handles chat
backend/app/services/conversation_service.py - Conversation orchestration → Contextual memory: uses memory
backend/app/services/conversation_service.py - Conversation orchestration → Knowledge retrieval: retrieves context
backend/app/services/conversation_service.py - Knowledge retrieval → Local embeddings: encodes chunks
backend/app/services/rag_service.py - Conversation orchestration → Local LLM: requests responses
backend/app/services/conversation_service.py - Conversation orchestration → Sentiment analysis: analyzes sentiment
backend/app/services/conversation_service.py - Conversation orchestration → Lead scoring: scores lead
backend/app/services/conversation_service.py - Conversation orchestration → Lead management: updates lead
backend/app/services/conversation_service.py - Conversation orchestration → IST appointment booking: handles booking
backend/app/services/conversation_service.py - Conversation orchestration → Structured summaries: creates summary
backend/app/services/conversation_service.py - FastAPI application → CRM API routes: registers routes
backend/app/main.py - CRM API routes → IST appointment booking: uses booking
backend/app/api/appointments.py - CRM API routes → Structured summaries: requests summary
backend/app/api/conversations.py - CRM API routes → Knowledge retrieval: manages knowledge
backend/app/api/knowledge.py - CRM API routes → SQLite CRM store: queries records
backend/app/api/leads.py - Analytics API → SQLite CRM store: reports CRM metrics
- FastAPI application → Analytics API: registers router
backend/app/main.py - Conversation orchestration → SQLite CRM store: persists conversation
- SQLite CRM store → CRM data models: creates tables
backend/app/database.py - Local LLM → Ollama inference service: uses local HTTP service