Skip to main content
Back to how-to guides Use this pattern when callers wait too long between their last word and the agent’s first word on a voice call. Cut the wait stage by stage: end-of-speech detection, the model call, tool calls, speech start, and the silence between them.

Concept

A pipeline voice call (KoreVG) runs three steps for every turn: speech-to-text (STT), the agent, and text-to-speech (TTS). The caller hears nothing until TTS starts. Each step adds wait. You cannot remove all of it. Decide which waits to cut and which to cover with a filler. A scripted FLOW step (REASONING: false) with a fixed RESPOND needs no model call. It is the fastest path. Use a reasoning agent only where the caller’s words need interpretation. See How to choose between a reasoning agent and a FLOW-based agent.

Pipeline voice and realtime voice

Realtime (speech-to-speech) calls have no separate STT or TTS stage. The provider owns turn detection and audio delivery. Most settings in this article apply to pipeline voice only. Other articles cover turn-taking in depth (How to handle barge-in, pauses, and unclear audio) and writing short replies (How to write voice-friendly agent responses).

Minimal working example

An agent looks up an order. It gathers the order number, reads the status, and covers the lookup with a filler. agents/order-status-voice.agent.abl
Companion resources and variable sources:
  • get_order_status is a project tool. Define a tool with this name and parameter in Tools and bind it to your order API.
  • order_id is a GATHER field. The caller supplies it. The tool reads it as the order_id argument.
  • The filler text is static. MESSAGES fillers do not support {{ }} placeholders.
What each setting does: A short llm_timeout or tool_timeout ends a slow wait sooner but turns a slow answer into an error. Pair every short timeout with a spoken fallback. See How to define fallback behavior for voice failures.

How it works

Where the time goes in one turn

  1. The caller stops speaking. The platform waits for the end-of-speech signal.
  2. The agent runs. A scripted step answers at once. A reasoning step calls the model, then maybe a tool, then the model again.
  3. If the work runs longer than the filler delay, a filler plays.
  4. The reply goes to TTS. With streaming on, audio starts before the full reply exists.
Studio measures steps 1 to 4 per turn. See Verification.

Fillers

A filler covers silence. It does not shorten the wait. Your own Filler settings override the profile defaults. A profile override beats Filler settings. Static filler text comes from MESSAGES, then from the project’s localized phrase pools, then from built-in phrases such as “One moment.”

Voice low-latency profile

The profile is a project setting that tunes voice sessions only. Chat sessions in the same project keep their behavior. Your explicit settings win over the profile: an agent that sets inline_gather, a project model routing override, and your Filler settings. A project gets the profile when its first voice channel is added. An older project can show Recommended voice defaults are not active. In Settings > Runtime Config, open Voice low-latency profile and click Apply recommended defaults.

Project and channel settings

These settings have no ABL syntax. Set them in Studio. Turn detection and end-of-speech hints trade speed for accuracy. A faster setting answers sooner and risks cutting off a caller who is still speaking. Keep the default for free speech. Raise patience for card numbers and spelled names.

Common variations

Scripted steps for known questions

Use REASONING: false where the question and the answer shape are fixed. The step gathers the value, calls the tool, and replies with fixed text. No model call runs between steps. agents/order-status-scripted.agent.abl
  • END_OF_SPEECH_TURN_TYPE: structured_value tells the recognizer to expect a value such as an order number. The runtime picks the pause length. Use END_OF_SPEECH_TIMEOUT_MS for an explicit value. These hints apply to pipeline voice. They have no effect while turn detection is on for the same block.
  • get_order_status is a project tool, as in the first example. order_id comes from the GATHER field. order holds the tool result.
  • A failed lookup loops back to ask_order. Add a retry limit and an escalation before production. See How to define fallback behavior for voice failures.

Run independent lookups at the same time

A PARALLEL block runs read-only tool calls together. Three sequential calls take the sum of their times. A parallel block takes the slowest one. agents/account-summary-voice.agent.abl
  • PARALLEL calls do not use the read-only result cache. Barge-in cancels the running calls.
  • ON_PARTIAL runs when some calls fail. In this example answer would read an empty value for the failed call. Branch on the missing value before production.

Model, token, and prompt settings

Use a small max_tokens, no extra reasoning, and prompt caching for reasoning agents that answer short questions.
  • reasoning_effort: none applies to models that accept the setting.
  • prompt_cache_key applies to OpenAI and Azure OpenAI models only. prompt_version: v2 lets the provider reuse the fixed part of the prompt on supported OpenAI and Claude models. New projects start on v2. Older projects stay on v1 until you change it.
  • Choose the model in Settings or in EXECUTION with a model that exists in your project. The profile routes voice operations to the fast tier. A project with no model on that tier reports VOICE_LATENCY_MODEL_UNAVAILABLE in the model resolution preview.
  • voice_latency_target and the tool hint latency compile, but the runtime does not read them in this release. Do not use them to tune a call.

Localized fillers

Add a language suffix to a filler key. The runtime checks the region tag, then the language, then the operation, then the general key.
Filler operations are general, tool_call, reasoning, handoff, delegation, extraction, and constraint_check.

Verification

Test on a real call. A compile check proves syntax only.
  1. Open the voice channel. Click Open voice preview, or call the phone number.
  2. Say a short question, a long answer, and a value with a pause, such as an order number. Pause mid-number once.
  3. Ask the same lookup twice in one call.
  4. Open the session in Sessions and select the Voice Metrics tab.
End-to-end time starts when the runtime receives the finished utterance. It leaves out speech finalization and network time before that. Check these results: A realtime call shows end-to-end latency and interruptions only. For the full list of voice trace events, see How to observe and troubleshoot realtime voice behavior.

Production readiness checklist

  • Define every tool the agent calls in the project. Confirm the tool timeout is shorter than the time a caller will wait in silence.
  • Set llm_timeout and tool_timeout. The defaults are 120,000 ms and 30,000 ms.
  • Mark only read-only tools cacheable. Never cache a tool that changes data.
  • Confirm the fast model tier has a model. Test a reasoning turn, a tool turn, and a handoff turn.
  • Write a filler for each long wait, in each language you serve.
  • Test a pause inside a number, a short “yes”, and a long explanation with the turn detection setting you chose.
  • Add a spoken fallback for a slow or failed tool or model. See How to define fallback behavior for voice failures.
  • Review voice_dead_air events from a test run of at least one call that uses each tool.

Common mistakes

Troubleshooting