{"id":59242,"date":"2023-09-11T10:06:29","date_gmt":"2023-09-11T09:06:29","guid":{"rendered":"https:\/\/developer.kore.ai\/v10-1\/?p=59242"},"modified":"2023-09-12T12:10:09","modified_gmt":"2023-09-12T11:10:09","slug":"using-the-bitly-action-template","status":"publish","type":"post","link":"https:\/\/developer.kore.ai\/v10-1\/integrations\/using-the-bitly-action-template\/","title":{"rendered":"Using the Bitly Action Template"},"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 Bitly 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 Bitly action templates:<\/span><\/p>\n<ol>\n<li style=\"list-style-type: none;\">\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 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 style=\"font-weight: 400;\" 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>Bitly <\/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\/20230911093916\/bitly_action9.png\"><img loading=\"lazy\" decoding=\"async\" width=\"950\" height=\"895\" class=\"alignnone size-medium wp-image-59243\" src=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20230911093916\/bitly_action9.png\" alt=\"\" srcset=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20230911093916\/bitly_action9.png 950w, https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20230911093916\/bitly_action9-300x283.png 300w\" sizes=\"auto, (max-width: 950px) 100vw, 950px\" \/><\/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<\/li>\n<\/ol>\n<h3><span class=\"ez-toc-section\" id=\"Bitly_Actions\"><span style=\"font-weight: 400;\">Bitly Actions\u00a0<\/span><\/span><\/h3>\n<p><span style=\"font-weight: 400;\">The following Bitly 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;\">Short an URL<\/span><\/td>\n<td><span style=\"font-weight: 400;\">Shortens any long URL.<\/span><\/td>\n<td><span style=\"font-weight: 400;\">POST<\/span><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h4><b>General Query\u00a0<\/b><\/h4>\n<p><span style=\"font-weight: 400;\">Steps to shorten the URL in the Bitly integration:<\/span><\/p>\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-bitly-action\/#Step_2_Install_the_Bitly_Action_Templates\">Installing the Bitly 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>Short URL <\/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\/20230911094527\/bitly_action8.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1547\" height=\"895\" class=\"alignnone size-medium wp-image-59246\" src=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20230911094527\/bitly_action8.png\" alt=\"\" srcset=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20230911094527\/bitly_action8.png 1547w, https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20230911094527\/bitly_action8-300x174.png 300w, https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20230911094527\/bitly_action8-1024x592.png 1024w\" sizes=\"auto, (max-width: 1547px) 100vw, 1547px\" \/><\/a><\/p>\n<ul>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><b>shortUrl<\/b><span style=\"font-weight: 400;\">: A user intent to shorten an URL.<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><b>longURL<\/b><span style=\"font-weight: 400;\"> &#8211; An entity node to enter a long URL.<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><b>shortUrlService<\/b><span style=\"font-weight: 400;\">&#8211; A bot action service to send a query 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><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\">In the <b>Component Properties<\/b> window, click the <b>Edit Request<\/b> link to edit the request parameters, as shown below.<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\/20230911094934\/bitly_short_url.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1917\" height=\"833\" class=\"alignnone size-medium wp-image-59250\" src=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20230911094934\/bitly_short_url.png\" alt=\"\" srcset=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20230911094934\/bitly_short_url.png 1917w, https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20230911094934\/bitly_short_url-300x130.png 300w, https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20230911094934\/bitly_short_url-1024x445.png 1024w\" sizes=\"auto, (max-width: 1917px) 100vw, 1917px\" \/><\/a><br \/>\n<b>Sample Request<\/b><\/p>\n<pre>{\r\n\"long_url\": \"https:\/\/en.wikipedia.org\/wiki\/Constantine_V\"\r\n}\r\n<\/pre>\n<\/li>\n<li aria-level=\"1\"><span style=\"font-weight: 400;\">To add one or more responses, scroll down and click the <\/span><b>+Add Response<\/b><span style=\"font-weight: 400;\"> 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\/20230911095828\/bitly_short_url1.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1914\" height=\"742\" class=\"alignnone size-medium wp-image-59253\" src=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20230911095828\/bitly_short_url1.png\" alt=\"\" srcset=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20230911095828\/bitly_short_url1.png 1914w, https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20230911095828\/bitly_short_url1-300x116.png 300w, https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20230911095828\/bitly_short_url1-1024x397.png 1024w\" sizes=\"auto, (max-width: 1914px) 100vw, 1914px\" \/><\/a><\/span><br \/>\n<b>Sample Response<\/b><\/p>\n<pre>{\r\n\"created_at\": \"2023-08-25T08:38:00+0000\",\r\n\"id\": \"bit.ly\/3E8Nec6\",\r\n\"link\": \"https:\/\/bit.ly\/3E8Nec6\",\r\n\"custom_bitlinks\": [],\r\n\"long_url\": \"https:\/\/en.wikipedia.org\/wiki\/Constantine_V\",\r\n\"archived\": false,\r\n\"tags\": [],\r\n\"deeplinks\": [],\r\n\"references\": {\r\n\"group\": \"https:\/\/api-ssl.bitly.com\/v4\/groups\/Bn448WZsE7j\"\r\n}\r\n}\r\n<\/pre>\n<\/li>\n<li><b>generalQueryMessage <\/b><span style=\"font-weight: 400;\">&#8211; A message node with the script to display the query in the Bitly system.<\/span><\/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 aria-level=\"1\"><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 aria-level=\"1\"><span style=\"font-weight: 400;\">Follow the prompts in the VA console to resolve a general query.<\/span><\/li>\n<li aria-level=\"1\"><span style=\"font-weight: 400;\">Enter a long URL 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\/20230911100321\/bitly_short_url2.png\"><img loading=\"lazy\" decoding=\"async\" width=\"601\" height=\"830\" class=\"alignnone size-medium wp-image-59256\" src=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20230911100321\/bitly_short_url2.png\" alt=\"\" srcset=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20230911100321\/bitly_short_url2.png 601w, https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20230911100321\/bitly_short_url2-217x300.png 217w\" sizes=\"auto, (max-width: 601px) 100vw, 601px\" \/><\/a><\/li>\n<li aria-level=\"1\"><span style=\"font-weight: 400;\">You will notice that the long URL is shortened. Click <\/span><b>View Stats<\/b><span style=\"font-weight: 400;\"> to view URL statistics in the Bitly instance.<\/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\/20230911100518\/bitly_short_url3.png\"><img loading=\"lazy\" decoding=\"async\" width=\"590\" height=\"823\" class=\"alignnone size-medium wp-image-59259\" src=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20230911100518\/bitly_short_url3.png\" alt=\"\" srcset=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20230911100518\/bitly_short_url3.png 590w, https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20230911100518\/bitly_short_url3-215x300.png 215w\" sizes=\"auto, (max-width: 590px) 100vw, 590px\" \/><\/a><\/li>\n<\/ol>\n","protected":false},"excerpt":{"rendered":"<p>You can use the Prebuilt Action Templates from your Bitly integration to auto-create dialog tasks and test them using the Talk to Bot option. Steps to create a dialog task using Bitly action templates: Go to Build &gt; Conversation Skills &gt; Dialog Tasks. Click Create Dialog Task. On the Dialog Task pop-up, under the Integration,&#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-59242","post","type-post","status-publish","format-standard","hentry","category-integrations"],"_links":{"self":[{"href":"https:\/\/developer.kore.ai\/v10-1\/wp-json\/wp\/v2\/posts\/59242","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=59242"}],"version-history":[{"count":2,"href":"https:\/\/developer.kore.ai\/v10-1\/wp-json\/wp\/v2\/posts\/59242\/revisions"}],"predecessor-version":[{"id":59464,"href":"https:\/\/developer.kore.ai\/v10-1\/wp-json\/wp\/v2\/posts\/59242\/revisions\/59464"}],"wp:attachment":[{"href":"https:\/\/developer.kore.ai\/v10-1\/wp-json\/wp\/v2\/media?parent=59242"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/developer.kore.ai\/v10-1\/wp-json\/wp\/v2\/categories?post=59242"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/developer.kore.ai\/v10-1\/wp-json\/wp\/v2\/tags?post=59242"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}