DialogflowCredentials
Methods
AddDialogflowKey
Adds a Dialogflow key.
To call this method, make sure your service account has one of the following roles:
Parameters
application_id:
string
The application ID
application_name:
string
OptionalThe application name. Can be used instead of application_id
json_credentials:
string
Dialogflow credentials, provided by JWK (Json web key)
description:
string
OptionalThe Dialogflow keys's description
Returns
result:
number
dialogflow_key_id:
number
SetDialogflowKey
Edits a Dialogflow key.
Parameters
dialogflow_key_id:
number
The Dialogflow key's ID
description:
string
The Dialogflow keys's description. To clear previously set description leave the parameter blank or put whitespaces only
Returns
result:
number
DelDialogflowKey
Removes a Dialogflow key.
To call this method, make sure your service account has one of the following roles:
Parameters
dialogflow_key_id:
number
The Dialogflow key's ID
Returns
result:
number
GetDialogflowKeys
Gets Dialogflow keys.
To call this method, make sure your service account has one of the following roles:
Parameters
dialogflow_key_id:
number
OptionalThe Dialogflow key's ID
application_name:
string
OptionalThe name of the bound application
application_id:
number
OptionalThe id of the bound application
Returns
result:
BindDialogflowKeys
Binds a Dialogflow key to the specified applications.
To call this method, make sure your service account has one of the following roles:
Parameters
dialogflow_key_id:
number
The Dialogflow key's ID
application_id:
intlist
The application ID list separated by semicolon (;). Use the 'all' value to select all applications
bind:
boolean
OptionalSet to false to unbind. Default value is true
Returns
result:
number