Channels
VOICE CALLING
AI-powered inbound voice call agents via Twilio.
Setup
- Create a bot with
type: "inbound_call" - Configure Twilio credentials in Settings
- Set your Twilio phone number webhook to:
bash
https://api.callmissed.com/api/v1/webhooks/twilio/voiceCall Flow
bash
Incoming call β Twilio
β POST /api/v1/webhooks/twilio/voice
β Returns TwiML to open WebSocket stream
β WebSocket /ws/call/{call_id} receives audio
β Audio chunks β Sarvam STT β text
β Text β Sarvam LLM β response
β Response β Sarvam TTS β audio
β Audio streamed back to callerWebSocket Streaming
> Coming Soon: End-to-end WebSocket audio streaming is currently a scaffold. The WebSocket endpoint exists but real-time audio processing is not yet wired.
Connect to the voice WebSocket for real-time audio:
bash
wss://api.callmissed.com/ws/call/{call_id}Send raw audio bytes (PCM 16-bit, 8kHz). Receive synthesized audio bytes back.
Outbound Calling (Coming Soon)
Outbound calling (type: "outbound_call") is not yet implemented. The bot type exists in the schema but the calling logic is pending. Check back for updates.
Was this page helpful?