{"id":23706,"date":"2020-07-03T15:40:59","date_gmt":"2020-07-03T14:40:59","guid":{"rendered":"https:\/\/developer.kore.ai\/v7-3\/?p=23706"},"modified":"2020-07-03T15:40:59","modified_gmt":"2020-07-03T14:40:59","slug":"bot-versioning","status":"publish","type":"post","link":"https:\/\/developer.kore.ai\/v7-3\/docs\/bots\/bot-admin\/bots-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 class=\"note\">This feature was released with v7.3 of the platform and is in <img loading=\"lazy\" decoding=\"async\" src=\"\/wp-content\/uploads\/sites\/15\/beta.png\" alt=\"\" width=\"18\" height=\"18\" \/> (beta) state.<\/p>\n\r\n\t\t<\/div>\r\n\t<\/div>\r\n\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>NOTE: This feature was released with v7.3 of the platform and is in <span style=\"text-decoration: underline\">Beta state<\/span>.<\/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 main left navigation under\u00a0<strong>Settings -&gt; Bot Management -&gt; Bot Versions.<\/strong><\/p>\n<p><a ref=\"magnificPopup\" href=\"\/wp-content\/uploads\/sites\/15\/BV-access.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-23305\" src=\"\/wp-content\/uploads\/sites\/15\/BV-access.png\" alt=\"\" width=\"1366\" height=\"768\" \/><\/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=\"\/wp-content\/uploads\/sites\/15\/BV-creation.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-23308\" src=\"\/wp-content\/uploads\/sites\/15\/BV-creation.png\" alt=\"\" width=\"691\" height=\"343\" \/><\/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>Delete<\/strong> a specific version (not applicable for auto-versions)<\/li>\n<\/ul>\n<\/li>\n<\/ol>\n<p><a ref=\"magnificPopup\" href=\"\/wp-content\/uploads\/sites\/15\/BV-listing.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-23413\" src=\"\/wp-content\/uploads\/sites\/15\/BV-listing.png\" alt=\"\" width=\"991\" height=\"269\" \/><\/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, Knowledge Tasks (per Language), 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>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><\/div><\/div><\/div><\/div><\/div><\/section>\n","protected":false},"excerpt":{"rendered":"This feature was released with v7.3 of the platform and is in (beta) state. 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...","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[24],"tags":[],"class_list":["post-23706","post","type-post","status-publish","format-standard","hentry","category-bots-management"],"_links":{"self":[{"href":"https:\/\/developer.kore.ai\/v7-3\/wp-json\/wp\/v2\/posts\/23706","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/developer.kore.ai\/v7-3\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/developer.kore.ai\/v7-3\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/developer.kore.ai\/v7-3\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/developer.kore.ai\/v7-3\/wp-json\/wp\/v2\/comments?post=23706"}],"version-history":[{"count":1,"href":"https:\/\/developer.kore.ai\/v7-3\/wp-json\/wp\/v2\/posts\/23706\/revisions"}],"predecessor-version":[{"id":23707,"href":"https:\/\/developer.kore.ai\/v7-3\/wp-json\/wp\/v2\/posts\/23706\/revisions\/23707"}],"wp:attachment":[{"href":"https:\/\/developer.kore.ai\/v7-3\/wp-json\/wp\/v2\/media?parent=23706"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/developer.kore.ai\/v7-3\/wp-json\/wp\/v2\/categories?post=23706"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/developer.kore.ai\/v7-3\/wp-json\/wp\/v2\/tags?post=23706"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}