{"id":17997,"date":"2017-08-08T15:23:21","date_gmt":"2017-08-08T15:23:21","guid":{"rendered":"http:\/\/developer.kore.ai\/v8-1\/?post_type=docs&#038;p=11745"},"modified":"2021-03-18T09:46:13","modified_gmt":"2021-03-18T09:46:13","slug":"using-an-external-nlp-engine","status":"publish","type":"post","link":"https:\/\/developer.kore.ai\/v8-1\/docs\/bots\/sdks\/using-an-external-nlp-engine\/","title":{"rendered":"Using an External NLP Engine"},"content":{"rendered":"<section class=\"l-section wpb_row height_auto\"><div class=\"l-section-h i-cf\"><div class=\"g-cols vc_row type_default valign_top\"><div class=\"vc_col-sm-12 wpb_column vc_column_container\"><div class=\"vc_column-inner\"><div class=\"wpb_wrapper\">\r\n\t<div class=\"wpb_text_column \">\r\n\t\t<div class=\"wpb_wrapper\">\r\n\t\t\t<p>While Kore.ai has a state-of-the-art <a href=\"https:\/\/kore.ai\/platform\/design-and-build\/natural-language-processing\/\" rel=\"noopener noreferrer\" target=\"_blank\">natural language processing<\/a> 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 bots to run using your choice of NLP engine external to the Bots Platform if desired.<\/p>\n<p>You can easily download and modify the Kore.ai BotKit SDK with the\u00a0<a href=\"https:\/\/github.com\/Koredotcom\/BotKit\/blob\/master\/exampleWithExternalNLPEngine.js\"><span style=\"color: #0000ff\">exampleWithExternalNLPEngine.js<\/span><\/a>\u00a0sample from Github. This BotKit SDK sample application can be modified to support NLP engines based on Api.ai or Luis.ai.<\/p>\n\r\n\t\t<\/div>\r\n\t<\/div>\r\n<div class=\"w-separator size_small with_line width_default thick_1 style_solid color_border align_center\"><div class=\"w-separator-h\"><\/div><\/div>\r\n\t<div class=\"wpb_text_column \">\r\n\t\t<div class=\"wpb_wrapper\">\r\n\t\t\t<h2><span class=\"ez-toc-section\" id=\"Overview\">Overview<\/span><\/h2>\n<p>To configure your external NLP engine to work with Kore.ai bots, you will need to:<\/p>\n<ul>\n<li>Define your bot in Bot Builder with a dialog task<\/li>\n<li>If using Api.ai, then complete recognition training and update the keys in our sample code.<\/li>\n<li>If using Luis.ai, then define the intent and entities for entity extraction, train and update the keys in our sample code.<\/li>\n<li>Install and run a node.js server with <span style=\"color: #0000ff\">app.js<\/span> file for the BotKit SDK pointing to <a href=\"https:\/\/github.com\/Koredotcom\/BotKit\/blob\/master\/exampleWithExternalNLPEngine.js\"><span style=\"color: #0000ff\">exampleWithExternalNLPEngine.js<\/span><\/a><\/li>\n<li>In Bot Builder, define the <strong>SDK Configuration<\/strong> section for your bot to point to the application server with the BotKit SDK running used to intercept user and bot messages for NLP processing.<\/li>\n<\/ul>\n\r\n\t\t<\/div>\r\n\t<\/div>\r\n<div class=\"w-separator size_small with_line width_default thick_1 style_solid color_border align_center\"><div class=\"w-separator-h\"><\/div><\/div><\/div><\/div><\/div><\/div><\/div><\/section>\n","protected":false},"excerpt":{"rendered":"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 bots to run using your choice of NLP engine external to the Bots Platform if desired. You can easily...","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[36],"tags":[],"class_list":["post-17997","post","type-post","status-publish","format-standard","hentry","category-sdks"],"_links":{"self":[{"href":"https:\/\/developer.kore.ai\/v8-1\/wp-json\/wp\/v2\/posts\/17997","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/developer.kore.ai\/v8-1\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/developer.kore.ai\/v8-1\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/developer.kore.ai\/v8-1\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/developer.kore.ai\/v8-1\/wp-json\/wp\/v2\/comments?post=17997"}],"version-history":[{"count":4,"href":"https:\/\/developer.kore.ai\/v8-1\/wp-json\/wp\/v2\/posts\/17997\/revisions"}],"predecessor-version":[{"id":27088,"href":"https:\/\/developer.kore.ai\/v8-1\/wp-json\/wp\/v2\/posts\/17997\/revisions\/27088"}],"wp:attachment":[{"href":"https:\/\/developer.kore.ai\/v8-1\/wp-json\/wp\/v2\/media?parent=17997"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/developer.kore.ai\/v8-1\/wp-json\/wp\/v2\/categories?post=17997"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/developer.kore.ai\/v8-1\/wp-json\/wp\/v2\/tags?post=17997"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}