{"id":17959,"date":"2016-12-09T21:59:11","date_gmt":"2016-12-09T21:59:11","guid":{"rendered":"https:\/\/developer.kore.com\/?post_type=docs&#038;p=9252"},"modified":"2022-04-25T10:07:24","modified_gmt":"2022-04-25T09:07:24","slug":"working-with-the-web-hook-node","status":"publish","type":"post","link":"https:\/\/developer.kore.ai\/v9-2\/docs\/bots\/bot-builder-tool\/dialog-task\/working-with-the-web-hook-node\/","title":{"rendered":"WebHook Node"},"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>You can use the WebHook node to subscribe to a message and WebHook events to capture real-time data from real-time events to show them to the user. You can use the WebHook node for server-side validation, execute business logic, or make backend server API calls. Also, you can use the Kore.ai SDK Tool BotKit to add event handlers, control the messages and WebHook events as required by connecting the WebHook node to a Script node to process the response.<\/p>\n\r\n\t\t<\/div>\r\n\t<\/div>\r\n<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>\r\n\t<div class=\"wpb_text_column \">\r\n\t\t<div class=\"wpb_wrapper\">\r\n\t\t\t<h2 id=\"webhook\"><span class=\"ez-toc-section\" id=\"Create_and_Register_an_App\">Create and Register an App<\/span><\/h2>\n<p>To get access to WebHook events and use WebHook nodes in your dialog task, you need to subscribe and configure an app in the <b>Deploy -&gt; Integrations<\/b> tab of your Virtual Assistant. For more information, refer to <a href=\"\/docs\/bots\/bot-builder\/editing-an-existing-bot\/sdk-configuration\/\">SDK Configuration<\/a>.<\/p>\n<ol>\n<li>Select the\u00a0<strong>Deploy<\/strong> tab from the top menu<\/li>\n<li>On the left menu, click <b>Integrations -&gt;<\/b>\u00a0<strong>Agent Transfer<\/strong>.<\/li>\n<li>On the Agent Transfer page, click <strong>Add<\/strong> next to the <strong>App Name<\/strong> drop-down list.<\/li>\n<li>On the <strong>Create Client App <\/strong>window, enter the app name in the <strong>Name<\/strong> field. For example, <em>SDK App.<\/li>\n<li>Click <strong>Next<\/strong>.<\/li>\n<li>The <strong>Client ID<\/strong> and <strong>Client Secret<\/strong> are generated along with the <em>App Created Successfully<\/em> message.<\/li>\n<li>Click <strong>Done<\/strong>.<\/li>\n<li>In the <strong>Callback URL<\/strong> field, enter the URL for your application that you want Kore.ai to push data to. For example, https:\/\/koremessenger.com\/postURL.<br \/>\n<b>Note<\/b>: The registration app you create is based on the <b>Callback URL<\/b> applicable to all tasks for the VA. While each task can have unique SDK configurations, the <b>Callback URL<\/b> is the same. Create separate Virtual Assistants for separate application <b>Callback URLs<\/b> for live agent transfers.<\/li>\n<li>Under the <strong>PII Data<\/strong> section, define how <strong>sensitive information<\/strong> should be handled. If there is a need to share unmasked data when an agent session is in progress, even when <a href=\"\/docs\/bots\/bot-settings\/pii-data-masking\/\">PII redaction is enabled<\/a>, select the <em>Do not mask and send original data to Agent BotKit<\/em>. or else, go with the default setting of <em>Mask and send sensitive data Agent BotKit.<\/em><\/li>\n<li>Under the <strong>Access Using a Connector<\/strong> section, indicate if your URL is behind a firewall and a <strong>Connector<\/strong> has to be used.<\/li>\n<li>Click <b>Save<\/b>. The <i>Successfully subscribed<\/i> message is displayed.<\/li>\n<\/ol>\n<p><a ref=\"magnificPopup\" href=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v9-2\/wp-content\/uploads\/sites\/26\/20210706111903\/webHook_app.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-28323\" src=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v9-2\/wp-content\/uploads\/sites\/26\/20210706111903\/webHook_app.png\" alt=\"\" width=\"1366\" height=\"768\" srcset=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v9-2\/wp-content\/uploads\/sites\/26\/20210706111903\/webHook_app.png 1366w, https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v9-2\/wp-content\/uploads\/sites\/26\/20210706111903\/webHook_app-300x169.png 300w, https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v9-2\/wp-content\/uploads\/sites\/26\/20210706111903\/webHook_app-1024x576.png 1024w\" sizes=\"auto, (max-width: 1366px) 100vw, 1366px\" \/><\/a><\/p>\n\r\n\t\t<\/div>\r\n\t<\/div>\r\n<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>\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=\"Set-Up\">Set-Up<\/span><\/h2>\n<p>Setting up a Webhook node in a dialog task involves the following steps:<\/p>\n<p>Note: Post v9.0 of the platform, the Service node is categorized under the VA Action node. For details on the VA Action node,\u00a0<a href=\"\/docs\/bots\/bot-builder-tool\/dialog-task\/bot-action-node\/\" target=\"_blank\" rel=\"noopener noreferrer\">click here<\/a>.<\/p>\n<h3><span class=\"ez-toc-section\" id=\"Add_Node\">Add Node<\/span><\/h3>\n<ol>\n<li>Open the dialog task to add the Webhook node.<\/li>\n<li>Add the Webhook 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 Webhook window is displayed with the <strong>Component Properties<\/strong> tab selected by default.<\/li>\n<li>You can configure the <strong>Connection Properties, <\/strong><a href=\"\/docs\/bots\/chatbot-overview\/using-the-dialog-builder-tool\/#Bot_Action_Nodes\" target=\"_blank\" rel=\"noopener noreferrer\">refer here for details<\/a>.<\/li>\n<\/ol>\n\r\n\t\t<\/div>\r\n\t<\/div>\r\n<div class=\"w-separator size_small with_line width_default thick_1 style_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F2aWdhdGlvbi1pdGVtLWFycm93JTIyJTNFJTNDJTJGZGl2JTNFJTBBJTNDZGl2JTIwY2xhc3MlM0QlMjJwb3N0X25hdmlnYXRpb24taXRlbS1tZXRhJTIyJTNFTmV4dCUzQyUyRmRpdiUzRSUwQSUzQ2RpdiUyMGNsYXNzJTNEJTIycG9zdF9uYXZpZ2F0aW9uLWl0ZW0tdGl0bGUlMjIlM0UlM0NzcGFuJTNFR3JvdXBpbmclMjBOb2RlcyUzQyUyRnNwYW4lM0UlM0MlMkZkaXYlM0UlMEElM0NwJTNFJTNDJTJGYSUzRSUzQyUyRmRpdiUzRQ==[\/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><\/div><\/section>\n","protected":false},"excerpt":{"rendered":"You can use the WebHook node to subscribe to a message and WebHook events to capture real-time data from real-time events to show them to the user. You can use the WebHook node for server-side validation, execute business logic, or make backend server API calls. Also, you can use the Kore.ai SDK Tool BotKit to...","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[29],"tags":[],"class_list":["post-17959","post","type-post","status-publish","format-standard","hentry","category-dialog-task"],"_links":{"self":[{"href":"https:\/\/developer.kore.ai\/v9-2\/wp-json\/wp\/v2\/posts\/17959","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/developer.kore.ai\/v9-2\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/developer.kore.ai\/v9-2\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/developer.kore.ai\/v9-2\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/developer.kore.ai\/v9-2\/wp-json\/wp\/v2\/comments?post=17959"}],"version-history":[{"count":12,"href":"https:\/\/developer.kore.ai\/v9-2\/wp-json\/wp\/v2\/posts\/17959\/revisions"}],"predecessor-version":[{"id":41546,"href":"https:\/\/developer.kore.ai\/v9-2\/wp-json\/wp\/v2\/posts\/17959\/revisions\/41546"}],"wp:attachment":[{"href":"https:\/\/developer.kore.ai\/v9-2\/wp-json\/wp\/v2\/media?parent=17959"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/developer.kore.ai\/v9-2\/wp-json\/wp\/v2\/categories?post=17959"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/developer.kore.ai\/v9-2\/wp-json\/wp\/v2\/tags?post=17959"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}