Plugin Luis
For more information, refer to GitHub.
What Does This Plugin Do?
Botonic plugin that use LUIS as NLU service. The variables intent, confidence, entities and intents will be automatically available inside the input object.
Setup
To integrate your bot with Luis, you must use the intent example, which comes with @botonic/plugin-luis by default.
- Run
botonic new test-bot intentto install the plugin automatically. - Add the plugin to the
src/plugins.jsfile.
export const plugins = [
{
id: 'luis',
resolve: require('@botonic/plugin-luis'),
options: {
region: 'YOUR_REGION',
appID: 'YOUR_APP_ID',
endpointKey: 'YOUR_ENDPOINT_KEY',
},
},
]
Use
- Import the plugin in src/index.js.
src/index.js
export { routes } from './routes'
export { locales } from './locales'
export { plugins } from './plugins'
export { webchat } from './webchat'
export { webviews } from './webviews'