Customer-service-assistant api-gateway
Multi-tenant backend gateway for the voice assistant platform.
install
source · Clone the upstream repo
git clone https://github.com/papdawin/customer-service-assistant
manifest:
web/backend/skill.mdsource content
Backend API Gateway
Purpose
Serve a callable voice assistant deployed at different companies. It orchestrates shared STT, VAD, and TTS services, and routes tenant-specific queries to the correct RAG service.
Interfaces
- HTTP GET
and/api/health
for service config./api/config - HTTP POST
for one-shot audio processing./api/voice - WebSocket
for streaming VAD + pipeline execution./api/stream
Models
- None locally; delegates to shared STT/TTS/VAD and tenant-specific RAG.
Libraries
fastapihttpxstarlette- stdlib:
,audioop
,base64
,json
,wave
,uuid
,pathlibtime
Runtime Config
,STT_URL
,RAG_URL
,TTS_URLVAD_URL
,COMPANYHTTPX_TIMEOUT
Main Components
- Pipeline runner combining STT, RAG, and TTS calls.
helper for VAD service calls.VadClient- PCM resampling and WAV conversion utilities.
- Static frontend mount when present.