AvatarResponseParameters
Parameters of the generateResponse method that generates an avatar response object.
Props
currentState
currentState: string
| undefined
Current avatar state
customData
customData: Object
Additional data returned from an avatar. Can be obtained in the platform scenario VoximplantAvatar.Events.Reply and VoximplantAvatar.Events.Finish events via customData parameter
interruptableAfter
interruptableAfter: number
| undefined
Time after which an avatar is ready to handle customer's interruptions (in case the avatar voices its response)
isFinal
isFinal: false
| undefined
| true
Whether an avatar's reply is final. If set to true, all other parameters except customData are ignored and the avatar does not process any more inputs in the current conversation
listen
listen: true
| undefined
Optional. Whether the avatar listens to the customer after saying its line (or during the line if interruptions are enabled). Disregard if the 'nextState' parameter is specified
listenTimeout
listenTimeout: number
| undefined
Timeout for listening to the customer's utterance in milliseconds. If there is no customer's utterance during this period of time, AvatarState.onTimeout callback function is called. Overrides the VoiceAvatarConfig.defaultListenTimeout parameter for the current response. If not specified for the text avatar, the waiting time is not limited
nextState
nextState: string
| undefined
Next avatar state. Optional value
utterance
utterance: string
| undefined
Phrase to reply to the user with