{"id":17943,"date":"2016-12-05T21:31:19","date_gmt":"2016-12-05T21:31:19","guid":{"rendered":"https:\/\/developer.kore.com\/?post_type=docs&#038;p=9101"},"modified":"2021-03-31T07:13:40","modified_gmt":"2021-03-31T06:13:40","slug":"sdk-configuration","status":"publish","type":"post","link":"https:\/\/developer.kore.ai\/v7-1\/docs\/bots\/sdks\/sdk-configuration\/","title":{"rendered":"SDK Configuration"},"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>To enable your Kore.ai Bot to communicate between your application servers and Kore.ai servers, you need to create and register an app in Kore.ai Bot Builder that specifies the callback URL for your application, and generates the <strong>Client ID<\/strong> and <strong>Client Secret<\/strong> authentication tokens required for secure communications between your application and any Bots in your developer account.<\/p>\n<p>This topic describes how to create an app and generate registration credentials when using the Kore.ai SDK.<a name=\"bb010\"><\/a><\/p>\n<p>To access webhooks and messages in Dialog tasks, you need to subscribe to an app for your bot. All messages from the bot and user are sent to the SDK as message events. When a Webhook node is defined in a Dialog task, the webhook event is sent to the SDK at runtime. You must install, host, and configure the Kore.ai SDK in your network to allow communications between the bot event messages and webhooks, and your application.<\/p>\n<h4><strong>To create an app<\/strong><\/h4>\n<ol>\n<li>Hover over the side-navigation panel of the bot, and click <strong>API Extensions<\/strong>. The BotKit SDK tab opens by default.<br \/>\n<a ref=\"magnificPopup\" href=\"\/wp-content\/uploads\/sites\/12\/Apps-1-1.png\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-14384 alignnone\" src=\"\/wp-content\/uploads\/sites\/12\/Apps-1-1.png\" alt=\"\" width=\"1338\" height=\"648\" \/><\/a><\/li>\n<li>On the BotKit SDK page, click the <strong>Add<\/strong> button next to the <strong>App Name<\/strong> drop-down list.\u00a0The <strong>Create App<\/strong> dialog opens.<\/li>\n<li>In the <strong>App Name<\/strong> field, enter the name of the app registration, for example, <span style=\"color: #0000ff;\">SDK App<\/span>, and then click <strong>Next<\/strong>.<\/li>\n<li>The <strong>Client ID<\/strong> and <strong>Client Secret<\/strong> are generated along with the App Created Successfully message.<a ref=\"magnificPopup\" href=\"\/wp-content\/uploads\/sites\/12\/App-slider-1.png\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-14386 alignnone\" src=\"\/wp-content\/uploads\/sites\/12\/App-slider-1.png\" alt=\"\" width=\"654\" height=\"390\" \/><\/a><\/li>\n<li>Click <strong>Done.\u00a0<\/strong>The following fields appear.<br \/>\n<a ref=\"magnificPopup\" href=\"\/wp-content\/uploads\/sites\/12\/Callback-URL-1.png\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-14387 alignnone\" src=\"\/wp-content\/uploads\/sites\/12\/Callback-URL-1.png\" alt=\"\" width=\"712\" height=\"456\" \/><\/a><\/li>\n<li>In the <strong>Callback URL<\/strong> field displayed, enter the URL for your application that you want Kore.ai to push data to, for example, <span style=\"color: #0000ff;\">https:\/\/koremessenger.com\/postURL<\/span>.<\/li>\n<li>In the <strong>Events<\/strong> section, select one or more of:\n<ul>\n<li><strong>OnMessage<\/strong>\u00a0&#8211; Triggers an event\u00a0when a message from a user is received.<\/li>\n<li><strong>OnHookNode<\/strong> &#8211; Triggers an event when a WebHook node is encountered in the Dialog task flow.<\/li>\n<li><strong>onEvent<\/strong> &#8211; Triggers an event every time a Dialog or FAQ is finished.<\/li>\n<li><strong>onAlert<\/strong> &#8211; Triggers an event when the user receives an alert message.<\/li>\n<li><strong>onVariableUpdate<\/strong> &#8211; Triggers an event when the bot is published<\/li>\n<\/ul>\n<\/li>\n<li>Click <strong>Create Credentials<\/strong>.<\/li>\n<\/ol>\n<p>The new app registration along with credentials is displayed in the <strong>SDK Configuration<\/strong> section.<\/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><\/div><\/div><\/div><\/div><\/div><\/section>\n","protected":false},"excerpt":{"rendered":"To enable your Kore.ai Bot to communicate between your application servers and Kore.ai servers, you need to create and register an app in Kore.ai Bot Builder that specifies the callback URL for your application, and generates the Client ID and Client Secret authentication tokens required for secure communications between your application and any Bots in...","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-17943","post","type-post","status-publish","format-standard","hentry","category-sdks"],"_links":{"self":[{"href":"https:\/\/developer.kore.ai\/v7-1\/wp-json\/wp\/v2\/posts\/17943","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/developer.kore.ai\/v7-1\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/developer.kore.ai\/v7-1\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/developer.kore.ai\/v7-1\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/developer.kore.ai\/v7-1\/wp-json\/wp\/v2\/comments?post=17943"}],"version-history":[{"count":4,"href":"https:\/\/developer.kore.ai\/v7-1\/wp-json\/wp\/v2\/posts\/17943\/revisions"}],"predecessor-version":[{"id":21359,"href":"https:\/\/developer.kore.ai\/v7-1\/wp-json\/wp\/v2\/posts\/17943\/revisions\/21359"}],"wp:attachment":[{"href":"https:\/\/developer.kore.ai\/v7-1\/wp-json\/wp\/v2\/media?parent=17943"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/developer.kore.ai\/v7-1\/wp-json\/wp\/v2\/categories?post=17943"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/developer.kore.ai\/v7-1\/wp-json\/wp\/v2\/tags?post=17943"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}