Concept
A voice reply reaches the caller through text-to-speech. Three layers decide what the caller hears.
The platform adds default rules to the prompt on every voice channel. In substance, they say:
Use plain conversational text only. No markdown, no emoji, no numbered lists or bullet points. Use natural flowing sentences. Keep responses concise.Your own rules replace this default. They do not add to it. Restate “plain speech, no lists” in your text. Choose the tool by the problem:
What platform cleanup does
Cleanup runs on voice replies that have noPLAIN_TEXT. It is a safety net. Do not rely on it.
Two side effects to know:
- Text between two underscores loses the underscores.
ab_12_cdis spoken asab12cd. - When a reply streams, cleanup runs on each chunk. A marker split across two chunks can reach the speaker.
PLAIN_TEXT is spoken as you write it. Only ISO dates and invisible characters are changed. Write no markdown in it.
Minimal working example
A booking agent answers by phone. The voice rules replace the default rules.agents/booking-voice-agent.agent.abl
booking_idis a tool input. The model takes it from what the caller says.get_bookingis a project-local tool. Replace it with your own API.
How it works
- On a voice channel, each model call includes the voice rules. Text channels do not get them.
EXECUTION.voice.instructionssets the rules for the agent. A matching behavior profile withVOICEinstructionstakes priority over the agent value while the profile matches.- An agent with a custom
SYSTEM_PROMPT:does not get the default rules. Put the spoken-style rules in the prompt text or inEXECUTION.voice.instructions. - Before speech, the platform cleans the reply text. A
PLAIN_TEXTvalue skips the cleanup and is spoken as written. {{variable}}values inPLAIN_TEXTare filled in before the reply is spoken.
For the realtime delivery settings, see Configure speaking style, tone, and pace.
Common variations
Apply voice rules to voice channels only
Use a behavior profile when the same agent also serves chat. The profileWHEN must match the channel name.
behavior_profiles/voice_plain_speech.behavior_profile.abl
PLAIN_TEXT. The profile rules shape every reply after the menu.
agents/reservation-help.agent.abl
BEHAVIOR_PROFILE: header.
Indent the lines of a multi-line RESPOND: block deeper than the VOICE: line. If you do not, the platform reads VOICE: as reply text.
Without PLAIN_TEXT, cleanup turns the menu into one run-on line: “You can: Change the dates Cancel the booking Add a guest Which one do you want?”
Keep answers short and read long results in parts
Set sentence limits and a point limit for tool results. The model is told these limits. They are not enforced.speaking key.
Grounding guards are not available
EXECUTION.voice.grounding_guards compiles without a message, but it has no effect in this release. Do not depend on it. To stop a tool call that uses an invented value, use constraints.
Verification
- Publish the agent and call a voice channel that uses it. Chat testing does not apply voice rules.
- Ask a question that has a list answer, such as “What can I do with my booking?”.
- Listen for plain sentences and no more than three options at once.
- Read the call transcript. It must contain no
*,#, bullets, tables, or links. - Ask the same question in chat. The profile must not match, so chat keeps its list.
- In the trace, check the
profile_resolutionevent. The profile name must be in the matched profiles for the voice turn. - For a fixed reply with
PLAIN_TEXT, check that the spoken words match thePLAIN_TEXTvalue.
Production readiness checklist
- Every voice agent has its own voice rules, or a profile that matches voice channels.
- Every fixed reply with a list, URL, table, or abbreviation has a
PLAIN_TEXTvalue. - Profile
WHENconditions list every voice channel name you deploy. - Rules restate “no lists, no markdown, no emoji” when you replace the default.
- Test calls cover a list answer, a long tool result, and a reply with a date.
- A reviewer listened to at least one recorded call for each agent.