Rate this page:

DialogflowSettings

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

require(Modules.AI);

Props

agentId

Copy URL
agentId: 

number

|

undefined

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

beta

Copy URL
beta: 

false

|

undefined

|

true

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

environmentId

Copy URL
environmentId: 

string

|

undefined

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

lang

Copy URL
lang: 

DialogflowLanguage

Language for the Dialogflow instance.

model

Copy URL
model: 

DialogflowModel

Optional. Machine learning model to transcribe your audio file.

modelVariant

Copy URL
modelVariant: 

DialogflowModelVariant

Optional. Variant of the specified Speech model to use.

outputAudioConfig

Copy URL
outputAudioConfig: 

DialogflowOutputAudioConfig

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

phraseHints

Copy URL
phraseHints: 

any[]

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

queryParameters

Copy URL
queryParameters: 

DialogflowQueryParameters

Initial query parameters.

region

Copy URL
region: 

string

|

undefined

Optional. The agent’s location.

sessionId

Copy URL
sessionId: 

string

|

undefined

Optional. Dialogflow session id. Use it for connection to the existing Dialogflow session or to specify your own id for a new session.

singleUtterance

Copy URL
singleUtterance: 

boolean

Whether to enable single utterance.

userId

Copy URL
userId: 

string

|

undefined

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