hold message
The speaker paused but is still dictating (an address, an email, a phone number, an
amount): the end of turn is kept back and the engine keeps listening (end_of_turn).
Delivery
Always on the WebSocket when its option is on; never to the callback.
Fields
-
type"hold" required -
session_idstring required -
dataobject required6 fields
-
channelinteger required -
reasonstring requiredWhat the caller is still dictating;
awaiting_classifier: the turn classifier has not answered yet;turn_in_progress: it says the turn goes on.one of:
address_in_progress,email_in_progress,phone_in_progress,financial_amount_in_progress,date_in_progress,digits_in_progress,number_in_progress,awaiting_classifier,turn_in_progress -
listeningboolean requiredAlways
true: the engine keeps listening. -
endnumber requiredSeconds of audio of the channel at the pause.
-
end_of_turn_probabilitynumber requiredThe end-of-turn probability that was kept back.
-
inlinestring<hold reason="…" listening="true"/>, withinline_tags.default:
null
-
Example
{ "type": "hold", "session_id": "string", "data": { "channel": 0, "reason": "address_in_progress", "listening": false, "end": 0.5, "end_of_turn_probability": 0.5, "inline": "string" }}