{"id":29110,"date":"2021-07-16T07:55:29","date_gmt":"2021-07-16T06:55:29","guid":{"rendered":"https:\/\/multisite.korebots.com\/v9-0\/?p=29110"},"modified":"2021-08-03T12:39:08","modified_gmt":"2021-08-03T11:39:08","slug":"bot-action-node","status":"publish","type":"post","link":"https:\/\/multisite.korebots.com\/v9-0\/docs\/bots\/bot-builder-tool\/dialog-task\/bot-action-node\/","title":{"rendered":"Bot Action Node"},"content":{"rendered":"<section class=\"l-section wpb_row height_auto\"><div class=\"l-section-h i-cf\"><div class=\"g-cols vc_row via_grid cols_1 laptops-cols_inherit tablets-cols_inherit mobiles-cols_1 valign_top type_default stacking_default\"><div class=\"wpb_column vc_column_container\"><div class=\"vc_column-inner\"><div class=\"wpb_text_column\"><div class=\"wpb_wrapper\"><p>The Bot Action Node can be used for any action that the bot is expected to perform without interaction with the user. It is a collection <a href=\"\/docs\/bots\/bot-builder-tool\/dialog-task\/working-with-the-service-node\/\">service<\/a>, <a href=\"\/docs\/bots\/bot-builder-tool\/dialog-task\/working-with-the-script-node\/\">script<\/a>, <a href=\"\/docs\/bots\/bot-builder-tool\/dialog-task\/working-with-the-web-hook-node\/\">webhook<\/a>, and <a href=\"\/docs\/bots\/bot-builder-tool\/dialog-task\/working-with-the-logic-node\/\">logic<\/a> nodes.<\/p>\n<\/div><\/div><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 class=\"wpb_text_column\"><div class=\"wpb_wrapper\"><h2><span class=\"ez-toc-section\" id=\"Set-Up\"><\/span>Set-Up<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Setting up a bot action node in a dialog task involves the following steps:<\/p>\n<h3><span class=\"ez-toc-section\" id=\"Add_Node\"><\/span>Add Node<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<ol>\n<li>Open the dialog task to add the Bot Action node.<\/li>\n<li>Add bot action node in the designated place. For steps in adding nodes, <a href=\"\/docs\/bots\/chatbot-overview\/using-the-dialog-builder-tool\/#Adding_Nodes\">refer here<\/a>.<\/li>\n<li>The bot action window is displayed with the <strong>Component Properties<\/strong> tab selected by default.<\/li>\n<li>You can use the <strong>+<\/strong>\/<strong>&#8211;<\/strong> against the node to\u00a0<strong>Expand\/Collapse<\/strong> the node<\/li>\n<li>once you expand the bot action node, you have the option to add various nodes &#8211; <a href=\"\/docs\/bots\/bot-builder-tool\/dialog-task\/working-with-the-service-node\/\">service<\/a>, <a href=\"\/docs\/bots\/bot-builder-tool\/dialog-task\/working-with-the-script-node\/\">script<\/a>, <a href=\"\/docs\/bots\/bot-builder-tool\/dialog-task\/working-with-the-web-hook-node\/\">webhook<\/a>, and\/or <a href=\"\/docs\/bots\/bot-builder-tool\/dialog-task\/working-with-the-logic-node\/\">logic<\/a> nodes. Refer to the individual nodes for configuration details.<\/li>\n<\/ol>\n<p><a ref=\"magnificPopup\" href=\"https:\/\/s3-us-east-2.amazonaws.com\/kore-wordpress\/developer.kore.ai\/wp-content\/uploads\/sites\/22\/20210708122707\/dialogTask_botActionService.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-28450\" src=\"https:\/\/s3-us-east-2.amazonaws.com\/kore-wordpress\/developer.kore.ai\/wp-content\/uploads\/sites\/22\/20210708122707\/dialogTask_botActionService.png\" alt=\"\" width=\"666\" height=\"473\" \/><\/a><\/p>\n<\/div><\/div><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 class=\"wpb_text_column\"><div class=\"wpb_wrapper\"><h2><span class=\"ez-toc-section\" id=\"Configure_Node\"><\/span>Configure Node<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>The following sections detail the properties for this node in the new dialog builder, introduced in v9.0 of the platform. For the details related to the older builder, <a href=\"https:\/\/developer.kore.ai\/v8-1\/docs\/bots\/bot-builder-tool\/dialog-task\/working-with-the-logic-node\/\">refer here<\/a>.<\/p>\n<\/div><\/div><div class=\"wpb_text_column\"><div class=\"wpb_wrapper\"><h3 id=\"d-step2\"><span class=\"ez-toc-section\" id=\"Component_Properties\"><\/span>Component Properties<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<ol>\n<li>On the <strong>Component Properties<\/strong> tab, under the <strong>General Settings<\/strong> section, you can modify the <strong>Name<\/strong>, <strong>Display Name<\/strong>, and <strong>Description.<\/strong><\/li>\n<\/ol>\n<\/div><\/div><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 class=\"wpb_text_column\"><div class=\"wpb_wrapper\"><h3><span class=\"ez-toc-section\" id=\"Connections_Properties\"><\/span>Connections Properties<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>From the node\u2019s <strong>Connections<\/strong> tab, you can determine the node in the dialog task to execute next. You can write the conditional statements based on the values of any Entity or Context Objects in the dialog task, or you can use intents for transitions.<br \/>\nTo setup Component Transitions, follow the below steps:<\/p>\n<ol>\n<li>On the Logic window, click the <strong>Connections<\/strong> tab.<\/li>\n<li>Under the <strong>Connection Rules<\/strong> section, you can select a node from the <strong>Default<\/strong> drop-down list.<\/li>\n<li>To configure a conditional flow, click <b>Add IF<\/b>.<\/li>\n<li>Configure the conditional expression based on one of the following criteria:\n<ul>\n<li><b>Entity<\/b>: Compare an entity node in the dialog with a specific value using one of these operators: Exists, equals to, greater than equals to, less than equals to, not equal to, greater than, and less than. Select the entity, operator using the respective drop-down lists, and type the number in the <b>Value <\/b>box. For example, <i>PassengerCount (entity) greater than (operator) 5 (specified value).<\/i><\/li>\n<li><b>Context<\/b>: Compare a context object in the dialog with a specific value using one of these operators: Exists, equals to, greater than equals to, less than equals to, not equal to, greater than, and less than. For example,<b>\u00a0<\/b><i>Context.entity.PassengerCount<\/i> <i>(Context object) greater than (operator) 5 (specified value).<\/i><\/li>\n<li><b>Intent: <\/b>Select an intent that matches the next user utterance.<\/li>\n<\/ul>\n<\/li>\n<li>In the <b>Then go to<\/b> drop-down list, select the next node to execute in the dialog flow if the conditional expression succeeds. For example, if the <i>PassengerCount (entity) greater than (operator) 5 (specified value), <\/i><b>Then go to <\/b><i>Offers (sub-dialog).<\/i><\/li>\n<li>In the <b>Else <\/b>drop-down list, select the node to execute if the condition fails.<\/li>\n<li>Click <strong>Save<\/strong>.<\/li>\n<\/ol>\n<div class=\"alert alert-info\"><b>Note:<\/b> If you want to write multiple <em>If<\/em> conditions, click <strong>Add Else If<\/strong> below the last <em>If<\/em> conditional expression.<\/div>\n<\/div><\/div><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 class=\"wpb_text_column\"><div class=\"wpb_wrapper\"><h2><span class=\"ez-toc-section\" id=\"Action_Node_Connections\"><\/span>Action Node Connections<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>When an action node like service, script, etc are added to a bot action, the following connections can be configured:<\/p>\n<ul>\n<li>Node Connections &#8211; this option can be used to define the connection rules connecting to nodes within the bot action node. It can be configured to:\n<ul>\n<li>any node within the corresponding bot action node;<\/li>\n<li>Not Connected;<\/li>\n<li>End of Bot Action &#8211; this would take the bot flow to the node connected to the bot action node;<\/li>\n<\/ul>\n<\/li>\n<li>Bot Action Connections &#8211; this option can be used to define the connection rules connecting to a node outside of the current Bot Action. These rules would be applied to the bot action node as a whole.<\/li>\n<\/ul>\n<p><a ref=\"magnificPopup\" href=\"\/wp-content\/uploads\/sites\/22\/dialogTask_botActionNodes_connection.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-29315\" src=\"\/wp-content\/uploads\/sites\/22\/dialogTask_botActionNodes_connection.png\" alt=\"\" width=\"1027\" height=\"703\" srcset=\"https:\/\/multisite.korebots.com\/v9-0\/wp-content\/uploads\/sites\/22\/dialogTask_botActionNodes_connection.png 1027w, https:\/\/multisite.korebots.com\/v9-0\/wp-content\/uploads\/sites\/22\/dialogTask_botActionNodes_connection-300x205.png 300w, https:\/\/multisite.korebots.com\/v9-0\/wp-content\/uploads\/sites\/22\/dialogTask_botActionNodes_connection-1024x701.png 1024w\" sizes=\"(max-width: 1027px) 100vw, 1027px\" \/><\/a><\/p>\n<\/div><\/div><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>[vc_raw_html]JTNDZGl2JTIwY2xhc3MlM0QlMjJ3LXBvc3QtZWxtJTIwcG9zdF9uYXZpZ2F0aW9uJTIwbGF5b3V0X3NpbXBsZSUyMGludl9mYWxzZSUyMiUzRSUwQSUwOSUzQ2ElMjBjbGFzcyUzRCUyMnBvc3RfbmF2aWdhdGlvbi1pdGVtJTIwb3JkZXJfZmlyc3QlMjB0b19wcmV2JTIyJTIwaHJlZiUzRCUyMiUyRmRvY3MlMkZib3RzJTJGYm90LWJ1aWxkZXItdG9vbCUyRmRpYWxvZy10YXNrJTJGd29ya2luZy13aXRoLXRoZS1mb3JtLW5vZGUlMkYlMjIlM0UlM0MlMkZwJTNFJTBBJTNDZGl2JTIwY2xhc3MlM0QlMjJwb3N0X25hdmlnYXRpb24taXRlbS1hcnJvdyUyMiUzRSUzQyUyRmRpdiUzRSUwQSUzQ2RpdiUyMGNsYXNzJTNEJTIycG9zdF9uYXZpZ2F0aW9uLWl0ZW0tbWV0YSUyMiUzRVByZXZpb3VzJTNDJTJGZGl2JTNFJTBBJTNDZGl2JTIwY2xhc3MlM0QlMjJwb3N0X25hdmlnYXRpb24taXRlbS10aXRsZSUyMiUzRSUzQ3NwYW4lM0VGb3JtJTIwTm9kZSUzQyUyRnNwYW4lM0UlM0MlMkZkaXYlM0UlMEElM0NwJTNFJTNDJTJGYSUzRSUzQ2JyJTIwJTJGJTNFJTBBJTNDYSUyMGNsYXNzJTNEJTIycG9zdF9uYXZpZ2F0aW9uLWl0ZW0lMjBvcmRlcl9zZWNvbmQlMjB0b19uZXh0JTIyJTIwaHJlZiUzRCUyMiUyRmRvY3MlMkZib3RzJTJGYm90LWJ1aWxkZXItdG9vbCUyRmRpYWxvZy10YXNrJTJGd29ya2luZy13aXRoLXRoZS1tZXNzYWdlLW5vZGVzJTJGJTIyJTNFJTNDJTJGcCUzRSUwQSUzQ2RpdiUyMGNsYXNzJTNEJTIycG9zdF9uYXZpZ2F0aW9uLWl0ZW0tYXJyb3clMjIlM0UlM0MlMkZkaXYlM0UlMEElM0NkaXYlMjBjbGFzcyUzRCUyMnBvc3RfbmF2aWdhdGlvbi1pdGVtLW1ldGElMjIlM0VOZXh0JTNDJTJGZGl2JTNFJTBBJTNDZGl2JTIwY2xhc3MlM0QlMjJwb3N0X25hdmlnYXRpb24taXRlbS10aXRsZSUyMiUzRSUzQ3NwYW4lM0VNZXNzYWdlJTIwJTI4Qm90JTIwUmVzcG9uc2UlMjklMjBOb2RlcyUzQyUyRnNwYW4lM0UlM0MlMkZkaXYlM0UlMEElM0NwJTNFJTNDJTJGYSUzRSUzQyUyRmRpdiUzRQ==[\/vc_raw_html]<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><\/section>\n","protected":false},"excerpt":{"rendered":"The Bot Action Node can be used for any action that the bot is expected to perform without interaction with the user. It is a collection service, script, webhook, and logic nodes. Set-Up Setting up a bot action node in a dialog task involves the following steps: Add Node Open the dialog task to add...","protected":false},"author":9,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[29],"tags":[],"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/multisite.korebots.com\/v9-0\/wp-json\/wp\/v2\/posts\/29110"}],"collection":[{"href":"https:\/\/multisite.korebots.com\/v9-0\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/multisite.korebots.com\/v9-0\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/multisite.korebots.com\/v9-0\/wp-json\/wp\/v2\/users\/9"}],"replies":[{"embeddable":true,"href":"https:\/\/multisite.korebots.com\/v9-0\/wp-json\/wp\/v2\/comments?post=29110"}],"version-history":[{"count":6,"href":"https:\/\/multisite.korebots.com\/v9-0\/wp-json\/wp\/v2\/posts\/29110\/revisions"}],"predecessor-version":[{"id":29387,"href":"https:\/\/multisite.korebots.com\/v9-0\/wp-json\/wp\/v2\/posts\/29110\/revisions\/29387"}],"wp:attachment":[{"href":"https:\/\/multisite.korebots.com\/v9-0\/wp-json\/wp\/v2\/media?parent=29110"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/multisite.korebots.com\/v9-0\/wp-json\/wp\/v2\/categories?post=29110"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/multisite.korebots.com\/v9-0\/wp-json\/wp\/v2\/tags?post=29110"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}