@telekaller/voice-agent-sdk
v0.1.0
Published
Connect any system to voice agents: create agents and tools, prepare and connect calls, bridge telephony streams and receive call events.
Maintainers
Readme
@telekaller/voice-agent-sdk
Connect any system to your voice agents: create agents and tools, prepare and connect calls, bridge phone calls from Plivo, Vobiz, Twilio or Exotel, and receive call events.
The full guide, with your own API base URL filled in, is in the app under API.
import { VoiceAgentClient } from '@telekaller/voice-agent-sdk';
const client = new VoiceAgentClient({ apiKey: process.env.VOICE_API_KEY, baseUrl: 'https://your-app-domain/api' });
const { conversation, connection } = await client.calls.start({
agent: { id: 'site-visit-caller', prompt: 'You are calling {{customer_name}} about a site visit.' },
variables: { customer_name: 'Ravi' },
channel: 'WEB'
});| Where the audio is | Use |
|---|---|
| A web page | BrowserCall from @telekaller/voice-agent-sdk/browser |
| Your backend | LiveCall (PCM16 16 kHz up, 24 kHz down) |
| Plivo, Vobiz, Twilio, Exotel | TelephonyBridge on your server |
| Anywhere, after the fact | WebhookReceiver (Standard Webhooks signatures) |
Requires Node 22 or newer on the server.
