Rate this page:

AvatarUtteranceEvent

Triggered when a user says a phrase, NLU extracts an intent from it, and now an avatar has to react to it.

Props

confidence

Copy URL
confidence: 

number

|

undefined

Optional. Recognized phrase confidence

currentState

Copy URL
currentState: 

string

Current avatar state

entities

Copy URL
entities: 

AvatarEntities

Optional. Extracted entities (both system and custom)

intent

Copy URL
intent: 

string

Most suitable intent for the phrase (or 'unknown' if unclear)

intents

Copy URL
intents: 

AvatarUtteranceIntent[]

Optional. Extended information on the intent recognition results

response

Copy URL
response: 

string

Default response to the intent from the UI

text

Copy URL
text: 

string

Recognized phrase text

utteranceCounter

Copy URL
utteranceCounter: 

number

Number of customer's phrases processed in this state. This counter resets when changing the state to any other (or the same) one

visitsCounter

Copy URL
visitsCounter: 

number

Number of the state visits