Use DialogFlow
Install the
newbot-dialogflowmodule
npm install newbot-dialogflow
Import the module into the skill and add it to the property
skills
import dialogflowSkill from 'newbot-dialogflow'
import code from './main.converse'
export default {
code,
skills: {
dialogflow: dialogflowSkill({
projectId: 'newagent-1-c9b25', // https://dialogflow.com/docs/agents#settings,
sessionId: 'quickstart-session-id',
languageDefault: 'en-EN', // optionnal
credentials: 'PATH_TO_JSON_FILE' // https://cloud.google.com/docs/authentication/production
})
}
}Use in ConverseScript
Obtain an answer according to the intention
Retrieve the entities
Last updated
Was this helpful?