Configure when and how your agent responds after tool calls - whether to speak immediately, listen for input, or speak conditionally.
agent reaction
. A default can be set on the tool itself or you can use either the X-Ultravox-Agent-Reaction
header (for http tools) or the agent_reaction
field on the tool result message (for client and data connection tools) similar to how you’d set a response type (see above).
Reaction | Description |
---|---|
speaks | Agent will speak immediately after the tool call returns. This is the default behavior if agent reaction is not set. Should be used for tools that gather information. |
listens | Agent listens for user input and doesn’t speak. |
speaks-once | Agent speaks only if it didn’t speak immediately before the tool call. Prevents agent repeating things before and after the tool call. |