{"id":18120,"date":"2019-02-12T09:14:23","date_gmt":"2019-02-12T09:14:23","guid":{"rendered":"https:\/\/developer.kore.ai\/?post_type=docs&#038;p=16475"},"modified":"2021-07-08T06:36:28","modified_gmt":"2021-07-08T05:36:28","slug":"nodes-transitions","status":"publish","type":"post","link":"https:\/\/multisite.korebots.com\/v9-0\/docs\/bots\/bot-builder-tool\/dialog-task\/nodes-transitions\/","title":{"rendered":"Nodes &amp; Transitions"},"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\"><h3><span class=\"ez-toc-section\" id=\"Node_Types\"><\/span>Node Types<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>You can add the following nodes to dialog tasks based on your requirements:<\/p>\n<h5><strong>User Intent Node<\/strong><\/h5>\n<p>The user intent to be identified by the platform is based on the user utterance. Every dialog has one root intent with any number of sub-intents. For more information, refer to <a href=\"\/docs\/bots\/bot-builder-tool\/develop\/dialog-task\/working-with-the-user-intent-dialog-node\/#i\">Working with the User Intent Node<\/a>.<\/p>\n<h5><strong>Entity Node<\/strong><\/h5>\n<p>The user entity in the utterance. The platform supports 15+ entity types. Developers can define the prompt message to be shown, and this message can be channel-specific. For example, an amount, account number, time, or zip code. Entity nodes prompt the user for an input. For more information, refer to <a href=\"\/docs\/bots\/bot-builder-tool\/develop\/dialog-task\/working-with-the-entity-node\/\">Working with the Entity Node<\/a>.<\/p>\n<h5><strong>Agent Transfer Node<\/strong><\/h5>\n<p>Used to transfer communication from the bot to a live agent. This is usually the last node for a dialog task. For more information, refer to <a href=\"\/docs\/bots\/bot-builder-tool\/develop\/dialog-task\/working-with-the-agent-transfer-node\/\">Working with the Agent Transfer Node<\/a>.<\/p>\n<h5><strong>Script Node<\/strong><\/h5>\n<p>Used to write custom JS code in the dialog task. For more information, refer to <a href=\"\/docs\/bots\/bot-builder-tool\/develop\/dialog-task\/working-with-the-script-node\/\">Working with the Script Node<\/a>.<\/p>\n<h5><strong>Service Node<\/strong><\/h5>\n<p>Allows you to call an API. You can also use cURL to build the API request. For more information, refer to <a href=\"\/docs\/bots\/bot-builder-tool\/develop\/dialog-task\/working-with-the-service-node\/\">Working with the Service Node<\/a>.<\/p>\n<h5><strong>Message (or Bot Response) Node<\/strong><\/h5>\n<p>Displays a message from the bot to a user, such as, <em>Is there anything else I can help you with?<\/em> For more information, refer to <a href=\"\/docs\/bots\/bot-builder-tool\/develop\/dialog-task\/working-with-the-message-confirmation-nodes\/#Working_with_the_Message_Bot_Response_Node\">Working with the Bot Response Node<\/a>.<\/p>\n<h5><strong>Confirmation Node<\/strong><\/h5>\n<p>Displays a query message from the bot to the user, and then waits for a user response. Conditions are defined to continue processing the dialog task flow based on the user input. For more information, refer to <a href=\"\/docs\/bots\/bot-builder-tool\/develop\/dialog-task\/working-with-the-message-confirmation-nodes\/#Working_with_the_Confirmation_Node\">Working with the Confirmation Node<\/a>.<\/p>\n<h5><strong>WebHook Node<\/strong><\/h5>\n<p>Used for server-side validation, executing business logic, or making backend server API calls. To use this node, you must have installed the SDK Tool Kit. For more information, refer to <a href=\"\/docs\/bots\/bot-builder-tool\/develop\/dialog-task\/working-with-the-web-hook-node\/\">Working with the WebHook Node<\/a>.<\/p>\n<p>While any dialog starts at the Intent Node, it is advisable to end it with a Message Node to give a sense of closure to the user as well as to the bot internally.<\/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\"><h3><span class=\"ez-toc-section\" id=\"Component_Transitions\"><\/span>Component Transitions<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>A Dialog Task builds a task flow with different nodes connected by transitions. Dialog Task transitions depend on conditions that use business-defined evaluation criteria to take the next steps within the Dialog Task flow.<\/p>\n<p>In Kore.ai, you define <em>If-then-else<\/em> conditions using a set of predefined operators. For each component, you must specify a fallback condition. How you represent a transition depends on the component type you are defining, and component type-specific transitions are described in the topic for each component type.<\/p>\n<p>You can use the following operators to write conditions:<\/p>\n<ul>\n<li>Exists<\/li>\n<li>Equals to<\/li>\n<li>Greater than equals to<\/li>\n<li>Less than equals to<\/li>\n<li>Not equals to<\/li>\n<li>Greater than<\/li>\n<li>Less than<\/li>\n<li>Contains<\/li>\n<\/ul>\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=\"Context_Object\"><\/span>Context Object<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>The <code>Context<\/code> object for Bot Builder is the container object that holds the data for the dialog execution. The Kore.ai Natural Language Processing (NLP) engine populates the intent identified, entities extracted, and history into this object. You can use the keys from the <code>Context<\/code> object for component transition conditions. For more information, refer to <a href=\"\/docs\/bots\/bot-builder-tool\/dialog-task\/context-object\/\">Context Object<\/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]JTNDZGl2JTIwY2xhc3MlM0QlMjJ3LXBvc3QtZWxtJTIwcG9zdF9uYXZpZ2F0aW9uJTIwbGF5b3V0X3NpbXBsZSUyMGludl9mYWxzZSUyMiUzRSUwQSUwOSUzQ2ElMjBjbGFzcyUzRCUyMnBvc3RfbmF2aWdhdGlvbi1pdGVtJTIwb3JkZXJfZmlyc3QlMjB0b19wcmV2JTIyJTIwaHJlZiUzRCUyMiUyRmRvY3MlMkZib3RzJTJGYm90LWJ1aWxkZXItdG9vbCUyRmRpYWxvZy10YXNrJTJGZ3JvdXBpbmctbm9kZXMlMkYlMjIlM0UlM0MlMkZwJTNFJTBBJTNDZGl2JTIwY2xhc3MlM0QlMjJwb3N0X25hdmlnYXRpb24taXRlbS1hcnJvdyUyMiUzRSUzQyUyRmRpdiUzRSUwQSUzQ2RpdiUyMGNsYXNzJTNEJTIycG9zdF9uYXZpZ2F0aW9uLWl0ZW0tbWV0YSUyMiUzRVByZXZpb3VzJTNDJTJGZGl2JTNFJTBBJTNDZGl2JTIwY2xhc3MlM0QlMjJwb3N0X25hdmlnYXRpb24taXRlbS10aXRsZSUyMiUzRSUzQ3NwYW4lM0VHcm91cGluZyUyME5vZGVzJTNDJTJGc3BhbiUzRSUzQyUyRmRpdiUzRSUwQSUzQ3AlM0UlM0MlMkZhJTNFJTNDYnIlMjAlMkYlM0UlMEElM0NhJTIwY2xhc3MlM0QlMjJwb3N0X25hdmlnYXRpb24taXRlbSUyMG9yZGVyX3NlY29uZCUyMHRvX25leHQlMjIlMjBocmVmJTNEJTIyJTJGZG9jcyUyRmJvdHMlMkZib3QtYnVpbGRlci10b29sJTJGZGlhbG9nLXRhc2slMkZtYW5hZ2luZy1kaWFsb2dzJTJGJTIyJTNFJTNDJTJGcCUzRSUwQSUzQ2RpdiUyMGNsYXNzJTNEJTIycG9zdF9uYXZpZ2F0aW9uLWl0ZW0tYXJyb3clMjIlM0UlM0MlMkZkaXYlM0UlMEElM0NkaXYlMjBjbGFzcyUzRCUyMnBvc3RfbmF2aWdhdGlvbi1pdGVtLW1ldGElMjIlM0VOZXh0JTNDJTJGZGl2JTNFJTBBJTNDZGl2JTIwY2xhc3MlM0QlMjJwb3N0X25hdmlnYXRpb24taXRlbS10aXRsZSUyMiUzRSUzQ3NwYW4lM0VNYW5hZ2luZyUyMERpYWxvZ3MlM0MlMkZzcGFuJTNFJTNDJTJGZGl2JTNFJTBBJTNDcCUzRSUzQyUyRmElM0UlM0MlMkZkaXYlM0U=[\/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":"Node Types You can add the following nodes to dialog tasks based on your requirements: User Intent Node The user intent to be identified by the platform is based on the user utterance. Every dialog has one root intent with any number of sub-intents. For more information, refer to Working with the User Intent Node....","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","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\/18120"}],"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\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/multisite.korebots.com\/v9-0\/wp-json\/wp\/v2\/comments?post=18120"}],"version-history":[{"count":10,"href":"https:\/\/multisite.korebots.com\/v9-0\/wp-json\/wp\/v2\/posts\/18120\/revisions"}],"predecessor-version":[{"id":29024,"href":"https:\/\/multisite.korebots.com\/v9-0\/wp-json\/wp\/v2\/posts\/18120\/revisions\/29024"}],"wp:attachment":[{"href":"https:\/\/multisite.korebots.com\/v9-0\/wp-json\/wp\/v2\/media?parent=18120"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/multisite.korebots.com\/v9-0\/wp-json\/wp\/v2\/categories?post=18120"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/multisite.korebots.com\/v9-0\/wp-json\/wp\/v2\/tags?post=18120"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}