Agents
Tools
Tools allow agents to call your HTTP endpoints during a live call—for example to check calendar availability, book an appointment, or query order details. Agents also have built-in tools such as end_call to conclude conversations.
How tools work
- Define tools: Each tool specifies a name, an operational description, and a JSON Schema defining its parameters.
- Evaluation: During the conversation, the agent decides when to trigger a tool based on the caller’s request.
- Spoken transition: If configured with a
pre_call_message, the agent speaks a brief bridge phrase (e.g., “One moment, let me check that for you.”). - Execution: Vaakyo issues the HTTP request to your configured
urland waits up totimeout_seconds. - Contextual response: The response is returned to the model to formulate the spoken answer.
Tool fields
tools is an array of tool definition objects under the agent configuration.
| Field | Type | Default | Allowed | Description |
|---|---|---|---|---|
name | string | required | Letters, numbers, and _; 1–64 characters | Unique tool name. Reserved names: end_call, search_knowledge_base, transfer_call. |
description | string | required | 3–1000 characters | Explanation of when and why the model should execute this tool. |
parameters | object | {"type": "object", "properties": {}} | Valid JSON Schema | Schema for tool arguments. |
method | string | POST | GET, POST | HTTP method. |
url | string | required | Valid HTTPS URL | Target endpoint. https only (an http URL is refused with 422); URLs must be public internet addresses; redirects are not followed. |
headers | object | {} | Key-value pairs | HTTP headers sent with the request (e.g., Authorization). Header values are masked (••••••••) in responses. |
pre_call_message | string | "" | Optional text | Spoken phrase immediately before executing the request. |
timeout_seconds | number | 8.0 | 1 to 30 | Request timeout. |
{
"tools": [
{
"name": "check_availability",
"description": "Check available appointment slots for a doctor on a specific date.",
"parameters": {
"type": "object",
"properties": {
"doctor": {"type": "string", "description": "Doctor's name"},
"date": {"type": "string", "description": "Date formatted YYYY-MM-DD"}
},
"required": ["doctor", "date"]
},
"method": "POST",
"url": "https://clinic.example.com/api/availability",
"headers": {"Authorization": "Bearer your_token_here"},
"pre_call_message": "One moment, let me check that.",
"timeout_seconds": 8
}
]
}
Header masking: Header values are masked (
••••••••) in all API responses. When saving or updating an agent configuration, sending back the masked value preserves the existing stored secret. Submitting a new plaintext string updates the secret. Submitting a masked placeholder for a previously unset header returns422.
Request payload
POST requests
POST requests send a JSON body containing the extracted arguments along with a _call metadata object:
POST /api/availability HTTP/1.1
Host: clinic.example.com
Content-Type: application/json
Authorization: Bearer your_token_here
{
"doctor": "Dr. Kulkarni",
"date": "2026-10-02",
"_call": {
"call_id": "00b1d622a8f04f4f8f3a3c2d9e5b7a11",
"agent_id": "1b81a241c0e44f5c9d1f0e2a7c3b9d10",
"from": "+918035001234",
"to": "+919812345678",
"user_data": {"customer_name": "Rohan", "patient_id": "P-1042"}
}
}
Field in _call | Description |
|---|---|
call_id | Unique call identifier. |
agent_id | Agent identifier. |
from | Calling number (your assigned number on outbound calls; caller number on inbound calls). |
to | Destination number. |
user_data | Key-value pairs supplied when initiating the call. |
GET requests
GET requests pass arguments as URL query parameters. The _call object is omitted on GET requests.
Expected responses
Return JSON containing the information needed for the conversation:
{
"date": "2026-10-02",
"free_slots": ["10:30", "12:00", "16:15"]
}
| Endpoint output | Model context |
|---|---|
| JSON response body | {"status": <HTTP status>, "result": {...your JSON...}} |
| Non-JSON body | {"status": <HTTP status>, "result": "..."} |
| Timeout or network failure | {"status": 0, "error": "the <tool name> service did not answer"} |
Cal.com
Let agents book meetings on your Cal.com calendar during calls.
- Connect once: in Integrations › Cal.com, paste a Cal.com API key (Cal.com › Settings › Developer › API keys). Vaakyo checks it with Cal.com and keeps it encrypted; it is never shown again. Optionally add emails to invite to every booking, for example whoever takes the meetings. Owners and admins can do this.
- Turn it on per agent: on the agent’s Tools tab, switch on Book meetings with Cal.com. The account’s event types load by themselves; pick the one the agent books.
The agent gets two built-in tools:
| Tool | What it does |
|---|---|
check_slots | Free times of the event type for a day (date, YYYY-MM-DD), or the next days with free times. Times are local to the agent’s timezone (Call tab), as YYYY-MM-DD HH:MM. |
book_meeting | Books one of those times for the caller: start (as check_slots gave it), name, email, and optional notes. The caller’s number is added from the call. |
Cal.com sends the invite and calendar entry. The booking (uid, start, when, email) is saved on the call
as booking and appears in the call.completed webhook. When a time was taken in the meantime, or Cal.com
can’t be reached, the tool answers with an error and the agent offers another time. A shared agent arrives
with booking off: the copy needs its own workspace’s Cal.com connection.
{ "calcom": { "enabled": true, "event_type_id": 7530328 } }
CRM
Vaakyo’s CRM keeps your contacts, catalog (products and services), calendars, bookings and orders in the console (CRM). You define your own fields for contacts, items, bookings and orders (a clinic’s “symptoms”, a shop’s “gift wrap”), and the agent asks for them.
Turn it on per agent on the Tools tab (Use the CRM in calls) and pick its tools:
| Tool | What it does |
|---|---|
crm_save_contact | Saves the caller’s name, email, stage and your contact fields. |
crm_search_catalog | Finds products and services with price, stock and choices (sizes, colours). |
crm_check_availability | Free start times on a calendar for a day, or the next days. |
crm_book | Books a free time for the caller (a service’s length, or the booking grid). |
crm_my_bookings | The caller’s upcoming bookings. |
crm_reschedule_booking | Moves one of the caller’s bookings (off by default). |
crm_cancel_booking | Cancels one of the caller’s bookings (off by default). |
crm_place_order | Takes an order: every choice made, stock checked and held, cash on delivery needs an address. |
crm_my_orders | The caller’s orders and their status. |
The agent only sees and changes the caller’s own records (found by their number; on a browser call it asks
for it). A booking never lands on a time someone else holds, and an order never takes more stock than is
left, even when callers race for the last slot or item; the agent tells the caller and offers another. A
small catalog (up to 30 items) is given to the agent up front. With Save each call on the caller’s
contact, the call is added to the contact after it ends, and extracted values (Analytics tab) whose keys
match your contact fields are copied onto it. Each change the agent makes is a
crm.updated event on the call’s timeline (kind, action and the
record’s id), which webhook endpoints can subscribe to. A shared agent arrives with the CRM off.
The CRM is a workspace feature (crm). While it is off for your workspace, an agent’s crm settings are
saved but no CRM tools are offered in its calls (the call’s timeline gets an error event saying so), and
nothing is saved on contacts after the call.
{ "crm": { "enabled": true, "tools": ["save_contact", "search_catalog", "book", "place_order"], "save_after_call": true } }
Built-in tools
end_call
Every agent is equipped with the built-in end_call tool:
- The model calls
end_callonly when the conversation is complete: the caller said goodbye, asked to end the call, or said they need nothing more. It says its goodbye in the same turn. - A thank-you on its own is not a goodbye: callers say it mid-call, so the agent acknowledges it and asks whether there is anything else.
- When invoked, audio finishes playing and the call disconnects cleanly with
hangup_by: "agent".
Other built-in tools
These are added by the agent’s settings.
| Tool | Added when | See |
|---|---|---|
search_knowledge_base | The agent has knowledge bases that are searched rather than put in the prompt. | Knowledge base |
reschedule_call | call.auto_reschedule is on. | Auto reschedule |
transfer_call | call.transfer_enabled is on, on phone calls. | Transfer to a human |
check_slots, book_meeting | calcom.enabled is on and Cal.com is connected. | Cal.com |
crm_* | crm.enabled is on and the workspace has the CRM. | CRM |
Testing tools
Test a tool in the console before a caller relies on it: Test this tool on the Tools tab sends the same request a live call would (with example arguments you can edit) and shows the status, the time it took and exactly what the model would receive.