Skip to main content

Call Types

Outbound Calls

Agent-initiated calls to customers:
Response:

Incoming Calls

Calls from customers to your system:
  1. Webhook Receiver receives Twilio/Plivo webhook
  2. Router determines appropriate agent
  3. Call Stream connects caller to agent

WebSocket Streaming

Real-time audio streaming for AI processing:

Call Lifecycle

Making Calls

Simple Outbound Call

Call with Context Data

Scheduled Calls

Receiving Calls

Webhook Configuration

Configure your Twilio/Plivo webhook to point to:

TwiML Response

Incoming Call Handler

Audio Streaming

WebSocket Streaming Handler

Audio Processing

Call Monitoring

Real-time Call Status

Response:

Call Metrics

Track important metrics:

Call Recording

Enable Recording

Recording Retrieval

Response:

Call Transcription

Automatic Transcription

Get Transcript

Response:

Call Routing

Intelligent Routing

Custom Routing Logic

Ending Calls

Disconnect Call

Timeout Configuration

Call Cleanup

Error Handling

Common Errors

Retry Logic

Performance Optimization

Connection Pooling

Streaming Optimization

  • Use appropriate sample rate (8000 Hz for phone, 16000 Hz for clarity)
  • Implement audio buffering
  • Compress audio frames
  • Minimize latency with CDN

Parallel Call Processing

Next Steps

Batch Calls

Process multiple calls efficiently.

Scheduled Calls

Schedule calls for later execution.

API Reference

Complete API documentation.