{"id":59217,"date":"2023-09-11T08:39:43","date_gmt":"2023-09-11T07:39:43","guid":{"rendered":"https:\/\/developer.kore.ai\/v10-1\/?p=59217"},"modified":"2023-09-12T12:07:02","modified_gmt":"2023-09-12T11:07:02","slug":"using-here-action-templates","status":"publish","type":"post","link":"https:\/\/developer.kore.ai\/v10-1\/integrations\/using-here-action-templates\/","title":{"rendered":"Using Here Action Templates"},"content":{"rendered":"<p><span style=\"font-weight: 400;\">You can use the <\/span><b>Prebuilt Action Templates <\/b><span style=\"font-weight: 400;\">from your Here integration to auto-create dialog tasks and test them using the <\/span><b>Talk to Bot<\/b><span style=\"font-weight: 400;\"> option.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Steps to create a dialog task using Here action templates:<\/span><\/p>\n<ol>\n<li style=\"list-style-type: none;\">\n<ol>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Go to <\/span><b>Build &gt; Conversation Skills &gt; Dialog Tasks<\/b><span style=\"font-weight: 400;\">.<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Click <\/span><b>Create a Dialog Task<\/b><span style=\"font-weight: 400;\">.<\/span><br \/>\n<a ref=\"magnificPopup\" href=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20230127105135\/create_dailog_task.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1899\" height=\"901\" class=\"alignnone size-medium wp-image-53142\" src=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20230127105135\/create_dailog_task.png\" alt=\"\" srcset=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20230127105135\/create_dailog_task.png 1899w, https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20230127105135\/create_dailog_task-300x142.png 300w, https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20230127105135\/create_dailog_task-1024x486.png 1024w\" sizes=\"auto, (max-width: 1899px) 100vw, 1899px\" \/><\/a><\/li>\n<li aria-level=\"1\"><span style=\"font-weight: 400;\">On the Dialog Task pop-up, under the <\/span><b>Integration<\/b><span style=\"font-weight: 400;\">, select the <\/span><b>Here <\/b><span style=\"font-weight: 400;\">option to view the action templates.<br \/>\n<a ref=\"magnificPopup\" href=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20230911082954\/here_action9-300x280.png\"><img loading=\"lazy\" decoding=\"async\" width=\"956\" height=\"891\" class=\"alignnone size-medium wp-image-59221\" src=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20230911082954\/here_action9.png\" alt=\"\" srcset=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20230911082954\/here_action9.png 956w, https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20230911082954\/here_action9-300x280.png 300w\" sizes=\"auto, (max-width: 956px) 100vw, 956px\" \/><\/a><\/span><br \/>\n<b>Note<\/b><span style=\"font-weight: 400;\">: If you have not configured any integration for your virtual assistant, you will see the <\/span><b>Explore Integrations<\/b><span style=\"font-weight: 400;\"> option. Once you click this option, you will be redirected to the <\/span><b>Actions <\/b><span style=\"font-weight: 400;\">page to configure an integration for your VA. For more information, see <\/span><a href=\"https:\/\/developer.kore.ai\/v10-1\/integrations\/actions\/\"><span style=\"font-weight: 400;\">Actions Overview<\/span><\/a><span style=\"font-weight: 400;\">.<\/span><br \/>\n<a ref=\"magnificPopup\" href=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20230123095852\/create_dialog_new.png\"><img loading=\"lazy\" decoding=\"async\" width=\"892\" height=\"906\" class=\"alignnone size-medium wp-image-52397\" src=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20230123095852\/create_dialog_new.png\" alt=\"\" srcset=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20230123095852\/create_dialog_new.png 892w, https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20230123095852\/create_dialog_new-295x300.png 295w\" sizes=\"auto, (max-width: 892px) 100vw, 892px\" \/><\/a><\/li>\n<\/ol>\n<\/li>\n<\/ol>\n<h2><span class=\"ez-toc-section\" id=\"Here_Actions\"><span style=\"font-weight: 400;\">Here Actions\u00a0<\/span><\/span><\/h2>\n<p><span style=\"font-weight: 400;\">The following Here action is supported:<\/span><\/p>\n<table>\n<tbody>\n<tr>\n<td><b>Supported Actions<\/b><\/td>\n<td><b>Description<\/b><\/td>\n<td><b>Method<\/b><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400;\">Get location<\/span><\/td>\n<td><span style=\"font-weight: 400;\">Finds location using the text.<\/span><\/td>\n<td><span style=\"font-weight: 400;\">POST<\/span><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h3><span class=\"ez-toc-section\" id=\"Get_Locations\"><span style=\"font-weight: 400;\">Get Locations\u00a0<\/span><\/span><\/h3>\n<p><span style=\"font-weight: 400;\">Steps to get location by free text in the Here integration:<\/span><\/p>\n<ol>\n<li style=\"list-style-type: none;\">\n<ol>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Refer to the<\/span><span style=\"font-weight: 400;\"> <a href=\"https:\/\/developer.kore.ai\/v10-1\/integrations\/configuring-the-here-action\/#Step_2_Install_the_Here_Action_Templates\">Installing the Here templates<\/a><\/span><span style=\"font-weight: 400;\"> section to install this template.<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\">The <i>Get Location <\/i>dialog task is added with the following components:<br \/>\n<a ref=\"magnificPopup\" href=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20230911084521\/here_action8.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1491\" height=\"898\" class=\"alignnone size-medium wp-image-59228\" src=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20230911084521\/here_action8.png\" alt=\"\" srcset=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20230911084521\/here_action8.png 1491w, https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20230911084521\/here_action8-300x181.png 300w, https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20230911084521\/here_action8-1024x617.png 1024w\" sizes=\"auto, (max-width: 1491px) 100vw, 1491px\" \/><\/a><\/p>\n<ul>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><b>getLocation<\/b><span style=\"font-weight: 400;\">: A user intent to find a location.<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><b>location <\/b><span style=\"font-weight: 400;\">&#8211; An entity node to enter a location.<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><b>getLocationService<\/b><span style=\"font-weight: 400;\">&#8211; A bot action service to find a location in an external integration. Click the <\/span><b>Plus <\/b><span style=\"font-weight: 400;\">icon to expand to view the <\/span><i><span style=\"font-weight: 400;\">generalQueryService<\/span><\/i><span style=\"font-weight: 400;\"> bot action component properties.<\/span>The following components are installed:<\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\">In the <b>Component Properties<\/b> window, to add one or more responses, scroll down and click the <b>+Add Response<\/b> button.<br \/>\n<a ref=\"magnificPopup\" href=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20230911085109\/here_action10.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1919\" height=\"900\" class=\"alignnone size-medium wp-image-59231\" src=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20230911085109\/here_action10.png\" alt=\"\" srcset=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20230911085109\/here_action10.png 1919w, https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20230911085109\/here_action10-300x141.png 300w, https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20230911085109\/here_action10-1024x480.png 1024w\" sizes=\"auto, (max-width: 1919px) 100vw, 1919px\" \/><\/a><br \/>\n<b>Sample Response<\/b><\/p>\n<pre>{\r\n\"items\": [\r\n{\r\n\"title\": \"DS Road, Nagarathpete, Bengaluru 560002, India\",\r\n\"id\": \"herestreet:Ivcd5Wbnv3Xdt4.XXX\",\r\n\"resultType\": \"street\",\r\n\"address\": {\r\n\"label\": \"DS Road, Nagarathpete, Bengaluru 560002, India\",\r\n\"countryCode\": \"IND\",\r\n\"countryName\": \"India\",\r\n\"stateCode\": \"KA\",\r\n\"state\": \"Karnataka\",\r\n\"county\": \"Bengaluru\",\r\n\"city\": \"Bengaluru\",\r\n\"district\": \"Nagarathpete\",\r\n\"street\": \"DS Road\",\r\n\"postalCode\": \"560002\"\r\n},\r\n\"position\": {\r\n\"lat\": 12.96564,\r\n\"lng\": 77.58555\r\n},\r\n\"mapView\": {\r\n\"west\": 77.58419,\r\n\"south\": 12.96531,\r\n\"east\": 77.58689,\r\n\"north\": 12.96604\r\n},\r\n\"scoring\": {\r\n\"queryScore\": 0.99,\r\n\"fieldScore\": {\r\n\"streets\": [\r\n0.9\r\n]\r\n}\r\n}\r\n}\r\n]\r\n}\r\n<\/pre>\n<\/li>\n<li>getLocationMessage &#8211; A message node with the script to display the query in the Here system.<\/li>\n<\/ul>\n<\/li>\n<li aria-level=\"1\"><span style=\"font-weight: 400;\">Click the <\/span><b>Train <\/b><span style=\"font-weight: 400;\">tab<\/span> <span style=\"font-weight: 400;\">to complete the Dialog task training.<\/span><\/li>\n<li><span style=\"font-weight: 400;\">Click the <\/span><b>Talk to Bot <\/b><span style=\"font-weight: 400;\">icon to test and debug the dialog task.<\/span><\/li>\n<li><span style=\"font-weight: 400;\">Follow the prompts in the VA console to get location details.<\/span><\/li>\n<li><span style=\"font-weight: 400;\">Enter a free text location when prompted by the VA, as shown below.<\/span><br \/>\n<a ref=\"magnificPopup\" href=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20230911090026\/here_action_template.png\"><img loading=\"lazy\" decoding=\"async\" width=\"597\" height=\"820\" class=\"alignnone size-medium wp-image-59234\" src=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20230911090026\/here_action_template.png\" alt=\"\" srcset=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20230911090026\/here_action_template.png 597w, https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20230911090026\/here_action_template-218x300.png 218w\" sizes=\"auto, (max-width: 597px) 100vw, 597px\" \/><\/a><\/li>\n<li><span style=\"font-weight: 400;\">You will notice a location is identified based on your text.<\/span><br \/>\n<a ref=\"magnificPopup\" href=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20230911090306\/here_action_template1.png\"><img loading=\"lazy\" decoding=\"async\" width=\"591\" height=\"820\" class=\"alignnone size-medium wp-image-59237\" src=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20230911090306\/here_action_template1.png\" alt=\"\" srcset=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20230911090306\/here_action_template1.png 591w, https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20230911090306\/here_action_template1-216x300.png 216w\" sizes=\"auto, (max-width: 591px) 100vw, 591px\" \/><\/a><\/li>\n<\/ol>\n<\/li>\n<\/ol>\n","protected":false},"excerpt":{"rendered":"<p>You can use the Prebuilt Action Templates from your Here integration to auto-create dialog tasks and test them using the Talk to Bot option. Steps to create a dialog task using Here action templates: Go to Build &gt; Conversation Skills &gt; Dialog Tasks. Click Create a Dialog Task. On the Dialog Task pop-up, under the&#8230;<\/p>\n","protected":false},"author":17,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[201],"tags":[],"class_list":["post-59217","post","type-post","status-publish","format-standard","hentry","category-integrations"],"_links":{"self":[{"href":"https:\/\/developer.kore.ai\/v10-1\/wp-json\/wp\/v2\/posts\/59217","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\/17"}],"replies":[{"embeddable":true,"href":"https:\/\/developer.kore.ai\/v10-1\/wp-json\/wp\/v2\/comments?post=59217"}],"version-history":[{"count":4,"href":"https:\/\/developer.kore.ai\/v10-1\/wp-json\/wp\/v2\/posts\/59217\/revisions"}],"predecessor-version":[{"id":59462,"href":"https:\/\/developer.kore.ai\/v10-1\/wp-json\/wp\/v2\/posts\/59217\/revisions\/59462"}],"wp:attachment":[{"href":"https:\/\/developer.kore.ai\/v10-1\/wp-json\/wp\/v2\/media?parent=59217"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/developer.kore.ai\/v10-1\/wp-json\/wp\/v2\/categories?post=59217"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/developer.kore.ai\/v10-1\/wp-json\/wp\/v2\/tags?post=59217"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}