Docs menuQuickstart
Quickstart
Send your first call in fifteen minutes. Sign in, configure an agent, design a one-question flow, and dial yourself.
In fifteen minutes you’ll have an AI agent that calls a phone number, asks one question, captures the answer, and POSTs it to a URL of your choice.
1. Get an account and an API key
Sign in to the dashboard (or create an account) and open Settings → API keys. Click Generate. Copy the token — it’s shown once.
export VOICEAGENT_API_KEY="vasvk_live_..."
export VOICEAGENT_BASE="https://api.voice.octew.com"
Keys are issued with calls:read and calls:write scopes. Verify the key works:
curl "$VOICEAGENT_BASE/v1/me" -H "Authorization: Bearer $VOICEAGENT_API_KEY"
You should get back a tenant and api_key object.
2. Create a voice agent
A voice agent bundles a voice (TTS), a transcriber (STT), an LLM, and a system prompt. From the dashboard, Voice Agents → New and pick:
- TTS: Sarvam (default) for Hindi/Indian English, or Cartesia / ElevenLabs for English.
- STT: Deepgram Nova-3 (English) or Sarvam (Hindi-first, code-mixed).
- LLM: OpenAI
gpt-5.4-nanois the default dispatcher model. - System prompt: “You are calling on behalf of Acme Realty. Be warm, professional, and direct. Ask one question at a time.”
Save. The agent gets a UUID — copy it.
3. Author a one-question flow
Open Conversation Flows → New and switch to the JSON editor. Paste this minimal flow:
{
"name": "Hello world",
"goal": "Capture the caller's name and thank them.",
"rootNodeId": "ask_name",
"data_collection": [
{ "name": "caller_name", "type": "string", "description": "Name the caller introduces themself with." }
],
"interrupts": [],
"nodes": {
"ask_name": {
"type": "goal",
"id": "ask_name",
"goal": "Find out the caller's name.",
"prompt": { "mode": "literal", "text": "Hi! What's your name?" },
"intents": [
{
"id": "states_name",
"intent": "Caller says their name",
"extracts": { "slot": "caller_name", "format": "string", "normalize": "title_case" },
"target": "thanks"
}
],
"completion": { "kind": "slot_filled", "slot": "caller_name" },
"on_exhausted": "thanks"
},
"thanks": {
"type": "speak",
"id": "thanks",
"speech": { "mode": "literal", "text": "Thanks {{slots.caller_name|there}}! Goodbye." },
"next": "end"
},
"end": { "type": "end", "id": "end" }
},
"on_call_end": {
"fetch": {
"method": "POST",
"url": "https://webhook.site/your-unique-url",
"body": {
"captured_name": "{{slots.caller_name}}"
}
}
}
}
Save. The flow gets a UUID — copy it. The validator runs on save; any field-name typos surface immediately.
4. Dial yourself
curl -X POST "$VOICEAGENT_BASE/v1/calls" \
-H "Authorization: Bearer $VOICEAGENT_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"to": "+919876543210",
"voice_agent_id": "your-agent-uuid",
"conversation_flow_id": "your-flow-uuid",
"to_name": "Narendra",
"variables": { "user": { "name": "Narendra" } },
"metadata": { "customer_id": "your-internal-id" }
}'
to_name, variables, and metadata are all optional. variables is what your flow templates substitute against ({{user.name}} here); metadata is opaque pass-through that comes back unchanged on GET /v1/calls/:id and on webhook deliveries.
You’ll get a 201 response with the call’s UUID and the carrier call_sid:
{
"id": "5b8a14f0-...UUID",
"call_sid": "CAxxxxxxxxxx",
"status": "initiating",
"created_at": "2026-04-27T10:14:25.014Z"
}
Your phone rings; the agent greets you; you say your name; the agent thanks you and hangs up. Within a second or two your webhook.site URL receives:
{ "captured_name": "Narendra" }
Poll the call to see the final state:
curl "$VOICEAGENT_BASE/v1/calls/5b8a14f0-...UUID" \
-H "Authorization: Bearer $VOICEAGENT_API_KEY"
status will be completed (or failed / no_answer / voicemail); duration_ms, recording_url, transcript, and cost_paise are populated.
What just happened
- The platform placed a call via the configured carrier (Twilio by default).
- Audio was streamed to the CallOrchestrator over WebSocket and transcribed by your STT vendor in real time.
- The FlowOrchestrator classified your reply as the
states_nameintent and extracted thecaller_nameslot. - The flow advanced to the
thanksspeak node, which spoke a templated farewell using{{slots.caller_name|there}}. - The flow reached the
endnode, which fired the configuredon_call_end.fetchto your webhook URL.
Next steps
- Add a second goal node and observe how the agent handles ambiguous answers (it’ll route to
on_ambiguousif you set one, or retry up toattempts_max). - Switch the TTS provider to Cartesia and re-dial to compare latency.
- Read Concepts to understand intents, slots, validation, and interrupts in depth.