Channels

VOICE CALLING

AI-powered inbound and outbound voice call agents via Twilio.

Setup

  1. Create a bot with type: "inbound_call" or "outbound_call"
  2. Configure Twilio credentials in Settings
  3. Set your Twilio phone number webhook to:
bash
https://api.callmissed.com/api/v1/webhooks/twilio/voice

Call 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 caller

WebSocket Streaming

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.

Was this page helpful?