How shanmugamsanzz/zea-voice works
Zea Voice is a multi-tenant voice-agent platform with a web dashboard and a backend for live calls, agent configuration, campaigns, and account operations. The primary runtime path is an inbound Plivo webhook into call handling and voice orchestration, which coordinates conversation logic and provider/audio components. The README also documents tenant-isolated Qdrant retrieval and an embedding service. Several product areas are represented by their source directories because their implementations were not sampled; links to them are omitted where the evidence does not establish runtime calls.
Main entry points: plivo-webhook.routes.js Plivo webhook · voice.routes.js Voice runtime · template-engine-production-runtime.js Turn workflow · call-ownership.service.js Call ownership
Components 29
Dashboard
- Web application
Frontend/src/App.tsx - API client
Frontend/src/lib/api.ts - Company views
Frontend/src/components/views/CompanyViews.tsx
Voice runtime
- Plivo webhook
Backend/src/telephony/plivo-webhook.routes.js - Webhook handling
Backend/src/telephony/plivo-webhook.service.js - Call answer
Backend/src/voice/plivo-answer.service.js - Voice runtime
Backend/src/voice/voice.routes.js - Conversation orchestration
Backend/src/voice/realtime-conversation-orchestrator.js - Turn workflow
Backend/src/voice/interaction/template-engine-production-runtime.js - Provider configuration
Backend/src/voice/providers/provider-config.js - Provider registry
Backend/src/voice/providers/registry.js - Audio processing
Backend/src/voice/audio/audio-engine.js - Call ownership
Backend/src/voice/call-ownership.service.js - Inbound queue
Backend/src/voice/inbound-call-queue.service.js
Agent capabilities
- Agent configuration
Backend/src/agents/agent.service.js - Knowledge retrieval
Backend/src/voice/interaction/agent-qdrant-retrieval.js
Business operations
- Campaign execution
Backend/src/campaigns/campaign-execution.service.js - Conversation records
Backend/src/calls/conversation-thread.service.js - Follow-up dispatch
Backend/src/calls/follow-up-dispatch.service.js - Credits and usage
Backend/src/credits/usage-price-calculation.service.js - Insights and reports
Backend/src/insights/insight.service.js
Platform services
- Backend API
Backend/src/app.js - Tenant DB context
Backend/src/infrastructure/database-context.js - PostgreSQL
Backend/src/infrastructure/database.js - Redis
Backend/src/infrastructure/redis.js
Other components
- Caller
- Plivo telephony
- Embedding service
- Qdrant
Backend/src/rag/qdrant.client.js
Connections 24
- Web application → Company views: renders
Frontend/src/App.tsx - Web application → API client: uses
Frontend/src/App.tsx - API client → Backend API: requests
Frontend/src/lib/api.ts - Caller → Plivo telephony: calls
- Plivo telephony → Plivo webhook: routes webhook
README.md - Plivo webhook → Webhook handling: dispatches
Backend/src/telephony/plivo-webhook.routes.js - Plivo webhook → Call answer: dispatches
Backend/src/telephony/plivo-webhook.routes.js - Plivo webhook → Call ownership: checks ownership
Backend/src/telephony/plivo-webhook.routes.js - Plivo webhook → Inbound queue: queues calls
Backend/src/telephony/plivo-webhook.routes.js - Voice runtime → Call answer: uses
Backend/src/voice/voice.routes.js - Voice runtime → Call ownership: checks ownership
Backend/src/voice/voice.routes.js - Voice runtime → Inbound queue: queues calls
Backend/src/voice/voice.routes.js - Voice runtime → Provider configuration: loads configuration
Backend/src/voice/voice.routes.js - Voice runtime → Provider registry: selects providers
Backend/src/voice/voice.routes.js - Conversation orchestration → Turn workflow: runs turns
- Turn workflow → Knowledge retrieval: retrieves context
Backend/src/voice/interaction/template-engine-production-runtime.js - Turn workflow → Provider registry: invokes model
- Audio processing → Provider configuration: uses formats
Backend/src/voice/audio/audio-engine.js - Plivo webhook → Follow-up dispatch: dispatches follow-ups
Backend/src/telephony/plivo-webhook.routes.js - Follow-up dispatch → Tenant DB context: queries tenant data
Backend/src/calls/follow-up-dispatch.service.js - Tenant DB context → PostgreSQL: runs transactions
Backend/src/infrastructure/database-context.js - Call ownership → Redis: stores ownership
Backend/src/voice/call-ownership.service.js - Inbound queue → Redis: manages queue
Backend/src/voice/inbound-call-queue.service.js - Embedding service → Qdrant: supplies vectors
README.md