Say the next line
sayIn a call whose result came back "open": true, speak text to the human
and return what they answer, in the same shape as call. Only after their
previous answer is in. Waits up to ~30s; on "in_call", follow up with
poll_result. "open": false means the call has ended. Pass language only
to switch the language of the call's own lines; empty keeps it. voice
switches who speaks from this line on (female first: bella, sarah, ...;
male: roger, eric, ...); empty keeps it. Anything
they say while you think reaches you at once as a message (wait_for_reply)
and again with their answer as "said_while_waiting".
End the call with hang_up once you are done.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"call_id": "<call_id>",
"session_token": "<session_token>",
"text": "<text>"
},
"name": "say"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | Your next line, read aloud word for word. Keep it short and conversational; up to 2000 characters. | |
| voice | No | Who speaks, female first (default "bella"). female: bella, sarah, jessica, matilda, laura, alice (british), lily (british); neutral: river; male: roger, eric, chris, brian, will, liam, bill, george (british), daniel (british), charlie (australian). "female" or "male" picks the first of that kind. Your choice sticks for this session's later calls until you pass another; empty keeps it, or else uses the voice the person chose in their app. | |
| call_id | Yes | The call_id from the call or play_audio result. | |
| language | No | The language you are speaking, e.g. "tr", "pt-BR" or "Turkish". The call's own short lines (thanks, goodbye) follow it. Empty means English, or on `say` keeps the current one. | |
| hold_sound | No | What they hear while you think: "keyboard" (typing, the default), "hold_music" or "none". It sticks for them, so set "none" when they ask for no typing sound. Empty keeps theirs. | |
| session_token | Yes | The session_token from an earlier result. It keeps every call and text in one thread on their phone. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| from | No | Your own agent number. Never call or text it. | |
| next | No | What to do next when the call has not settled. | |
| open | No | True while the line stays up for say or hang_up. | |
| turn | No | Index of the answer within a conversation. | |
| title | No | play_audio: the recording's title. | |
| status | Yes | "completed" (answered), "ringing" or "in_call" (not settled: poll_result), "missed", "declined", "ended", "hanging_up", "playing" (play_audio), or "setup_required" when no number was given. | |
| texted | No | True when the call was not rung but delivered as a text, because they had stopped picking up. Do not text it again. | |
| call_id | No | Pass to poll_result, say and hang_up. | |
| unheard | No | Present when their answer came back from speech recognition as noise in the wrong alphabet and was dropped: why, and what to do. | |
| audio_id | No | play_audio: the recording that was offered. | |
| back_off | No | True when they have stopped picking up your calls: text instead, and call only when it cannot wait or they asked (urgent). | |
| finished | No | play_audio: whether they heard it to the end. | |
| language | No | Language code the recognizer heard, information only. | |
| listened | No | play_audio: whether they chose to listen. | |
| duration_s | No | play_audio: its length in seconds. | |
| listened_s | No | play_audio: seconds they listened. | |
| message_id | No | The text a call was delivered as, when texted is true. | |
| transcript | No | What the human said; empty if they only listened. | |
| audio_error | No | play_audio: why the recording could not be played. | |
| interrupted | No | Present when they cut in while you were still speaking: how much of your line they heard. Their answer is what they said when they cut in. | |
| back_off_note | No | What back_off means for your next step, in a sentence. | |
| language_name | No | That language's name. | |
| reached_phone | No | False when the ring could not reach their phone at all (an Android phone whose app was not running): not a call they ignored. | |
| session_token | No | Reuse in later calls and texts to stay in one thread. | |
| unanswered_calls | No | How many of your calls in a row they have not picked up; present from 3. | |
| reached_phone_note | No | Why the ring could not reach their phone, and what to do. | |
| said_while_waiting | No | What they said while you were thinking; each remark also reached you as a message when it was said. |