Rate this page:

AvatarUtteranceEvent

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

Props

entities

Copy URL
entities: 

AvatarEntities

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: 

AvatarUtteranceIntents[]

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 user phrases processed in this state. This counter is reset when changing the state to any other (or the same) one

visitsCounter

Copy URL
visitsCounter: 

number

Number of the state visits