System prompt
The system prompt sets the personality, goals, and guardrails that steer every reply. It is capped at 64,000 tokens, or 32,000 tokens when the agent runsgoogle/gemma-4-26b-a4b-it. The API rejects a longer prompt with 422 Unprocessable Entity, and also a model change that would leave the prompt over the new model’s cap. GET /v1/agent/llm-models returns each model’s cap as max_system_prompt_tokens. Keeping it under 2,000 tokens is recommended: shorter prompts cut latency and cost, and hold the model’s attention better. It can also be replaced for a single session by sending overrides.system_prompt when creating the session.
To personalize the prompt per session without replacing it, write {{placeholders}}: custom variables such as {{customer_name}} take the values you pass when creating the session, and system variables such as {{system.caller_number}} or {{system.today}} are filled in by the platform.
First message
Choose how the agent opens each conversation:
In the Builder, this choice is the Opening line group; pick Start first (see When the first message starts), then the opening line. Off is only available when the agent speaks first.
first_message and first_message_prompt can each hold up to 10,000 characters. The active mode (first_message_mode: off, fixed, or prompt) decides what callers hear. Both fields accept the same {{placeholders}} as the system prompt (see Dynamic variables), and both can be replaced for a single session by sending overrides.first_message or overrides.first_message_prompt when creating the session.
When the first message starts
prompt.first_message_start decides whether the agent speaks as soon as the conversation connects. In the Builder this is Start in the First message section.
“Connects” means the callee picks up on a phone call, and the client is ready on a web or API session. Phone calls that play a keypad menu first are not affected by this setting.
With Wait for caller, the opening line works like this:
first_message_start: wait_for_caller cannot be combined with first_message_mode: off: the agent would have nothing to say, so the Builder offers only Fixed message and Prompt under Wait for caller. The API rejects a configuration that sets both with 422. When you switch from Agent first with Off to Wait for caller, the Builder moves the opening line to Prompt; switching straight back restores Off.
prompt.first_message_max_wait_ms (1000–5000, default 3000) is how long the agent waits for the caller before it speaks anyway. It only applies when first_message_start is wait_for_caller. In the Builder this is Speak anyway after, with 1 s, 3 s, and 5 s shortcuts and a Custom value.
Background noise, someone else talking nearby, or a short acknowledgment such as “mm-hmm” does not count as the caller speaking. A sound that never turns into a sentence can delay the first message a few seconds past first_message_max_wait_ms, so treat it as the point where the agent stops waiting, not as a hard ceiling.
Interrupting the first message
prompt.first_message_interruptible controls whether the caller can barge in while the first message plays. In the Builder this is During the first message.
When you write the agent without this setting, or with
null, the first message can be interrupted. Reading the agent always returns true or false, never null. conversation.interruptible does not change this: it applies to the rest of the conversation, not to the first message. New agents can be interrupted. Set it to false to protect the first message.
With Echo guard on, the first 3 seconds of the first message cannot be interrupted whichever way this is set.
Voice
The Voice panel selects the voice your agent speaks with (voice_id) and its speaking language (speaking_language, one of the 52 supported languages). It also holds the text-to-speech model (tts_model), expressive delivery (expressive) and the speech recognition settings, which the API keeps in their own asr section: the recognition model (asr.model) and the multilingual recognition switch (asr.multilingual). See Voice & language for all of them. The background sound (background_sound) and the voice effect for web calls (effect) have their own page, Background sound & voice effect.
Conversation settings
Turn-taking
conversation.response_wait_ms (300–2000, default 550) is how long the agent waits after the caller pauses before it starts talking. In the Builder this is the Response wait slider, with Fast (0.45 s), Balanced (0.55 s), and Patient (0.9 s) shortcuts.
When the agent thinks the caller is mid-sentence it waits longer, up to conversation.response_max_wait_ms (600–4000). Leave it null (the default) to follow the response wait plus 0.5 s; send 0 to clear an explicit value back to automatic. A max wait below the response wait is rejected with 422.
conversation.eagerness is the same setting as a preset and still works: writing relaxed, balanced, or eager sets the response wait to 900, 550, or 450 ms, and reads report the preset that matches the current wait.
A short answer such as “yes” normally lands on the fast path. When the agent asks for digits or a spelled-out name, the wait is widened automatically so the caller can pause between groups.
conversation.speculative_response (default true) lets the agent start preparing its reply while the caller may still be speaking; the draft is discarded if they continue, and tools never run before the caller’s turn is confirmed. Turn it off if your custom LLM bills per token and you would rather not pay for discarded drafts. With it off, the response wait is added directly to every reply.
Interruptions
conversation.interruptible(defaulttrue): Whether the caller can barge in while the agent is speaking.conversation.interruption_sensitivitysets how much caller speech counts as an interruption:low(Hard to interrupt in the Builder): The agent stops only for a firm, worded interjection, talking through background noise and short acknowledgements.balanced(default): Interrupts on normal speech.high(Easy to interrupt): The agent stops on the caller’s first word.
conversation.interruption_ignore_phrases(up to 50 entries of 40 characters): Backchannels such as"uh-huh"or"okay"that never interrupt the agent when the caller says only them. Matching ignores case and punctuation. Send[]to clear the list.
Backchannels
An agent on a speech model that backchannels acknowledges the caller as it listens, with a short “mm-hmm” or “okay” when they pause. Live 3 is the one that does today. Other models ignore these settings. If callers find the acknowledgements too frequent, or feel talked over, turn them down or off.- Console
- API
On the agent’s Configuration page, open Voice details. Both settings show once Live 3 is on.
With backchannels off, the agent listens quietly and acknowledges far less often. One may still come through now and then. With fewer acknowledgements, the first sound after the caller stops can also come slightly later.
Echo guard
Callers’ devices and the phone network normally cancel the agent’s echo, but in a few calls (under 3%) some echo gets through in the agent’s first seconds and cuts it off.conversation.echo_guard (Echo guard in the Builder) prevents this. For 3 seconds after the agent first starts talking, the caller can’t interrupt it, and what the caller says over the agent is dropped. This holds for the first message too: with Echo guard on, its first 3 seconds cannot be interrupted, even when prompt.first_message_interruptible is true. Keypad entries and the web SDK’s interrupt() still work.
Each channel has its own key. Set it to true, false, or null for the default.
Turn it off if callers should be able to interrupt the agent within those 3 seconds.
Call duration
conversation.max_duration_seconds (60–3600, default 1800) ends the session automatically when the limit is reached.
Preview calls in the Builder are capped at 10 minutes or this setting, whichever is lower.
Recording
conversation.record_audio (default true) stores per-speaker audio for playback and download, with a per-session override on the session request. In the console this lives under your agent’s Settings. Make sure callers are informed and consent where your jurisdiction requires it.
Timezone
conversation.timezone is the default IANA timezone (like Asia/Tokyo) the agent uses for dates and times in conversation. Leave it empty for automatic: each session follows the caller’s device or phone number, falling back to UTC. Set one when your agent serves a single region regardless of who calls. A per-session timezone on the session request overrides this. See Time & timezone for the full resolution order.
Context
Thecontext section holds the facts the platform tells your agent on its own, one switch each. Guardrails constrain what the agent does, context switches add to what it knows.
Current date and time
context.current_time (default true) tells the agent today’s date when a session starts and the current time before every reply, in the agent’s timezone. In the Builder this is the Current date & time toggle under the time zone. Keep it on for scheduling, reminders, or any prompt that says “tomorrow” or “next Tuesday”. Turn it off when the prompt states its own date, for example a role-play set on a fictional day. A session request’s context.current_time overrides the agent’s setting in either direction. See Time & timezone.
Autosave and publishing
There is no Save button. Each change is written to the agent’s draft moments after you stop editing, and the Saving… / Saved indicator at the bottom-left of the page shows the current state. If a save fails, the Builder tells you and keeps your pending edits so nothing is lost. Drafts never affect live traffic: active integrations keep using the last published version until you press Publish, which snapshots the draft as a new immutable version. The Publish button lights up whenever the draft differs from what is published. See Versions & publishing.Configure through the API
The same draft is readable and writable over REST, which is useful for provisioning agents from your own systems.Read the draft
Request
Response (abridged)
tools, knowledge_base, analysis, and webhooks sections, each covered on its own page. config_hash identifies this draft revision; a mismatch with the published version is what marks an agent as having unpublished changes.
Update sections
PATCH takes a partial body and deep-merges it into the draft: send only the sections and fields you want to change, and everything else keeps its value. Fields that hold a list (webhooks.post_call among them) are replaced as a whole, so send the complete list whenever you change one.
config_hash. Values outside the documented limits (a system prompt over its model’s cap, max_duration_seconds outside 60–3600) are rejected with 422 Unprocessable Entity and the draft is left unchanged.
Config sections
Going further
Voice & language
Choose a voice profile and control the speaking language.
Versions & publishing
Turn the draft into an immutable live version.
Preview calls
Talk to your draft in the Builder before publishing.
Tools
Let the agent call your backend mid-conversation.
Dynamic variables
Personalize the prompt and first message per session.

