{"id":23706,"date":"2020-07-03T15:40:59","date_gmt":"2020-07-03T14:40:59","guid":{"rendered":"https:\/\/developer.kore.ai\/v9-1\/?p=23706"},"modified":"2021-08-16T13:28:18","modified_gmt":"2021-08-16T12:28:18","slug":"bot-versioning","status":"publish","type":"post","link":"https:\/\/developer.kore.ai\/v9-1\/docs\/bots\/bot-settings\/bot-management\/bot-versioning\/","title":{"rendered":"Bot Versioning"},"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>Very often, as part of the development, you may want to mark specific stages of development as versions. The reasons could be as varied as:<\/p>\n<ul>\n<li>creating a version of the bot before proceeding to subsequent changes;<\/li>\n<li>to preserve a fully tested version till the production release while continuing to work on enhancements;<\/li>\n<li>to keep track of all the changes made.<\/li>\n<\/ul>\n<p>If the new changes are not working out, for any reason, then you would want to revert back to the previous state.<\/p>\n\r\n\t\t<\/div>\r\n\t<\/div>\r\n<div class=\"w-separator size_medium 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>Kore.ai&#8217;s\u00a0<strong>Bot Versions<\/strong> option is specifically designed to meet the above requirements.<\/p>\n<p>Using this option, you as a bot developer can:<\/p>\n<ul>\n<li>create multiple versions of the bot definition;<\/li>\n<li>view and manage all versions available for the bot; and<\/li>\n<li>restore the bot to a previous version.<\/li>\n<\/ul>\n<p>Versioning is supported in Standard and Universal Bots.<\/p>\n<p>This option can be accessed from the <strong>Deploy<\/strong> tab from the top menu, under the left menu option <strong>Bot Management -&gt; Bot Versions.<\/strong><\/p>\n<p><a ref=\"magnificPopup\" href=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v9-1\/wp-content\/uploads\/sites\/22\/20210713054415\/deploy_versionAccess.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-28519\" src=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v9-1\/wp-content\/uploads\/sites\/22\/20210713054415\/deploy_versionAccess.png\" alt=\"\" width=\"211\" height=\"415\" srcset=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v9-1\/wp-content\/uploads\/sites\/22\/20210713054415\/deploy_versionAccess.png 211w, https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v9-1\/wp-content\/uploads\/sites\/22\/20210713054415\/deploy_versionAccess-153x300.png 153w\" sizes=\"auto, (max-width: 211px) 100vw, 211px\" \/><\/a><\/p>\n\r\n\t\t<\/div>\r\n\t<\/div>\r\n<div class=\"w-separator size_medium 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=\"Types\">Types<\/span><\/h2>\n<p>The version type is based on the ways in which a Bot version is created:<\/p>\n<ul>\n<li><strong>User Created<\/strong>: These versions are created by you as Bot Developer\n<ul>\n<li><a href=\"#Creation\">See below<\/a> for the process.<\/li>\n<li>The maximum number of user-created versions that will be created is set to 20. Once this limit is reached new version will be created and the oldest versions are deleted.<\/li>\n<\/ul>\n<\/li>\n<li><strong>Auto Created<\/strong>: These versions are created as part of the bot Publish cycle.\n<ul>\n<li>Whenever you publish a bot, the platform creates a version automatically.<\/li>\n<li>This auto version includes the definition of the published copy of the bot after the current publish request is accepted.<\/li>\n<li>In case the publish request is rejected, the version will not be created.<\/li>\n<li>You cannot delete these versions.<\/li>\n<li>While an auto-version creation is in-progress, you cannot raise any subsequent publish requests.<\/li>\n<li>The maximum number of auto-versions that will be created is set to 20. Once this limit is reached new version will be created and the oldest versions are deleted.<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n\r\n\t\t<\/div>\r\n\t<\/div>\r\n<div class=\"w-separator size_medium 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=\"Creation\">Creation<\/span><\/h2>\n<p>Following are the steps to create a version:<\/p>\n<ol>\n<li>From the <strong>Bot Versions<\/strong> page, click the\u00a0<strong>Create Version<\/strong> button.<\/li>\n<li>You will be prompted to enter:\n<ul>\n<li><strong>Version Name<\/strong> &#8211; enter a unique name that would ideally give an idea of a major feature of the Bot.<\/li>\n<li><strong>Description<\/strong> &#8211; add in brief the changes that went into this version.<\/li>\n<\/ul>\n<\/li>\n<li>Click\u00a0<strong>Create Version<\/strong> when done. Your bot version is created.<\/li>\n<\/ol>\n<p><a ref=\"magnificPopup\" href=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v9-1\/wp-content\/uploads\/sites\/22\/20210713054510\/deploy_versions_create.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-28522\" src=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v9-1\/wp-content\/uploads\/sites\/22\/20210713054510\/deploy_versions_create.png\" alt=\"\" width=\"693\" height=\"765\" srcset=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v9-1\/wp-content\/uploads\/sites\/22\/20210713054510\/deploy_versions_create.png 693w, https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v9-1\/wp-content\/uploads\/sites\/22\/20210713054510\/deploy_versions_create-272x300.png 272w\" sizes=\"auto, (max-width: 693px) 100vw, 693px\" \/><\/a><\/p>\n\r\n\t\t<\/div>\r\n\t<\/div>\r\n<div class=\"w-separator size_medium 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=\"Actions\">Actions<\/span><\/h2>\n<p>Following are the actions you can perform from the bot version listing page:<\/p>\n<ol>\n<li>On the <strong>Bot Versions<\/strong> page, you will see a list of all versions of the bot.<\/li>\n<li>For each version you can view:\n<ul>\n<li><strong>Name<\/strong> of the versions<\/li>\n<li><strong>Description<\/strong> of the version<\/li>\n<li><strong>Platform<\/strong> <strong>Version<\/strong> where this bot version was created<\/li>\n<li><strong>Created on<\/strong> &#8211; the version creation timestamp<\/li>\n<li><strong>Created by<\/strong> &#8211; the user who created the version.<\/li>\n<\/ul>\n<\/li>\n<li>You can perform the following actions on each version:\n<ul>\n<li><strong>Restore<\/strong> to a specific version;<\/li>\n<li><strong>Export<\/strong> a specific version;<\/li>\n<li><strong>Delete<\/strong> a specific version (not applicable for auto-versions).<\/li>\n<\/ul>\n<\/li>\n<li>You can\u00a0<strong>Compare<\/strong> versions to track changes.<\/li>\n<\/ol>\n<p><a ref=\"magnificPopup\" href=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v9-1\/wp-content\/uploads\/sites\/22\/20210713054548\/deploy_versions.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-28525\" src=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v9-1\/wp-content\/uploads\/sites\/22\/20210713054548\/deploy_versions.png\" alt=\"\" width=\"1361\" height=\"459\" srcset=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v9-1\/wp-content\/uploads\/sites\/22\/20210713054548\/deploy_versions.png 1361w, https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v9-1\/wp-content\/uploads\/sites\/22\/20210713054548\/deploy_versions-300x101.png 300w, https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v9-1\/wp-content\/uploads\/sites\/22\/20210713054548\/deploy_versions-1024x345.png 1024w\" sizes=\"auto, (max-width: 1361px) 100vw, 1361px\" \/><\/a><\/p>\n\r\n\t\t<\/div>\r\n\t<\/div>\r\n<div class=\"w-separator size_medium 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=\"Version_Restoration\">Version Restoration<\/span><\/h2>\n<p>Using the\u00a0<strong>Restore<\/strong> option against any version, you can replace the current \u2018in-development\u2019 version of the bot with the definition present in that version. The restoration honors the bot compatibility versions and will reject any non-compatible version restorations.<\/p>\n<h3><span class=\"ez-toc-section\" id=\"How_restoration_works\">How restoration works<\/span><\/h3>\n<p>The following is how version restore is handled for each of the Bot components:<\/p>\n<p><strong>Tasks:<\/strong><\/p>\n<p>The following rules apply to Dialog Tasks, Action \/ Alert \/ Information Tasks, Small Talk (per language), UI Forms, Panels and Widgets<\/p>\n<ul>\n<li>If there are one or more additional tasks in the bot, and if these are not present in the restoration version definition, then these tasks will be implicitly marked as \u2018Deleted\u2019 in the platform.<\/li>\n<li>These \u2018Deleted\u2019 tasks will not be available for the bot development and they will automatically be removed from the Published copy of the bot during the first publish request post-restoration. You will not be allowed to exclude these delete requests from the publish requests.<\/li>\n<li>Once deleted if you restore a version that contains these deleted tasks they will be included as new tasks with the same name and the original (deleted) tasks will still be marked as deleted in the Publish logs.<\/li>\n<li>If you have restored a published bot to an unpublished state then bot import might be restricted.<\/li>\n<\/ul>\n<p><strong>Knowledge Graph:<\/strong><\/p>\n<p>The following rules apply to Knowledge Tasks (per Language)<\/p>\n<ul>\n<li>If there are one or more additional FAQs in the bot, and if these are not present in the restoration version definition, then these tasks will be implicitly marked as \u2018Deleted\u2019 in the platform.<\/li>\n<li>These \u2018Deleted\u2019 tasks will not be available for the bot development<\/li>\n<li>These FAQs will be removed from published copy only if the corresponding parent nodes are selected for publishing during the publish request<\/li>\n<li>If the corresponding parent nodes are not selected for publishing, then those FAQs will be present in the Published copy but considered as deleted in the in-development copy<\/li>\n<li>Once deleted if you restore a version that contains these deleted tasks they will be included as new tasks with the same name and the original (deleted) tasks will still be marked as deleted in the Publish logs.<\/li>\n<\/ul>\n<p><strong>Small Talk:<\/strong><\/p>\n<p>The following rules apply to Small Talk (per Language)<\/p>\n<ul>\n<li>If there are one or more additional QnAs in the bot, and if these are not present in the restoration version definition, then these tasks will be implicitly marked as \u2018Deleted\u2019 in the platform.<\/li>\n<li>These \u2018Deleted\u2019 tasks will not be available for the bot development<\/li>\n<li>These QnAs will be removed from published copy only if Small Talk is selected for publishing during the publish request<\/li>\n<\/ul>\n<p><strong>Languages<\/strong><\/p>\n<ul>\n<li>If there are one or more additional languages in the bot definition which are not present in the restore version definition, then such languages will be considered as \u2018deleted\u2019 from the configured version of the bot.<\/li>\n<li>These \u2018deleted\u2019 languages will not be available for bot development<\/li>\n<li>The language deletion will get reflected in the published copy after the subsequent publishing of the bot post-restoration<\/li>\n<\/ul>\n<p><strong>Channels<\/strong><\/p>\n<ul>\n<li>Channels are not part of bot definition and as such will bot be part of versioning ie. the current channel enablement will not change on version restoration.<\/li>\n<li>One exception is the <strong>Webhook channel<\/strong>. The web channel configuration of the current version will be replaced by that of the restored version.<\/li>\n<\/ul>\n<p><strong>Bot Management<\/strong><\/p>\n<ul>\n<li>Bot Import will not be allowed until the restored version is published.<\/li>\n<\/ul>\n\r\n\t\t<\/div>\r\n\t<\/div>\r\n<div class=\"w-separator size_medium 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=\"Version_Compare\">Version Compare<\/span><\/h2>\n<p>The Version Comparison feature allows you to understand the differences between different versions of the same bot. It helps to:<\/p>\n<ul>\n<li>Debug issues in the recently published version by letting them compare the published version with any of the previous versions.<\/li>\n<li>Analyze changes before Publish. The developer can take a snapshot of changes by comparing a copy of the in-development version and the published version of the bot.<\/li>\n<li>Perform Impact Analysis before (or after) Version Restore. The developer can get a better understanding of the impact of version restoration by comparing the two versions.<\/li>\n<li>Analyze changes in NLP\/NLU. NLP trainers can analyze the change in the bot&#8217;s NLP performance by comparing the training present in two versions.<\/li>\n<\/ul>\n<p>Using the\u00a0<strong>Compare<\/strong> option against any version, you can compare any two versions of your bot to review the list of changes made to the bot definition between the two versions.<\/p>\n<p><span style=\"font-weight: 400;\">To compare bot versions, follow the below steps:<\/span><\/p>\n<ol>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">On the <\/span><i><span style=\"font-weight: 400;\">Bot Versions<\/span><\/i><span style=\"font-weight: 400;\"> page, you can find the list of your bot versions.<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Hover over the bot version you want to compare and click <\/span><b>Compare<\/b><span style=\"font-weight: 400;\">.<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">On the <\/span><b>Select Another Version to Compare<\/b><span style=\"font-weight: 400;\"> window, you can find the selected version (base) of your bot and a list that contains different versions (target). Select a bot version from the list to compare.<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Click <\/span><b>Proceed<\/b><span style=\"font-weight: 400;\">.<\/span><br \/>\n<a ref=\"magnificPopup\" href=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v9-1\/wp-content\/uploads\/sites\/22\/20210713055511\/deploy_versions_compare1.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-28528\" src=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v9-1\/wp-content\/uploads\/sites\/22\/20210713055511\/deploy_versions_compare1.png\" alt=\"\" width=\"1366\" height=\"768\" srcset=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v9-1\/wp-content\/uploads\/sites\/22\/20210713055511\/deploy_versions_compare1.png 1366w, https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v9-1\/wp-content\/uploads\/sites\/22\/20210713055511\/deploy_versions_compare1-300x169.png 300w, https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v9-1\/wp-content\/uploads\/sites\/22\/20210713055511\/deploy_versions_compare1-1024x576.png 1024w\" sizes=\"auto, (max-width: 1366px) 100vw, 1366px\" \/><\/a><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">On the Version Comparison page, you can find the comparison details categorized into:<\/span>\n<ul>\n<li style=\"font-weight: 400;\" aria-level=\"2\"><span style=\"font-weight: 400;\">Tasks<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"2\"><span style=\"font-weight: 400;\">Training\u00a0<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"2\"><span style=\"font-weight: 400;\">Intelligence<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"2\"><span style=\"font-weight: 400;\">Settings<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"2\"><span style=\"font-weight: 400;\">Change Logs<\/span><\/li>\n<\/ul>\n<\/li>\n<li style=\"font-weight: 400;\" aria-level=\"2\">The following information is highlighted to the developer in a JSON format:\n<ul>\n<li style=\"font-weight: 400;\" aria-level=\"2\"><b>Data addition<\/b><span style=\"font-weight: 400;\"> &#8211; Newly added data in the secondary version is highlighted, but not in the primary version.<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"2\"><b>Data removal<\/b><span style=\"font-weight: 400;\"> &#8211; Data deleted from the primary version is highlighted, but not in the secondary version.<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"2\"><b>Data update<\/b><span style=\"font-weight: 400;\"> &#8211; In the case of key-value pairs, the same <\/span><i><span style=\"font-weight: 400;\">key<\/span><\/i><span style=\"font-weight: 400;\"> present in both versions with different values is highlighted.\u00a0<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"2\"><span style=\"font-weight: 400;\">For data addition and removal, an empty line is shown in the version where the corresponding detail is missing to understand the position of the new line.<\/span><\/li>\n<\/ul>\n<p><a ref=\"magnificPopup\" href=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v9-1\/wp-content\/uploads\/sites\/22\/20210713055543\/deploy_versions_compare2.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-28531\" src=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v9-1\/wp-content\/uploads\/sites\/22\/20210713055543\/deploy_versions_compare2.png\" alt=\"\" width=\"1366\" height=\"768\" srcset=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v9-1\/wp-content\/uploads\/sites\/22\/20210713055543\/deploy_versions_compare2.png 1366w, https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v9-1\/wp-content\/uploads\/sites\/22\/20210713055543\/deploy_versions_compare2-300x169.png 300w, https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v9-1\/wp-content\/uploads\/sites\/22\/20210713055543\/deploy_versions_compare2-1024x576.png 1024w\" sizes=\"auto, (max-width: 1366px) 100vw, 1366px\" \/><\/a><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"2\"><span style=\"font-weight: 400;\">A summary count of the total changes is displayed and supports search<\/span><span style=\"font-weight: 400;\">.<\/span><\/li>\n<\/ol>\n\r\n\t\t<\/div>\r\n\t<\/div>\r\n<div class=\"w-separator size_medium 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":"Very often, as part of the development, you may want to mark specific stages of development as versions. The reasons could be as varied as: creating a version of the bot before proceeding to subsequent changes; to preserve a fully tested version till the production release while continuing to work on enhancements; to keep track...","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[21],"tags":[],"class_list":["post-23706","post","type-post","status-publish","format-standard","hentry","category-bot-management"],"_links":{"self":[{"href":"https:\/\/developer.kore.ai\/v9-1\/wp-json\/wp\/v2\/posts\/23706","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/developer.kore.ai\/v9-1\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/developer.kore.ai\/v9-1\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/developer.kore.ai\/v9-1\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/developer.kore.ai\/v9-1\/wp-json\/wp\/v2\/comments?post=23706"}],"version-history":[{"count":3,"href":"https:\/\/developer.kore.ai\/v9-1\/wp-json\/wp\/v2\/posts\/23706\/revisions"}],"predecessor-version":[{"id":30871,"href":"https:\/\/developer.kore.ai\/v9-1\/wp-json\/wp\/v2\/posts\/23706\/revisions\/30871"}],"wp:attachment":[{"href":"https:\/\/developer.kore.ai\/v9-1\/wp-json\/wp\/v2\/media?parent=23706"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/developer.kore.ai\/v9-1\/wp-json\/wp\/v2\/categories?post=23706"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/developer.kore.ai\/v9-1\/wp-json\/wp\/v2\/tags?post=23706"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}