Calls
Inbound calls
When callers dial a phone number assigned to your agents, the designated agent answers immediately. This page outlines routing rules and reception behavior.
Phone numbers
Your workspace’s numbers are assigned or purchased through the console and connected to specific agents. See Phone numbers.
Query workspace numbers:
curl https://api.vaakyo.com/api/v1/numbers -H "Authorization: Bearer $VAAKYO_API_KEY"
{
"numbers": [
{"number": "+918035001234", "agent_id": "1b81a241c0e44f5c9d1f0e2a7c3b9d10", "agent_name": "Front desk"},
{"number": "+918035005678", "agent_id": "", "agent_name": ""}
]
}
Connecting numbers to agents
In the console under Phone numbers, select an agent to receive calls on each number.
Connecting a number:
- Routes inbound calls on that line to the Vaakyo agent.
- Updates the agent’s
phone_numberand unbinds that number from any previously assigned agent.
Inbound evaluation pipeline
When an incoming call arrives, Vaakyo verifies:
| Check | Failure outcome |
|---|---|
Assigned agent has status: "active" | Rejected. Paused or frozen agents do not answer. |
| Workspace is active | Rejected. |
| Sufficient credit balance | Rejected. |
| Available concurrency slot | Rejected. Inbound calls do not wait in queues. |
When all checks pass, a call is instantiated with direction: "inbound" and status: "in-progress":
from_numberis the caller’s caller ID, andto_numberis your assigned line.- Dynamic
{variables}default to empty, except{caller_phone}which is automatically populated with the caller’s number. - Regional calling hours are ignored for inbound inquiries.
- Call duration is bounded by
max_duration_secondsand balance limits.
The agent’s welcome message plays immediately. If omitted, the agent awaits the caller’s opening statement.