While Kore.ai has a state-of-the-art natural language processing engine, you may still want to plugin a third-party or proprietary NLP engine for your enterprise users. Using the Kore.ai BotKit SDK, you can add and configure Kore.ai assistants to run using your choice of NLP engine external to the XO Platform, if desired.
You can easily download and modify the Kore.ai BotKit SDK with the exampleWithExternalNLPEngine.js sample from Github. This BotKit SDK sample application can be modified to support NLP engines based on Api.ai or Luis.ai.
Configuration
To configure your external NLP engine to work with Kore.ai assistants, you will need to:
- Define your assistant in the XO Platform, with a dialog task
- If using Api.ai, then complete recognition training and update the keys in our sample code.
- If using Luis.ai, then define the intent and entities for entity extraction, train and update the keys in our sample code.
- Install and run a node.js (version 10 or higher) server with app.js file for the BotKit SDK pointing to exampleWithExternalNLPEngine.js
- In the XO Platform, define the SDK Configuration section for your assistant to point to the application server with the BotKit SDK running used to intercept user and assistant messages for NLP processing.