Make your bots pretty with some BotoX.
$ yarn add @botox-sdk/botox
- DialogFlow
$ yarn add @botox-sdk/ai-dialogflow
- Slack
$ yarn add @botox-sdk/integration-slack
Just import your AI Engine, Integrations, if you have them, The BotoX lib and that's it:
const Botox = require('@botox-sdk/botox');
const dialogFlow = require('@botox-sdk/ai-dialogflow');
const slack = require('@botox-sdk/integration-slack');
const engine = dialogFlow({
path: resolve(__dirname, 'credentials.json'),
projectId: 'project-id',
languageCode: 'en-US'
});
const integrations = [
slack({
token: 'v0EOTAGMUquQIVIUUCteFeKX'
})
];
const bot = new Botox({
engine,
actions,
integrations
});
const result = await bot.ask('Hey');