Dialogflow CX agent
Navigate the chat conversation to a Dialogflow CX chatbot
Description
vcc.chatbot(params)
Parameters
params
(object): An object containing the following properties:endpoint
: (string): DialogFlow CX endpoint to be used;projects
: (string): DialogFlow CX project to be used;locations
: (string): DialogFlow CX location;languageCode
: (string): DialogFlow CX language with which the conversation is initiated;agents
: (string): DialogFlow CX agent ID;nextAction
(function): The callback function to be executed after the interaction with DialogFlow CX is completed.timeout
(number): The timeout in seconds for the options. If specified, the system will send the sys.no-input-default to DialogFlow CX.
Example
function chatStarted(ctx) {
vcc.chatbot({
"endpoint": "europe-west3-dialogflow.googleapis.com:443",
"projects": "test-project",
"locations": "europe-west3",
"languageCode": "en",
"agents": "b857c223-2786-18b8-b53b-1f056ecf6b32",
"nextAction": action1,
"timeout": 10,
});
}
Comments
Can’t find what you need? Use the comment section below to connect with others, get answers from our experts, or share your ideas with us.
There are no comments yet.