Dialogflow to Botmaster
This package contains a function that makes the mapping between the models which come from Dialogflow to the models expected by the Botmaster framework to make it possible to directly send the content to the Bot.
Installation
Add this dependency in the section dependencies
of the project's package.json
{
...
"dependencies": {
...
"dialogflow-to-botmaster": "git@bitbucket.org/teamadm/dialogflow-to-botmaster.git"
}
}
And then (re)install the dependencies
npm install
Usage
const dialogflowToBotmaster = require('dialogflow-to-botmaster');
const dialogflowModel = { ... };
const contentModel = dialogflowToBotmaster(dialogflowModel);
...