Skip to content
VaakyoDocs
Navigation
Open console →

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:

  1. Routes inbound calls on that line to the Vaakyo agent.
  2. Updates the agent’s phone_number and unbinds that number from any previously assigned agent.

Inbound evaluation pipeline

When an incoming call arrives, Vaakyo verifies:

CheckFailure outcome
Assigned agent has status: "active"Rejected. Paused or frozen agents do not answer.
Workspace is activeRejected.
Sufficient credit balanceRejected.
Available concurrency slotRejected. Inbound calls do not wait in queues.

When all checks pass, a call is instantiated with direction: "inbound" and status: "in-progress":

  • from_number is the caller’s caller ID, and to_number is 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_seconds and balance limits.

The agent’s welcome message plays immediately. If omitted, the agent awaits the caller’s opening statement.

Esc