Voice agents
An agent answers phone calls and places them: it hears the other side, thinks, and speaks Uzbek in one of the platform's voices. Everything the agent knows about your business is written in one text, its instruction.
Canary
Voice agents are open by invitation. If your project has no "Voice agents" section, write to us.
Where to start
- Describe the agent. Cabinet, project, "Voice agents": a name, the instruction, a voice. Below: how to write the instruction, and how to hand the job to your coding assistant.
- Test it with a call. The phone button on the same page: the conversation goes through your microphone, and the text of both sides is on the screen. The price of a minute is shown beside the button.
- Connect a number. On the same page: the SIP server, login and password your telephony provider gave you. From then on the agent answers calls to the number and can call from it.
- Call from your own system.
POST /v1/voice/callswith the project's token: the agent calls a phone, or waits for the other side in a room.
How to write the instruction
The instruction is plain text addressed to the agent, up to 8,000 characters. Write it in your customers' language. What is not in the instruction the agent does not know: not the prices, not the address, not that there is something you do not do.
What it is made of
| Part | What to write |
|---|---|
| Who the agent is | A name, a role, the company's name as people say it, the address, the working hours |
| Situation and goal | Who calls whom and why. What a call should end with: an appointment at an exact time, an order, an agreed call back |
| Facts | Services and products with prices, how long things take, payment terms, offers with their end dates. Separately, what you do not offer, if people often ask |
| What the agent does not know | One sentence: for anything not on the list, do not make it up; say you will find out and call back |
| Rules | Each names a moment of the conversation and what to say or do then |
| Manner | One or two sentences a reply, one question at a time, which language to answer in |
| The ending | Offer two exact times, repeat what was agreed, say goodbye |
| Being an AI | If asked directly, the agent says it is the company's AI assistant |
Rules the agent keeps
The agent keeps a rule when it can check it against what the other side has just said. A trait of character with no moment attached is lost after a few replies.
| Works less well | Works better |
|---|---|
| "Handle the price objection persuasively" | "If the customer says it is cheaper elsewhere, do not offer a discount at once: first ask what they are comparing with" |
| "Be polite and caring" | "If the customer complains, apologise in one sentence, take their name and number and say they will be called back within an hour" |
| "Mention the offer twice" | "Mention the offer after you have named the price, and again before saying goodbye" |
| "Do not say too much" | "Do not diagnose and do not recommend medicine: say 'The doctor will tell you at the examination'" |
Three more rules of writing:
- One fact is written once. Two sentences with different prices are worse than none.
- If the exact phrase matters, give it in quotes.
- Tie a condition to an action: "do not offer a discount until the customer has said what they compare with".
What a voice needs
- A reply is heard, not read: no lists, no links, nothing that only makes sense on a screen.
- The agent asks one question and waits for the answer.
- The first sentence matters most: who is calling and why, in one sentence.
- Put company, product and people's names into "Words it must hear right" as well: the recogniser will expect exactly them.
An example
A dental clinic's reception. In the cabinet the "Template" buttons insert it and three more: a call to a lead, a reminder of an appointment, a feedback call; all eight scenarios are in agent-templates.md. Two parts of a template are yours to rewrite: the first paragraph (who the agent is) and the list under "Ma'lumotlar" (the facts it may state). The rest, the order of the talk, the answers to objections and the rules, names no business and works as it is. The model's reply format and the way it ends a call are added to the instruction by the platform.
Siz Malikasiz, «Namuna» stomatologiya klinikasining qabulxona operatorisiz. Manzil: Toshkent, Chilonzor tumani,
Bunyodkor ko'chasi, 12-uy. Ish vaqti: dushanbadan shanbagacha 9:00 dan 19:00 gacha, yakshanba dam olish kuni.
Ma'lumotlar:
- Birinchi ko'rik va maslahat: 100 000 so'm, 30 daqiqa.
- Tish oqartirish: 1 200 000 so'm, ikki soat.
- Bo'lib to'lash yo'q, to'lov qabuldan keyin naqd yoki karta orqali.
- Bo'sh vaqtlar: ertaga soat 10:00 yoki soat 15:30, indinga soat 11:00.
Vaziyat: mijoz o'zi qo'ng'iroq qilyapti.
Maqsad: nima kerakligini bilib, savoliga javob berish va aniq kun va soatga yozib qo'yish.
Suhbat bosqichlari:
1. Salom: «Assalomu alaykum, …» deb kompaniya nomi va ismingizni ayting va «Eshitaman» deng.
2. Avval savol: nima kerakligini tushunmasangiz, bitta savol bering. Mijoz aytgan narsani qayta so'ramang.
3. Javob: Ma'lumotlardan faqat so'ralganini ayting. Har javobdan keyin «yozib qo'yaymi» deb so'ramang: bu savolni
butun suhbatda bir marta bering.
4. Yozish: mijoz yozilmoqchi bo'lsa yoki savollari tugasa, Ma'lumotlardagi bo'sh vaqtlardan ikkitasini taklif qiling
(«… yoki …, qaysi biri qulay?»). Tanlasa, ismini so'rang, kun, soat va ismni takrorlab, xayrlashing.
E'tirozlar va savollar:
- «Qimmat»: chegirma va'da qilmang: «Nima bilan solishtiryapsiz?» deb so'rang, keyin Ma'lumotlardan bitta afzallikni
ayting.
- Shikoyat qilsa yoki mutaxassis bilan gaplashmoqchi bo'lsa: bir marta uzr so'rang, ismini so'rang va «Bir soat ichida
shu raqamingizga qo'ng'iroq qilamiz» deng. Buni bir marta ayting.
- Maslahat yoki tashxis so'rasa: «Buni mutaxassis ko'rib aytadi» deng va yozilishni taklif qiling.
- «O'ylab ko'raman»: «Albatta. Savolingiz bo'lsa, qo'ng'iroq qiling, yozib qo'yamiz» deb xayrlashing.
Qat'iy qoidalar:
- Har javob ko'pi bilan ikki qisqa jumla va bitta savol.
- Ma'lumotlarda yo'q narsani (narx, sana, xizmat, kafolat) to'qimang: «Buni aniqlab, sizga xabar beramiz» deng.
- Telefon raqamini so'ramang: mijozning raqami bizda bor.
- Robotmisiz deb so'rasa: «Ha, men kompaniyaning sun'iy intellekt yordamchisiman, savolingizga hozirning o'zida javob
beraman» deng va suhbatni davom ettiring.
- Bitta savolni ikki martadan ortiq bermang: aniq javob olmasangiz, «Savolingiz bo'lsa, yana qo'ng'iroq qiling» deb
xayrlashing.
- Mijoz xayrlashsa, faqat xayrlashing.How to improve it
Call the agent and say what real customers say, the awkward things included: "too expensive", "call me later", "who are you?", a question about a service you do not offer. Then fix the instruction rather than adding to it:
| What happened | What to fix |
|---|---|
| The agent said something untrue | The fact is missing, or written twice in two ways. Keep it once, in the facts |
| The agent ignored a rule | Rewrite the rule: the moment and the words |
| The agent talks too long | "One or two sentences" in the manner; cut explanations out of the facts |
| The agent did not catch a name | Add it to "Words it must hear right" |
| The agent cuts in, or stays silent too long | Change "Patience", not the instruction |
The settings beside the instruction
| In the cabinet | In the API | What it does |
|---|---|---|
| Voice | voice | charos (Charos, female) or sarvar (Sarvar, male). Both speak as an operator in a neutral manner: the mood is in the words |
| Model | model | The language model the agent thinks with |
| Who speaks first | first_speaker | agent: the agent greets first. caller: it waits for the other side |
| Conversational speech | speech | conversational: Tashkent pronunciation. literary: formal speech |
| May be interrupted | interruptions | The agent stops when the other side starts to speak |
| Patience | patience | How long the agent waits to be sure the other side has finished: 0.5 to 2, normally 1 |
| Speak again after | silence_seconds | After this many seconds of silence the agent speaks again; 0 turns it off |
| Words it must hear right | vocabulary | Names and terms for the recogniser, up to 20. The project's vocabulary, the one your recordings are transcribed with, is added to them |
| Call limit | max_duration_seconds | The call ends after this many seconds |
Hand the setup to your coding assistant
If you work with Claude Code, Cursor, Codex or a similar assistant, it can do all of it: read what your repository and site already say about the business, ask you what is missing, write the instruction by the rules on this page and create the agent through the API.
- On the agent's page in the cabinet press "Copy the task" in the card "Hand the setup to your coding assistant". The task already holds the API's address and a project token; if there is no token yet, the cabinet makes one.
- Paste the task to the assistant. It looks like this:
Read https://console.gapi.uz/docs/agent-setup.md and set up a Gapi voice agent for my business.
The API is at https://console.gapi.uz. The project token: gapi_ab12cd34_…
First read what this repository already says about the business, then ask me what is missing.The token in the task gives access to the project. If the task went where it should not, revoke the token on the "Tokens" page.
- The assistant shows you the instruction before it creates the agent. Check the prices and the promises.
- Call the agent from the cabinet and tell the assistant what went wrong: it will correct the instruction.
If you already have recorded calls, tell the assistant: from real conversations it sees what your clients ask, which objections come up and how your best operators answer them. If there are no transcripts, it makes them with Gapi's own recognition and the same token; during the beta the balance is topped up every day to four hours of audio, free. Recordings hold your clients' personal data, so the assistant asks before it uploads any.
You connect the phone number yourself in the cabinet: the assistant does not need your provider's password.
The assistant's task is open: you can read it yourself.
The business's vocabulary
The recogniser writes ordinary speech well and trips on names it has never met: the company, brands and products, surnames, streets, your own terms. Name them in advance. An agent has a list of its own ("Words it must hear right"), the project has one too (the project's vocabulary, which your recordings are transcribed with), and the agent hears both: its own words first, then the project's, up to 20 in all.
Take the words from the business: what a caller will say that is not a common word. Write each as it should look in text (Namuna, Bunyodkor, amoCRM). Common words do not belong there: they take the names' places.
Variables
The instruction may hold places for what differs from call to call: , . Each variable is declared on the agent with a default, and your system gives what it knows when it starts a call:
{"agent_id": "<agent id>", "to": "+998901234567", "variables": {"client_name": "Ali"}}Three variables the platform fills in itself, with no declaring: (2026-11-12), (chorshanba) and (15:04), the moment the call starts in Tashkent. An agent that books "for tomorrow" has to know what day it is.
A call that comes in on a number gets only the defaults, so the instruction has to read well with them too. Variables are set through the API (your coding assistant does that); the cabinet shows them, and a test call can fill them in.
Functions
A function is something in your own system the agent may do during a conversation: find a free hour, book a visit, check an order. You describe the function, and the model decides when to call it. At that moment your address gets a request:
POST https://crm.example.uz/gapi/functions
Content-Type: application/json
Authorization: Bearer <your secret for this address>
{"name": "book_visit", "arguments": {"day": "2026-11-14", "time": "15:30", "name": "Ali"}, "room": "gvp_...", "call": "..."}An answer with a 2xx status (JSON or text) goes to the model as the result, and it goes on with the conversation. An error or a timeout (8 seconds by default) reaches the model as {"error": "..."}. The caller is waiting on the line meanwhile, so answer fast and briefly.
- Up to 8 functions an agent; the address is HTTPS only.
- A header's value is not shown after saving: the API answers
***for it. roomis the call's room, the same as in the answer toPOST /v1/voice/calls: by it your address knows which call it is about.- The agent calls a function only after the caller has spoken: nothing is called at the greeting or in a silence. Pass what is known before the call as variables.
- Your address receives only the arguments the function declares.
Functions are set through the API: the address has to be written in your code, tested and protected, which is work for your coding assistant. The cabinet shows functions and does not edit them. Function calling is new on the platform: check on a test call that the agent calls the function where it should.
Handing over to a person
An agent can hand a phone conversation over to a person. In the agent's settings give the person's number and when to hand over (for example: "the caller asks for a person, or complains"). The agent says it is connecting the caller, and the caller is transferred to that number through your own line; the agent's part of the call ends there. If the person does not answer, the call comes back to the agent. A test call from the cabinet cannot be handed over: it takes a call on a connected number.
Calibration after the first calls
Settings chosen before the first real call are a guess. After 5 to 10 calls they are worth going over once: the cabinet has a second task for the assistant for that, "Calibrate the agent". The assistant asks what was wrong, looks at how the calls ended and what the agent asked your functions for, and corrects the settings, the vocabulary and the instruction. What usually changes:
| What the calls show | What to change |
|---|---|
| Many calls of a few seconds | The first sentence: who is calling and why; who speaks first |
| The agent cuts in, or answers pauses | Raise "Patience" |
| Long silences before every reply | Lower "Patience", make the functions answer faster |
| The agent did not catch a name | Add it to the vocabulary |
| Calls run into the time limit | Rewrite how the conversation ends |
API
Every request carries the header Authorization: Bearer <project token>.
| Request | What it does |
|---|---|
GET /v1/voice/options | Voices, models and limits: instruction length, number of words, call duration |
GET /v1/voice/agents | The project's agents |
POST /v1/voice/agents | Create an agent: name, prompt and the settings |
PUT /v1/voice/agents/{id} | Replace an agent whole |
POST /v1/voice/agents/{id}/prompt | The instruction with variables filled in, as the model will get it: a check without a call |
DELETE /v1/voice/agents/{id} | Delete an agent |
POST /v1/voice/calls | Open a call: {"agent_id"} for someone in a browser or an app, {"agent_id", "to"} to call a phone |
GET /v1/voice/calls | The project's calls: status, duration, why each ended |
GET /v1/voice/calls/{id}/recording | The call's recording (WAV, the other side and the agent on two channels); it arrives a few seconds after the call ends, "recording": true on the call |
GET /v1/voice/calls/{id}/transcript | The call's text turn by turn and how it ended; it arrives a few seconds after the call ends, "transcript": true and outcome on the call |
DELETE /v1/voice/calls/{id} | End a call |
GET /v1/voice/lines | The connected numbers and how each stands with its provider |
curl -X POST https://console.gapi.uz/v1/voice/agents \
-H "Authorization: Bearer $GAPI_TOKEN" \
-H "Content-Type: application/json" \
--data @agent.json{
"name": "Clinic reception",
"prompt": "Siz Malikasiz, “Namuna” stomatologiya klinikasining qabulxona operatorisiz. ...",
"voice": "charos",
"first_speaker": "agent",
"vocabulary": ["Namuna", "Bunyodkor"]
}A call to a phone goes through a number connected in the project and is paid for at your telephony provider:
curl -X POST https://console.gapi.uz/v1/voice/calls \
-H "Authorization: Bearer $GAPI_TOKEN" \
-H "Content-Type: application/json" \
-d '{"agent_id": "<agent id>", "to": "+998901234567"}'On such a call the agent is told that it was the one who rang: the platform ends the instruction with a line saying so. Why it is calling is yours to write: an instruction written for a reception desk greets the client as a reception desk does. An agent that both answers and calls is best made as two agents.
A project places at most three phone calls at once; a fourth answers 429 voice_project_limit until one of them ends.
Calling a list: Gapi Voice Agent Studio
To call a list of people (feedback after a purchase, new leads, reminders) you do not have to write the queue yourself. Gapi Voice Agent Studio is an open shell over this API that runs on your own machine: agents with versions, a test call to your own phone before any campaign, a list from Excel called in portions inside calling hours, with retries and a stop list, and every call's recording, text and form in one table. It connects to Bitrix24 and amoCRM: the cards at a pipeline stage become the people to call, and each result goes back onto its card. It has a web interface for you and an MCP server for your coding assistant.
git clone https://github.com/Islomov49/gapi-voice-studio && cd gapi-voice-studio
GAPI_TOKEN=gapi_... docker compose up -dThen open http://localhost:8090. Your lists and answers stay on your machine; the calls go through your project and are charged as any other call.