{"id":17800,"date":"2016-07-12T13:52:06","date_gmt":"2016-07-12T13:52:06","guid":{"rendered":"http:\/\/apidocs.kore.com\/?post_type=docs&#038;p=3752"},"modified":"2021-03-31T07:14:27","modified_gmt":"2021-03-31T06:14:27","slug":"sdk-app-registration","status":"publish","type":"post","link":"https:\/\/developer.kore.ai\/v7-1\/docs\/bots\/sdks\/sdk-app-registration\/","title":{"rendered":"SDK App Registration"},"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>This topic describes how to register your application and generate credentials for you clients that are required to exchange messages between your application and the Kore.ai Bots Platform.<br \/>\nWhen you register your app, you will need to select a security algorithm:<\/p>\n<ul>\n<li><span style=\"font-weight: 400\"><strong>HS256<\/strong>\u00a0&#8211; Bot Builder generates and displays the Client ID and Client Secret necessary to generate the JWT token from your server.<\/span><\/li>\n<li><span style=\"font-weight: 400\"><strong>RS256<\/strong> &#8211; You upload your public key to the platform and use the private key to generate the signature from your server.<\/span><\/li>\n<\/ul>\n<p><strong>To register\u00a0an app<\/strong><\/p>\n<ol>\n<li>Open the bot to which you want to add the Web\/Mobile Client\u00a0channel.<\/li>\n<li>On the bots menu, click <strong>Channel &gt; Web\/Mobile<\/strong> Client.<\/li>\n<li>In the <strong>Select App<\/strong> drop-down list, select your existing app registration or click <strong>Create App<\/strong> to create a new app.<br \/>\n<a ref=\"magnificPopup\" href=\"\/wp-content\/uploads\/sites\/12\/New-App.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-15233\" src=\"\/wp-content\/uploads\/sites\/12\/New-App.png\" alt=\"\" width=\"467\" height=\"350\" \/><\/a><\/li>\n<li>In the <strong>Name<\/strong> field, enter the name for the app registration used in Bot Builder, for example, <span style=\"color: #0000ff\">My App Registration<\/span>.<\/li>\n<li>Select one of these scopes for the app:\n<ul>\n<li><strong>Allow anonymous users to chat with the bot<\/strong>: enables anonymous users to interact with the bot.<\/li>\n<li><strong>Auto <\/strong>register<strong> new users on Kore.ai Bots Platform<\/strong>:\u00a0Select to control the auto-user registration in Kore.ai if the user assertion is unknown.<\/li>\n<\/ul>\n<\/li>\n<li>In the JWT Signing <strong>Algorithms Used For Client App Authentication<\/strong>\u00a0drop-down list, select one of the following security algorithms:\n<ul>\n<li><strong>RS256:\u00a0<\/strong>Select to enable the <strong>Public Key<\/strong> field. The <strong>Public Key<\/strong> is used by the Kore.ai Bots Platform to authenticate the client application.<\/li>\n<li><strong>HS256:<\/strong>\u00a0Select to generate a <strong>Secret Key\u00a0<\/strong>and a <strong>Client ID<\/strong>. The <strong>Client ID<\/strong> is required for SDK initialization, and the <strong>Secret Key<\/strong>\u00a0used by the Kore.ai Bots Platform to authenticate the client application.<\/li>\n<\/ul>\n<\/li>\n<li>Optionally, In the <strong>Push Notifications<\/strong> section, click <strong>Enable<\/strong> and then specify a URL to send the notifications to.<\/li>\n<li>Click <strong>Create<\/strong>.\u00a0The app registration details appear.<br \/>\n<a ref=\"magnificPopup\" href=\"\/wp-content\/uploads\/sites\/12\/app-details-1-2.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-22925\" src=\"\/wp-content\/uploads\/sites\/12\/app-details-1-2.png\" alt=\"\" width=\"549\" height=\"473\" srcset=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/wp-content\/uploads\/sites\/12\/20221201094818\/app-details-1-2.png 549w, https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/wp-content\/uploads\/sites\/12\/20221201094818\/app-details-1-2-300x258.png 300w\" sizes=\"auto, (max-width: 549px) 100vw, 549px\" \/><\/a><\/li>\n<li>To copy\u00a0the app registration details to the clipboard for your application, you can click <strong><span style=\"color: #333333\">Copy<\/span><\/strong>\u00a0for\u00a0<strong>Bot Name<\/strong>, <strong>Bot ID<\/strong>, and\u00a0<strong>Client ID<\/strong>. For <strong>Client Secret<\/strong>, click <strong>View<\/strong>, and then click <strong>Copy<\/strong>.<\/li>\n<li>In the <strong>Allow Alert Task Setup<\/strong> section, Select <strong>Yes<\/strong> to enable your application users to\u00a0set up their own alert tasks using the web client. By default, this setting is disabled for web client users, but mobile client users can always setup their own alerts.<\/li>\n<li>In the <strong>Enable Channel<\/strong> section, select <strong>Yes<\/strong> to enable the channel immediately after saving.<\/li>\n<li>Click <strong>Save<\/strong> to save the settings and close the <strong>Web\/Mobile Client\u00a0Channel<\/strong> page.<\/li>\n<\/ol>\n<p>The <em>Channel Information updated successfully<\/em> message is displayed on the top-right corner of the page.<\/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":"This topic describes how to register your application and generate credentials for you clients that are required to exchange messages between your application and the Kore.ai Bots Platform. When you register your app, you will need to select a security algorithm: HS256\u00a0- Bot Builder generates and displays the Client ID and Client Secret necessary to...","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-17800","post","type-post","status-publish","format-standard","hentry","category-sdks"],"_links":{"self":[{"href":"https:\/\/developer.kore.ai\/v7-1\/wp-json\/wp\/v2\/posts\/17800","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=17800"}],"version-history":[{"count":3,"href":"https:\/\/developer.kore.ai\/v7-1\/wp-json\/wp\/v2\/posts\/17800\/revisions"}],"predecessor-version":[{"id":22937,"href":"https:\/\/developer.kore.ai\/v7-1\/wp-json\/wp\/v2\/posts\/17800\/revisions\/22937"}],"wp:attachment":[{"href":"https:\/\/developer.kore.ai\/v7-1\/wp-json\/wp\/v2\/media?parent=17800"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/developer.kore.ai\/v7-1\/wp-json\/wp\/v2\/categories?post=17800"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/developer.kore.ai\/v7-1\/wp-json\/wp\/v2\/tags?post=17800"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}