@botonic/plugin-luis
v0.30.0
Published
## What Does This Plugin Do?
Downloads
78
Readme
Botonic Plugin Luis
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 intent
to install the plugin automatically. - Add the plugin to the
src/plugins.js
file.
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'