Learn how to programmatically end calls or transition between call stages using special tool response types.
Response Type | Tool Action |
---|---|
hang-up | Terminates the call. In addition to having Ultravox end the call after periods of user inactivity, your custom tool can end the call. |
new-stage | Creates a new call stage. See here for more. |
X-Ultravox-Response-Type
header.
Client and data connection tools should set the responseType field in their tool result message.