Rate this page:

DialogflowSettings

Settings for setup a new Dialogflow instance Add the following line to your scenario code to use the interface:

require(Modules.AI);

Props

agentId

Optional
Copy URL
agentId: 

number

Optional. ID of the Dialogflow agent certificate to use. It could be any of certificates previously added in the Control panel, see the Dialogflow Connector section in your Voximplant application. You do not need specify agentId if have only one Dialogflow agent certificate in your Voximplant application.

beta

Optional
Copy URL
beta: 

boolean

Optional. The Voximplant Dialogflow Connector uses Dialogflow v2 Beta by default. Set this to false to use the non-Beta version of Dialogflow v2.

environmentId

Optional
Copy URL
environmentId: 

string

Optional. Part of the Dialogflow session name. If Environment ID is not specified, we assume default ‘draft’ environment.

lang

Copy URL
lang: 

DialogflowLanguage

Language

outputAudioConfig

Copy URL
outputAudioConfig: 

DialogflowOutputAudioConfig

Instructs the speech synthesizer how to generate the output audio content.

phraseHints

Optional
Copy URL
phraseHints: 

any[]

Optional. The collection of phrase hints which are used to boost accuracy of speech recognition.

queryParameters

Copy URL
queryParameters: 

DialogflowQueryParameters

Initial query parameters

sessionId

Optional
Copy URL
sessionId: 

string

Optional. Dialogflow session id, can be used for connection to the existing Dialogflow session or to specify your own id for a new session

singleUtterance

Copy URL
singleUtterance: 

boolean

Enables/disables single utterance.

userId

Optional
Copy URL
userId: 

string

Optional. Part of the Dialogflow session name. If User ID is not specified, we are using “-”.