Events

Add the following line to your scenario code to use the events: require(Modules.AI);

View as Markdown

Values

DialogflowQueryResult
'AI.Events.DialogflowQueryResult'

Triggered when a Dialogflow instance returns a query result.

DialogflowRecognitionResult
'AI.Events.DialogflowRecognitionResult'

Triggered when a Dialogflow instance returns a recognition result.

DialogflowResponse
'AI.Events.DialogflowResponse'

Triggered when a Dialogflow instance returns an intent response.

DialogflowError
'AI.Events.DialogflowError'

Triggered when a Dialogflow instance causes error.

DialogflowStopped
'AI.Events.DialogflowStopped'

Triggered when a Dialogflow instance is stopped.

DialogflowPlaybackFinished
'AI.Events.DialogflowPlaybackFinished'

Triggered when a playback of a single phrase is finished successfully or in case of playback error.

DialogflowPlaybackStarted
'AI.Events.DialogflowPlaybackStarted'

Triggered when a playback of a single phrase is started.

DialogflowPlaybackMarkerReached
'AI.Events.DialogflowPlaybackMarkerReached'

Triggered when ‘DialogflowInstance.addMarker’ is reached.

VoicemailDetected
'AI.Events.VoicemailDetected'

Triggered when an answering machine or voicemail is detected.

VoicemailNotDetected
'AI.Events.VoicemailNotDetected'

Triggered when an answering machine or voicemail is not detected.