Values.UtteranceSpecificationSourceAn object containing information about a specific utterance.
type nonrec t = {botAliasId : BotAliasId.t option;The identifier of the alias of the bot that the utterance was made to.
*)botVersion : NumericalBotVersion.t option;The version of the bot that the utterance was made to.
*)localeId : LocaleId.t option;The locale of the bot that the utterance was made to.
*)sessionId : AnalyticsSessionId.t option;The identifier of the session that the utterance was made in.
*)channel : AnalyticsChannel.t option;The channel that is integrated with the bot that the utterance was made to.
*)mode : AnalyticsModality.t option;The mode of the session. The possible values are as follows: Speech – The session consisted of spoken dialogue. Text – The session consisted of written dialogue. DTMF – The session consisted of touch-tone keypad (Dual Tone Multi-Frequency) key presses. MultiMode – The session consisted of multiple modes.
*)conversationStartTime : Timestamp.t option;The date and time when the conversation in which the utterance took place began. A conversation is defined as a unique combination of a sessionId and an originatingRequestId.
*)conversationEndTime : Timestamp.t option;The date and time when the conversation in which the utterance took place ended. A conversation is defined as a unique combination of a sessionId and an originatingRequestId.
*)utterance : String_.t option;The text of the utterance.
*)utteranceTimestamp : Timestamp.t option;The date and time when the utterance took place.
*)audioVoiceDurationMillis : AnalyticsLongValue.t option;The duration in milliseconds of the audio associated with the utterance.
*)utteranceUnderstood : UtteranceUnderstood.t option;Specifies whether the bot understood the utterance or not.
*)inputType : String_.t option;The input type of the utterance. The possible values are as follows: PCM format: audio data must be in little-endian byte order. audio/l16; rate=16000; channels=1 audio/x-l16; sample-rate=16000; channel-count=1 audio/lpcm; sample-rate=8000; sample-size-bits=16; channel-count=1; is-big-endian=false Opus format audio/x-cbr-opus-with-preamble;preamble-size=0;bit-rate=256000;frame-size-milliseconds=4 Text format text/plain; charset=utf-8
*)outputType : String_.t option;The output type of the utterance. The possible values are as follows: audio/mpeg audio/ogg audio/pcm (16 KHz) audio/ (defaults to mpeg) text/plain; charset=utf-8
*)associatedIntentName : Name.t option;The name of the intent that the utterance is associated to.
*)associatedSlotName : Name.t option;The name of the slot that the utterance is associated to.
*)intentState : IntentState.t option;The state of the intent that the utterance is associated to.
*)dialogActionType : String_.t option;The type of dialog action that the utterance is associated to. See the type field in DialogAction for more information.
*)botResponseAudioVoiceId : String_.t option;The identifier for the audio of the bot response.
*)slotsFilledInSession : String_.t option;The slots that have been filled in the session by the time of the utterance.
*)utteranceRequestId : Id.t option;The identifier of the request associated with the utterance.
*)botResponses : UtteranceBotResponses.t option;A list of objects containing information about the bot response to the utterance.
*)}val make :
?botAliasId:??? ->
?botVersion:??? ->
?localeId:??? ->
?sessionId:??? ->
?channel:??? ->
?mode:??? ->
?conversationStartTime:??? ->
?conversationEndTime:??? ->
?utterance:??? ->
?utteranceTimestamp:??? ->
?audioVoiceDurationMillis:??? ->
?utteranceUnderstood:??? ->
?inputType:??? ->
?outputType:??? ->
?associatedIntentName:??? ->
?associatedSlotName:??? ->
?intentState:??? ->
?dialogActionType:??? ->
?botResponseAudioVoiceId:??? ->
?slotsFilledInSession:??? ->
?utteranceRequestId:??? ->
?botResponses:??? ->
unit ->
tval to_value :
t ->
[> `Structure of
(string
* [> `Boolean of UtteranceUnderstood.t
| `Enum of string
| `List of
[> `Structure of
(string
* [> `Enum of string
| `String of String_.t
| `Structure of
(string
* [> `List of
[> `Structure of
(string * [> `String of ButtonText.t ]) list ]
list
| `String of AttachmentTitle.t ])
list ])
list ]
list
| `Long of AnalyticsLongValue.t
| `String of BotAliasId.t
| `Timestamp of Timestamp.t ])
list ]