How nitinsnk/ai-sales-voice-agent works
NexaCloud AI is a Python sales voice-agent MVP with a browser-based Voice Studio, CRM and Insights Dashboard, Knowledge Manager, and Architecture Viewer. The main workflow is browser interaction through the HTTP/SSE server into call orchestration: language handling, RAG and prospect analysis, session updates, optional booking, and post-call summaries. SQLite backs CRM records and appointments; the JSON knowledge base feeds retrieval. The README documents browser voice and dashboard capabilities, but sampled excerpts do not show their detailed implementation or the full turn-processing internals.
Main entry points: sales_agent.py Call Orchestrator · server.py HTTP and SSE · app.js Sales Workbench · session_store.py Call Sessions
Components 15
Browser Experience
- Sales Workbench
public/app.js - Voice I/O
public/app.js
Call Runtime
- HTTP and SSE
sales_agent/server.py - App Entrypoint
app.py - Call Orchestrator
sales_agent/agent/sales_agent.py - Language Detection
sales_agent/utils/language.py - BANT and Sentiment
sales_agent/intelligence/analyzer.py - Call Sessions
sales_agent/memory/session_store.py - PII Redaction
sales_agent/utils/pii.py - Hybrid RAG
sales_agent/rag/retriever.py
Sales Data
- Knowledge Base
data/knowledge_base.json - CRM and Booking
sales_agent/crm/crm_store.py - Call Insights
sales_agent/agent/sales_agent.py
Other components
- Prospect
- Gemini or OpenAI
Connections 18
- Prospect → Sales Workbench: interacts
README.md - Sales Workbench → HTTP and SSE: calls API
sales_agent/server.py - HTTP and SSE → Sales Workbench: serves UI and SSE
sales_agent/server.py - App Entrypoint → HTTP and SSE: runs server
app.py - HTTP and SSE → Call Orchestrator: dispatches calls
sales_agent/server.py - HTTP and SSE → Hybrid RAG: manages knowledge
sales_agent/server.py - HTTP and SSE → CRM and Booking: serves CRM data
sales_agent/server.py - Call Orchestrator → Language Detection: detects language
sales_agent/agent/sales_agent.py - Call Orchestrator → BANT and Sentiment: analyzes turns
sales_agent/agent/sales_agent.py - Call Orchestrator → Call Sessions: updates sessions
sales_agent/agent/sales_agent.py - Call Orchestrator → Hybrid RAG: retrieves context
sales_agent/agent/sales_agent.py - Call Orchestrator → CRM and Booking: books and saves
sales_agent/agent/sales_agent.py - Call Sessions → BANT and Sentiment: scores BANT
sales_agent/memory/session_store.py - Call Sessions → PII Redaction: redacts logs
sales_agent/memory/session_store.py - Hybrid RAG → Knowledge Base: loads and persists
sales_agent/rag/retriever.py - Sales Workbench → Voice I/O: offers voice I/O
README.md - Call Orchestrator → Call Insights: creates summary
README.md - Call Orchestrator → Gemini or OpenAI: may use provider
README.md