{"id":44774,"date":"2022-09-15T15:41:36","date_gmt":"2022-09-15T14:41:36","guid":{"rendered":"https:\/\/developer.kore.ai\/v10-1\/?p=44774"},"modified":"2023-06-26T08:32:32","modified_gmt":"2023-06-26T07:32:32","slug":"nodes-conditions","status":"publish","type":"post","link":"https:\/\/developer.kore.ai\/v10-1\/docs\/bots\/bot-builder-tool\/dialog-task\/nodes-conditions\/","title":{"rendered":"Adding IF-Else Conditions to Node Connections"},"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\"><div class=\"ult-spacer spacer-6ae879c10c1c8\" data-id=\"6ae879c10c1c8\" data-height=\"10\" data-height-mobile=\"10\" data-height-tab=\"10\" data-height-tab-portrait=\"\" data-height-mobile-landscape=\"\" style=\"clear:both;display:block;\"><\/div>\r\n\t<div class=\"wpb_text_column \">\r\n\t\t<div class=\"wpb_wrapper\">\r\n\t\t\t<p><span style=\"font-weight: 400\">When working with <\/span><a href=\"https:\/\/developer.kore.ai\/v10-1\/docs\/bots\/bot-builder-tool\/dialog-task\/nodes-transitions\/\"><span style=\"font-weight: 400\">Dialog Task nodes<\/span><\/a><span style=\"font-weight: 400\">, the Kore.ai XO Platform allows you to use If-Else conditions to configure node connections. You may want to use such conditions when you want the conversation to follow specific paths depending on specific information.<\/span><\/p>\n<p><span style=\"font-weight: 400\">For example, if you are working with a travel Virtual Assistant and are setting up a <\/span><em><span style=\"font-weight: 400\">Book a Flight<\/span><\/em><span style=\"font-weight: 400\"> dialog task, you might want to provide a specific offer for group reservations. So, if during the conversation, the VA detects a certain number of passengers, you may want to direct the conversation to one path or another, depending on that number. Say for instance, if the passenger count is greater than 5, present the standard offer; else (otherwise) present a promotional offer.<\/span><\/p>\n<p><span style=\"font-weight: 400\">This is a simple example &#8211; you can use the conditions feature to design complex conversation paths based on the criteria that suit your business.<\/span><\/p>\n<p><span style=\"font-weight: 400\">This article, therefore, takes you to the options available within the XO Platform that allow you to configure node connection conditions.<\/span><\/p>\n<h1><span class=\"ez-toc-section\" id=\"Types_of_Conditions\"><span style=\"font-weight: 400\">Types of Conditions<\/span><\/span><\/h1>\n<p><span style=\"font-weight: 400\">There are three types of available conditions:<\/span><\/p>\n<ul>\n<li style=\"font-weight: 400\"><strong>If <\/strong><span style=\"font-weight: 400\">&#8211; This condition is used to direct the conversation on a specific path, if specific criteria are met. The <\/span><em><span style=\"font-weight: 400\">If <\/span><\/em><span style=\"font-weight: 400\">condition lets you configure Entity, Context and Intent criteria. <\/span><\/li>\n<li style=\"font-weight: 400\"><strong>Else <\/strong><span style=\"font-weight: 400\">&#8211; This condition allows you to set the node connection that will occur when the criteria configured within the <\/span><em><span style=\"font-weight: 400\">If<\/span><\/em><span style=\"font-weight: 400\"> condition are not met. The <\/span><em><span style=\"font-weight: 400\">Else<\/span><\/em><span style=\"font-weight: 400\"> condition only allows you to configure the next node to connect to.<\/span><\/li>\n<li style=\"font-weight: 400\"><strong>Else If<\/strong><span style=\"font-weight: 400\"> &#8211; This condition allows you to configure another set of criteria to be met by the conversation path when the criteria in the initial <\/span><em><span style=\"font-weight: 400\">If<\/span><\/em><span style=\"font-weight: 400\"> condition are not met. The <\/span><em><span style=\"font-weight: 400\">If <\/span><\/em><span style=\"font-weight: 400\">condition lets you configure Entity, Context and Intent criteria.<br \/><\/span><\/li>\n<\/ul>\n<p><span style=\"font-weight: 400\">For example, in the travel VA, you might want to present a group promotion if more than 5 passengers are travelling together, but if not, you may want to show a destination-specific package, based on the arrival city. If neither of these criteria are met, then you may want to continue with the standard flight booking procedure. Here is what such a use case could look like as node connection conditions:<\/span><\/p>\n<p><span style=\"font-weight: 400\"><\/span><\/p>\n<ul>\n<li style=\"font-weight: 400\"><strong>IF <\/strong><em><span style=\"font-weight: 400\">PassengerCount <\/span><\/em><span style=\"font-weight: 400\">is greater than <\/span><em><span style=\"font-weight: 400\">5<\/span><\/em><span style=\"font-weight: 400\">, connect to the Group<\/span><em><span style=\"font-weight: 400\"> Promotion<\/span><\/em><span style=\"font-weight: 400\"> node, (So, if there are more than 5 passengers, show the Group Promotion.)<\/span><\/li>\n<li style=\"font-weight: 400\"><strong>ELSE IF<\/strong><span style=\"font-weight: 400\"> ArrivalCity equals to <\/span><em><span style=\"font-weight: 400\">London<\/span><\/em><span style=\"font-weight: 400\">, connect to <\/span><em><span style=\"font-weight: 400\">London Destination Package<\/span><\/em><span style=\"font-weight: 400\"> node. (If there are not more than 5 passengers, but the arrival city is London, then show the London Destination Package.)<\/span><\/li>\n<li style=\"font-weight: 400\"><strong>ELSE <\/strong><span style=\"font-weight: 400\">connect to the next <\/span><em><span style=\"font-weight: 400\">Standard Flight Booking <\/span><\/em><span style=\"font-weight: 400\">node. (If there are neither more than 5 passengers, nor is London the flight destination, then connect to the next node in the standard flight booking process.)<\/span><\/li>\n<\/ul>\n<p><span style=\"font-weight: 400\"><\/span><\/p>\n<h1><span class=\"ez-toc-section\" id=\"Navigate_to_Node_Connection_Conditions\"><span style=\"font-weight: 400\">Navigate to Node Connection Conditions<\/span><\/span><\/h1>\n<p><span style=\"font-weight: 400\">Node connection conditions are available within the node configuration panel of all node types, under the <\/span><strong>Connection Properties<\/strong><span style=\"font-weight: 400\"> tab.<\/span><\/p>\n<p><span style=\"font-weight: 400\">Below is an example from the Entity node type.<\/span><\/p>\n<p><a ref=\"magnificPopup\" href=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20220915143746\/connection-properties-conditions.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20220915143746\/connection-properties-conditions.png\" alt=\"\" width=\"457\" height=\"645\" class=\"aligncenter size-full wp-image-44775\" srcset=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20220915143746\/connection-properties-conditions.png 457w, https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20220915143746\/connection-properties-conditions-213x300.png 213w\" sizes=\"auto, (max-width: 457px) 100vw, 457px\" \/><\/a><\/p>\n<h1><span class=\"ez-toc-section\" id=\"Add_If_Else_Connection_Conditions\"><span style=\"font-weight: 400\">Add <\/span><em><span style=\"font-weight: 400\">If \/ Else <\/span><\/em><span style=\"font-weight: 400\">Connection Conditions<\/span><\/span><\/h1>\n<p><span style=\"font-weight: 400\">Under the <\/span><strong>Connection Properties <\/strong><span style=\"font-weight: 400\">section, click <\/span><strong>Add IF or Add Else If<\/strong><span style=\"font-weight: 400\">. You can configure the conditional expression for both of these condition types based on one of the following criteria:<\/span><\/p>\n<h2><span class=\"ez-toc-section\" id=\"Entity\"><span style=\"font-weight: 400\">Entity<\/span><\/span><\/h2>\n<p><span style=\"font-weight: 400\">This criterion allows you to compare an Entity node in the dialog with a specific value:<\/span><\/p>\n<ul>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">Select the <\/span><strong>Entity<\/strong><span style=\"font-weight: 400\">. This is based on <\/span><a href=\"https:\/\/developer.kore.ai\/v10-1\/docs\/bots\/bot-builder-tool\/dialog-task\/working-with-the-entity-node\/\"><span style=\"font-weight: 400\">Entity node type<\/span><\/a><span style=\"font-weight: 400\">.<\/span><\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">Select an <\/span><strong>Operator <\/strong><span style=\"font-weight: 400\">from the drop-down list: exists, does not exist, equal to, greater than or equal to, less than or equal to, not equal to, greater than, less than and contains.<\/span><\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">Type in <\/span><strong>Value<\/strong><span style=\"font-weight: 400\">. This field is not displayed if it <em>exists<\/em> or <em>does not exist<\/em> and is used as operators.<br \/>\nYou can enter a static value or dynamic variable, such as context, environment, or content. To use a variable, enter the variable type (content, context, or env) followed by a dot (.) and then select the variable from the pop-up list.<\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">In the <\/span><strong>Then go to<\/strong><span style=\"font-weight: 400\"> dropdown, choose the node to connect to if the condition is met.<\/span><\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">Click <\/span><strong>Add Path Label<\/strong><span style=\"font-weight: 400\"> to enter a label to designate this conversation path.<\/span><\/li>\n<\/ul>\n<p><span style=\"font-weight: 400\">If these parameters are met, then the condition is successful and the node connected under <\/span><em><span style=\"font-weight: 400\">Then go to <\/span><\/em><span style=\"font-weight: 400\">is triggered.<\/span><\/p>\n<p><span style=\"font-weight: 400\">For example, <\/span><em><span style=\"font-weight: 400\">PassengerCount (entity) greater than (operator) 5 (specified value).<\/span><\/em><\/p>\n<p><a ref=\"magnificPopup\" href=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20220915152646\/if-entity.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20220915152646\/if-entity.png\" alt=\"\" width=\"353\" height=\"285\" class=\"aligncenter size-full wp-image-44780\" srcset=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20220915152646\/if-entity.png 353w, https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20220915152646\/if-entity-300x242.png 300w\" sizes=\"auto, (max-width: 353px) 100vw, 353px\" \/><\/a><\/p>\n<h2><span class=\"ez-toc-section\" id=\"Context\"><span style=\"font-weight: 400\">Context<\/span><\/span><\/h2>\n<p><span style=\"font-weight: 400\">The Context criterion allows you to compare a context object in the dialog task with a specific value. You can configure the following parameters:<\/span><\/p>\n<ul>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">Select the <\/span><strong>Context <\/strong><span style=\"font-weight: 400\">object you want to use. Keep in mind to follow the required syntax &#8211; see the <\/span><a href=\"https:\/\/developer.kore.ai\/v10-1\/docs\/bots\/bot-builder-tool\/dialog-task\/context-object\/\"><span style=\"font-weight: 400\">Context Object<\/span><\/a><span style=\"font-weight: 400\"> article for details.<\/span><\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">Select an <\/span><strong>Operator <\/strong><span style=\"font-weight: 400\">from the drop-down list: exists, does not exist, equal to, greater than or equal to, less than or equal to, not equal to, greater than, less than and contains.<\/span><\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">Type the number in the <\/span><strong>Value <\/strong><span style=\"font-weight: 400\">field. This field is not displayed if it <em>exists<\/em> or <em>does not exist<\/em> and is used as operators. You can enter a static value or dynamic variable, such as context, environment, or content. To use a variable, enter the variable type (content, context, or env) followed by a dot (.) and then select the variable from the pop-up list.<\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">In the <\/span><strong>Then go to<\/strong><span style=\"font-weight: 400\"> dropdown, choose the node to connect to if the condition is met.<\/span><\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">Click <\/span><strong>Add Path Label<\/strong><span style=\"font-weight: 400\"> to enter a label to designate this conversation path.<\/span><\/li>\n<\/ul>\n<p><span style=\"font-weight: 400\">If these parameters are met, then the condition is successful and the node connected under <\/span><em><span style=\"font-weight: 400\">Then go to <\/span><\/em><span style=\"font-weight: 400\">is triggered.<\/span><\/p>\n<p><span style=\"font-weight: 400\">For example, if the <\/span><em><span style=\"font-weight: 400\">Passenger Type<\/span><\/em><span style=\"font-weight: 400\"> (context object &#8211; entity) <\/span><em><span style=\"font-weight: 400\">equals to <\/span><\/em><span style=\"font-weight: 400\">(operator) <\/span><em><span style=\"font-weight: 400\">Infant <\/span><\/em><span style=\"font-weight: 400\">(value), then trigger a node that manages the booking process that is specific to infant passengers.<\/span><\/p>\n<p><a ref=\"magnificPopup\" href=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20220915152737\/if-context.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20220915152737\/if-context.png\" alt=\"\" width=\"356\" height=\"314\" class=\"aligncenter size-full wp-image-44783\" srcset=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20220915152737\/if-context.png 356w, https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20220915152737\/if-context-300x265.png 300w\" sizes=\"auto, (max-width: 356px) 100vw, 356px\" \/><\/a><\/p>\n<h3><span class=\"ez-toc-section\" id=\"Add_AndOr_Logic\"><span style=\"font-weight: 400\">Add And\/Or Logic<\/span><\/span><\/h3>\n<p><span style=\"font-weight: 400\">You can configure multiple context-based if conditions using and\/or logic. Within the same context-based if condition, can use either one or the other; not both. The and\/or parameters work as follows:<\/span><\/p>\n<ul>\n<li style=\"font-weight: 400\"><strong>AND <\/strong><span style=\"font-weight: 400\">&#8211; When using <\/span><em><span style=\"font-weight: 400\">AND <\/span><\/em><span style=\"font-weight: 400\">it means that you want both or all criteria to be met.<\/span><\/li>\n<li style=\"font-weight: 400\"><strong>OR <\/strong><span style=\"font-weight: 400\">&#8211; When using <\/span><em><span style=\"font-weight: 400\">OR <\/span><\/em><span style=\"font-weight: 400\">it means that you want the condition to meet either one or another of the set criteria.<\/span><\/li>\n<\/ul>\n<p><span style=\"font-weight: 400\">To add either an <\/span><em><span style=\"font-weight: 400\">AND <\/span><\/em><span style=\"font-weight: 400\">or an <\/span><em><span style=\"font-weight: 400\">OR <\/span><\/em><span style=\"font-weight: 400\">logical operator, click the corresponding button within the Context condition criterion.<\/span><\/p>\n<p><a ref=\"magnificPopup\" href=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20220915152818\/and-or-logic.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20220915152818\/and-or-logic.png\" alt=\"\" width=\"388\" height=\"314\" class=\"aligncenter size-full wp-image-44786\" srcset=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20220915152818\/and-or-logic.png 388w, https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20220915152818\/and-or-logic-300x243.png 300w\" sizes=\"auto, (max-width: 388px) 100vw, 388px\" \/><\/a><\/p>\n<p><span style=\"font-weight: 400\">Once you do so, you will be able to add the next criterion that the condition should meet. You can add multiple AND\/OR criteria by clicking +AND or +OR.<\/span><\/p>\n<p><span style=\"font-weight: 400\">You can delete an existing AND\/OR criterion by clicking the <\/span><strong>\u201c-\u201d <\/strong><span style=\"font-weight: 400\">sign on its left.<\/span><\/p>\n<p><span style=\"font-weight: 400\">For example: If the <\/span><em><span style=\"font-weight: 400\">Passenger Type <\/span><\/em><span style=\"font-weight: 400\">(context object &#8211; entity) <\/span><em><span style=\"font-weight: 400\">equals to<\/span><\/em><span style=\"font-weight: 400\"> (operator) <\/span><em><span style=\"font-weight: 400\">Infant <\/span><\/em><span style=\"font-weight: 400\">(value) OR if <\/span><em><span style=\"font-weight: 400\">Passenger Age<\/span><\/em><span style=\"font-weight: 400\"> (context object &#8211; entity)<\/span><em><span style=\"font-weight: 400\"> is less than or equal to<\/span><\/em><span style=\"font-weight: 400\"> (operator)<\/span><em><span style=\"font-weight: 400\"> 5 <\/span><\/em><span style=\"font-weight: 400\">(value), then trigger the node that manages the booking process for infants.<\/span><\/p>\n<p><a ref=\"magnificPopup\" href=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20220915152853\/context-and-or.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20220915152853\/context-and-or.png\" alt=\"\" width=\"484\" height=\"501\" class=\"aligncenter size-full wp-image-44789\" srcset=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20220915152853\/context-and-or.png 484w, https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20220915152853\/context-and-or-290x300.png 290w\" sizes=\"auto, (max-width: 484px) 100vw, 484px\" \/><\/a><\/p>\n<h2><span class=\"ez-toc-section\" id=\"Intent\"><span style=\"font-weight: 400\">Intent<\/span><\/span><\/h2>\n<p><span style=\"font-weight: 400\">For Entity nodes, this criterion allows you to select a follow up intent that matches the user utterance, and based on which to select the next node to connect to.<\/span><\/p>\n<p><span style=\"font-weight: 400\">The <\/span><em><span style=\"font-weight: 400\">context.FollowupIntents<\/span><\/em><span style=\"font-weight: 400\"> parameter is preselected and you can choose to connect to a specific node if a followup intent exists or if it contains a specific value. If any of these is met, then the condition is successful and the connecting node you set in <\/span><em><span style=\"font-weight: 400\">Then go to<\/span><\/em><span style=\"font-weight: 400\">, is triggered.<\/span><\/p>\n<p><a ref=\"magnificPopup\" href=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20220915153035\/if-intent.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20220915153035\/if-intent.png\" alt=\"\" width=\"354\" height=\"271\" class=\"aligncenter size-full wp-image-44792\" srcset=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20220915153035\/if-intent.png 354w, https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20220915153035\/if-intent-300x230.png 300w\" sizes=\"auto, (max-width: 354px) 100vw, 354px\" \/><\/a><br \/>For message nodes, you can either choose context.followupintent as described above, or select to wait for user input. Under the Equals dropdown, you can select which user input the VA should wait for before connecting to the node you set under <em>Then go to<\/em>.<\/p>\n<p><a ref=\"magnificPopup\" href=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20220915153123\/condition-intent-user-input.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20220915153123\/condition-intent-user-input.png\" alt=\"\" width=\"352\" height=\"224\" class=\"aligncenter size-full wp-image-44795\" srcset=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20220915153123\/condition-intent-user-input.png 352w, https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20220915153123\/condition-intent-user-input-300x191.png 300w, https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20220915153123\/condition-intent-user-input-350x224.png 350w\" sizes=\"auto, (max-width: 352px) 100vw, 352px\" \/><\/a><\/p>\n<h2><span class=\"ez-toc-section\" id=\"Delete_Conditions\"><span style=\"font-weight: 400\">Delete Conditions<\/span><\/span><\/h2>\n<p><span style=\"font-weight: 400\">If you no longer require a specific condition, you can hover over it and click the <\/span><strong>bin icon<\/strong><span style=\"font-weight: 400\"> on the top right.<\/span><\/p>\n<p><a ref=\"magnificPopup\" href=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20220915153228\/delete-if.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20220915153228\/delete-if.png\" alt=\"\" width=\"356\" height=\"311\" class=\"aligncenter size-full wp-image-44798\" srcset=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20220915153228\/delete-if.png 356w, https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20220915153228\/delete-if-300x262.png 300w\" sizes=\"auto, (max-width: 356px) 100vw, 356px\" \/><\/a><\/p>\n<h1><span class=\"ez-toc-section\" id=\"Node_Type_Applicability\"><span style=\"font-weight: 400\">Node Type Applicability<\/span><\/span><\/h1>\n<p><span style=\"font-weight: 400\">Depending on the node type you are working with, you may see some differences in functionality. Some of the features presented in this article will apply to all node types, while others will only apply to some. Here is what to keep in mind:<\/span><\/p>\n<ul>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">For all node types except for the Message, and Agent Transfer node types, the only available Intent condition criterion is <\/span><em><span style=\"font-weight: 400\">context.FollowupIntents<\/span><\/em><span style=\"font-weight: 400\"> which lets you configure the connection based on the user utterance. The same applies to Primary Intent nodes.<\/span><\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">For Message Nodes, the Intent condition criterion provides two options: <\/span><em><span style=\"font-weight: 400\">context.followupintent <\/span><\/em><span style=\"font-weight: 400\">and <\/span><em><span style=\"font-weight: 400\">User Input<\/span><\/em><span style=\"font-weight: 400\">, as explained above<\/span><em><span style=\"font-weight: 400\">.<\/span><\/em><\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">Primary Intent nodes do not allow connection conditions at all. You can only choose the next node to connect to. Intent nodes that follow other nodes within the Dialog Task do allow connection conditions, keeping in mind that the Intent criterion only allows you to set a follow up intent using the context object.<\/span><\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">Agent Transfer nodes provide no options to connect to a subsequent node, so no conditions can apply. This node means the end of the VAs process and the intervention of a human agent, which sets the <\/span><em><span style=\"font-weight: 400\">End of Dialog<\/span><\/em><span style=\"font-weight: 400\"> after the Agent Transfer node.<\/span><\/li>\n<\/ul>\n\r\n\t\t<\/div>\r\n\t<\/div>\r\n<div class=\"ult-spacer spacer-6ae879c10cca3\" data-id=\"6ae879c10cca3\" data-height=\"12\" data-height-mobile=\"12\" data-height-tab=\"12\" data-height-tab-portrait=\"\" data-height-mobile-landscape=\"\" style=\"clear:both;display:block;\"><\/div><\/div><\/div><\/div><\/div><\/div><\/section>\n","protected":false},"excerpt":{"rendered":"When working with Dialog Task nodes, the Kore.ai XO Platform allows you to use If-Else conditions to configure node connections. You may want to use such conditions when you want the conversation to follow specific paths depending on specific information. For example, if you are working with a travel Virtual Assistant and are setting up...","protected":false},"author":27,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[29],"tags":[],"class_list":["post-44774","post","type-post","status-publish","format-standard","hentry","category-dialog-task"],"_links":{"self":[{"href":"https:\/\/developer.kore.ai\/v10-1\/wp-json\/wp\/v2\/posts\/44774","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/developer.kore.ai\/v10-1\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/developer.kore.ai\/v10-1\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/developer.kore.ai\/v10-1\/wp-json\/wp\/v2\/users\/27"}],"replies":[{"embeddable":true,"href":"https:\/\/developer.kore.ai\/v10-1\/wp-json\/wp\/v2\/comments?post=44774"}],"version-history":[{"count":12,"href":"https:\/\/developer.kore.ai\/v10-1\/wp-json\/wp\/v2\/posts\/44774\/revisions"}],"predecessor-version":[{"id":57511,"href":"https:\/\/developer.kore.ai\/v10-1\/wp-json\/wp\/v2\/posts\/44774\/revisions\/57511"}],"wp:attachment":[{"href":"https:\/\/developer.kore.ai\/v10-1\/wp-json\/wp\/v2\/media?parent=44774"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/developer.kore.ai\/v10-1\/wp-json\/wp\/v2\/categories?post=44774"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/developer.kore.ai\/v10-1\/wp-json\/wp\/v2\/tags?post=44774"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}