DialogflowInstance
Represents a Dialogflow instance. Add the following line to your scenario code to use the class: require(Modules.AI);
Constructor
Parameters
Parameters
Methods
addEventListener
Adds a handler for the specified AI.Events. Use only functions as handlers; anything except a function leads to the error and scenario termination when a handler is called.
Parameters
addMarker
Add a Dialogflow speech synthesis playback marker. The AI.Events.DialogflowPlaybackMarkerReached(/docs/references/voxengine/ai/events#dialogflowplaybackmarkerreached) event is triggered when the marker is reached.
Parameters
id
Returns the dialogflow instance’s id.
removeEventListener
Removes a handler for the specified AI.Events event.
Parameters
sendMediaTo
Starts sending media (voice) from a Dialogflow participant to the media unit.
Parameters
sendQuery
Send a query to the DialogFlow instance. You can send either a text string up to 256 characters or an event object with the event name and additional data.
Parameters
setOutputAudioConfig
Update the audio output configuration.
Parameters
setPhraseHints
Set a collection of phrase hints for the intents.
Parameters
setQueryParameters
Set parameters for the intents.
Parameters
stop
Stop and destroy the current Dialogflow instance.
stopMediaTo
Stops sending media (voice) from a Dialogflow participant to the media unit.
Parameters