{"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-08-14T08:52:55","modified_gmt":"2021-08-14T07:52:55","slug":"sdk-configuration","status":"publish","type":"post","link":"https:\/\/developer.kore.ai\/v9-0\/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.<\/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>Select the <strong>Deploy<\/strong> tab from the top menu<\/li>\n<li>From the left menu click <strong>Integrations -&gt; BotKit<\/strong>.<\/li>\n<li>The BotKit SDK page.<br \/>\n<a ref=\"magnificPopup\" href=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v9-0\/wp-content\/uploads\/sites\/21\/20210621121443\/deploy_BotKit.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-27851\" src=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v9-0\/wp-content\/uploads\/sites\/21\/20210621121443\/deploy_BotKit.png\" alt=\"\" width=\"1366\" height=\"768\" srcset=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v9-0\/wp-content\/uploads\/sites\/21\/20210621121443\/deploy_BotKit.png 1366w, https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v9-0\/wp-content\/uploads\/sites\/21\/20210621121443\/deploy_BotKit-300x169.png 300w, https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v9-0\/wp-content\/uploads\/sites\/21\/20210621121443\/deploy_BotKit-1024x576.png 1024w\" sizes=\"auto, (max-width: 1366px) 100vw, 1366px\" \/><\/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;\">TestApp<\/span>, and then click <strong>Next<\/strong>.<\/li>\n<li>Once the App Created Successfully message appears, click <strong>Done.\u00a0<\/strong><\/li>\n<li>The following fields appear.\n<ol>\n<li>The <strong>Client ID<\/strong> and <strong>Client Secret<\/strong> are generated<\/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<ol>\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<\/ol>\n<\/li>\n<li>Click <strong>Save<\/strong>.<\/li>\n<\/ol>\n<\/li>\n<\/ol>\n<p>The new app registration along with credentials is displayed in the <b>BotKit <\/b>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\/v9-0\/wp-json\/wp\/v2\/posts\/17943","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/developer.kore.ai\/v9-0\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/developer.kore.ai\/v9-0\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/developer.kore.ai\/v9-0\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/developer.kore.ai\/v9-0\/wp-json\/wp\/v2\/comments?post=17943"}],"version-history":[{"count":5,"href":"https:\/\/developer.kore.ai\/v9-0\/wp-json\/wp\/v2\/posts\/17943\/revisions"}],"predecessor-version":[{"id":30928,"href":"https:\/\/developer.kore.ai\/v9-0\/wp-json\/wp\/v2\/posts\/17943\/revisions\/30928"}],"wp:attachment":[{"href":"https:\/\/developer.kore.ai\/v9-0\/wp-json\/wp\/v2\/media?parent=17943"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/developer.kore.ai\/v9-0\/wp-json\/wp\/v2\/categories?post=17943"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/developer.kore.ai\/v9-0\/wp-json\/wp\/v2\/tags?post=17943"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}