{"id":18032,"date":"2018-01-25T14:06:05","date_gmt":"2018-01-25T14:06:05","guid":{"rendered":"http:\/\/developer.kore.ai\/v10-1\/?post_type=docs&#038;p=12816"},"modified":"2022-09-30T18:02:43","modified_gmt":"2022-09-30T17:02:43","slug":"adding-the-line-channel","status":"publish","type":"post","link":"https:\/\/developer.kore.ai\/v10-1\/docs\/bots\/channel-enablement\/adding-the-line-channel\/","title":{"rendered":"Adding the LINE Channel"},"content":{"rendered":"<p><span style=\"font-weight: 400\">To add the LINE channel to your Kore.ai bot, you must set up a webhook integration to configure the connection between LINE and Kore.ai. Adding the LINE channel to your Kore.ai assistant allows end-users to interact with it using their <\/span><em><span style=\"font-weight: 400\">LINE<\/span><\/em><span style=\"font-weight: 400\"> accounts. To add the LINE channel to your bot, you must also have or create a LINE account.<\/span><\/p>\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>\n<h1><span class=\"ez-toc-section\" id=\"Step_1_Create_a_LINE_Provider\"><span style=\"font-weight: 400\">Step 1: Create a LINE Provider<\/span><\/span><\/h1>\n<ol>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">Log in to your <\/span><a href=\"https:\/\/developers.line.me\/\"><span style=\"font-weight: 400\">LINE Developer account portal<\/span><\/a><span style=\"font-weight: 400\">, and click <\/span><strong>Create a new provider<\/strong><span style=\"font-weight: 400\">..If you already have a <\/span><em><span style=\"font-weight: 400\">Provider<\/span><\/em><span style=\"font-weight: 400\"> that you want to use for this bot, then choose the provider from the Provider<\/span><em><span style=\"font-weight: 400\"> List.<\/span><\/em><em><span style=\"font-weight: 400\"><a ref=\"magnificPopup\" href=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20220930175732\/create-provider.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-large wp-image-46930\" src=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20220930175732\/create-provider-1024x459.png\" alt=\"\" width=\"640\" height=\"287\" srcset=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20220930175732\/create-provider-1024x459.png 1024w, https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20220930175732\/create-provider-300x135.png 300w, https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20220930175732\/create-provider.png 1922w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/><\/a><\/span><\/em><\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">\u00a0Click <\/span><strong>Create a Messaging API Channel<\/strong><span style=\"font-weight: 400\">.<br \/><a ref=\"magnificPopup\" href=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20220930175737\/messaging-api.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-large wp-image-46933\" src=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20220930175737\/messaging-api-1024x459.png\" alt=\"\" width=\"640\" height=\"287\" srcset=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20220930175737\/messaging-api-1024x459.png 1024w, https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20220930175737\/messaging-api-300x135.png 300w, https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20220930175737\/messaging-api.png 1922w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/><\/a><br \/><\/span><\/li>\n<\/ol>\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>\n<h1><span class=\"ez-toc-section\" id=\"Step_2_Add_a_Channel_on_LINE\"><span style=\"font-weight: 400\">Step 2: Add a Channel on LINE<\/span><\/span><\/h1>\n<ol>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">Under <\/span><strong>Create a new channel <\/strong><span style=\"font-weight: 400\">, provide the required details.\u00a0<\/span><\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">Click <\/span><strong>Create <\/strong><span style=\"font-weight: 400\">to review and proceed with channel creation.<br \/><a ref=\"magnificPopup\" href=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20220930175715\/add-line-channel.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-large wp-image-46921\" src=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20220930175715\/add-line-channel-1024x459.png\" alt=\"\" width=\"640\" height=\"287\" srcset=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20220930175715\/add-line-channel-1024x459.png 1024w, https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20220930175715\/add-line-channel-300x135.png 300w, https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20220930175715\/add-line-channel.png 1922w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/><\/a><br \/><\/span><\/li>\n<\/ol>\n<table style=\"width: 100%;border-collapse: collapse;background-color: #fffbea\">\n<tbody>\n<tr>\n<td style=\"width: 100%\"><strong><em>Note:<\/em><\/strong><em><span style=\"font-weight: 400\"> The Kore.ai XO Platform uses PUSH_MESSAGE APIs to deliver non-interactive messages to end-users. These scenarios include cases like alert notifications, session closure messages, and any other scenario where the replyToken from the LINE channel is either not available or expired. These API calls may be charged; review the LINE plan options and select the appropriate plan that suits your needs.<\/span><\/em><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\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>\n<h1><span class=\"ez-toc-section\" id=\"Step_3_Enable_the_Channel\"><span style=\"font-weight: 400\">Step 3: Enable the Channel<\/span><\/span><\/h1>\n<ol>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">After the channel is created, you are redirected to the <\/span><strong>Provider dashboard<\/strong><span style=\"font-weight: 400\"> with a list of available channels.<\/span><\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">Select the channel you have created above to continue with channel configurations.<\/span><\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">From under <\/span><strong>Basic Settings<\/strong><span style=\"font-weight: 400\">, capture the <\/span><strong>Channel ID<\/strong><span style=\"font-weight: 400\"> and <\/span><strong>Channel Secret<\/strong><span style=\"font-weight: 400\"> of your LINE channel.<\/span><\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">Go to the XO Platform and select the assistant that you want to add the LINE channel to.<\/span><\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">Go to <\/span><strong>Deploy &gt; Channels &gt; LINE &gt; Configuration<\/strong><span style=\"font-weight: 400\">.<\/span><\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">Enter the <\/span><strong>Channel User<\/strong><span style=\"font-weight: 400\"> ID and <\/span><strong>Channel Secret<\/strong><span style=\"font-weight: 400\">, retrieved from LINE.\u00a0<\/span><\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">Under Enable Channel, select Yes and click Save to enable the LINE Channel for your assistant.<\/span><\/li>\n<\/ol>\n<p><span style=\"font-weight: 400\"><a ref=\"magnificPopup\" href=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20220930175726\/channel-keys.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-large wp-image-46927\" src=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20220930175726\/channel-keys.png\" alt=\"\" width=\"523\" height=\"635\" srcset=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20220930175726\/channel-keys.png 699w, https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20220930175726\/channel-keys-247x300.png 247w\" sizes=\"auto, (max-width: 523px) 100vw, 523px\" \/><\/a><\/span><\/p>\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>\n<h1><span class=\"ez-toc-section\" id=\"Step_4_Enable_the_Webhook_Integration\"><span style=\"font-weight: 400\">Step 4 : Enable the Webhook Integration<\/span><\/span><\/h1>\n<ol>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">From the LINE Channel Configuration page in the XO Platform, copy the <\/span><strong>Webhook URL<\/strong><span style=\"font-weight: 400\">.<\/span><\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">Go to\u00a0 LINE, and navigate to the <\/span><strong>Messaging API <\/strong><span style=\"font-weight: 400\">section of your newly created LINE Channel.\u00a0 Scroll to Webhook Settings and click Edit to enter the Webhook URL you just copied from the XO Platform.<br \/><a ref=\"magnificPopup\" href=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20220930175747\/webhook-1.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-large wp-image-46939\" src=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20220930175747\/webhook-1-1024x459.png\" alt=\"\" width=\"640\" height=\"287\" srcset=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20220930175747\/webhook-1-1024x459.png 1024w, https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20220930175747\/webhook-1-300x135.png 300w, https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20220930175747\/webhook-1.png 1922w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/><\/a> <\/span><span style=\"font-weight: 400\"><br \/><\/span><\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">Click <\/span><strong>Update<\/strong><span style=\"font-weight: 400\">.<br \/><a ref=\"magnificPopup\" href=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20220930175721\/add-webhook-1.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-large wp-image-46924\" src=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20220930175721\/add-webhook-1-1024x459.png\" alt=\"\" width=\"640\" height=\"287\" srcset=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20220930175721\/add-webhook-1-1024x459.png 1024w, https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20220930175721\/add-webhook-1-300x135.png 300w, https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20220930175721\/add-webhook-1.png 1922w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/><\/a><br \/><\/span><\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">After saving the webhook URL, Enable the Webhook, choose whether to enable redelivery and error statistics aggregation, then click <\/span><strong>Verify <\/strong><span style=\"font-weight: 400\">to ensure that the webhook call from LINE is acknowledged by the Kore.ai XO Platform.<br \/><a ref=\"magnificPopup\" href=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20220930175742\/verify-webhook.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-large wp-image-46936\" src=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20220930175742\/verify-webhook.png\" alt=\"\" width=\"466\" height=\"277\" srcset=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20220930175742\/verify-webhook.png 770w, https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v10-1\/wp-content\/uploads\/sites\/35\/20220930175742\/verify-webhook-300x178.png 300w\" sizes=\"auto, (max-width: 466px) 100vw, 466px\" \/><\/a><br \/><\/span><\/li>\n<\/ol>\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>\n<h1><span class=\"ez-toc-section\" id=\"Step_5_Review_Additional_Options\"><span style=\"font-weight: 400\">Step 5: Review Additional Options<\/span><\/span><\/h1>\n<p><span style=\"font-weight: 400\">We recommend that you review additional options available for your LINE channels like group behavior, auto-replies, and greetings messages.<\/span><\/p>\n<p><span style=\"font-weight: 400\">After the channel is enabled and all configurations are verified, you can optionally publish the assistant to make it available for end-users, with the new channel. Learn more about<\/span><a href=\"https:\/\/developer.kore.ai\/v10-1\/docs\/bots\/publish\/publishing-bot\/\"><span style=\"font-weight: 400\"> Publishing your Virtual Assistant<\/span><\/a><span style=\"font-weight: 400\">.<\/span><\/p>\n<p><span style=\"font-weight: 400\">To learn more about working with Channels within the Kore.ai XO Platform, please see<\/span><a href=\"https:\/\/developer.kore.ai\/v10-1\/docs\/bots\/channel-enablement\/adding-channels-to-your-bot\/\"><span style=\"font-weight: 400\"> Channel Enablement.<\/span><\/a><\/p>\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>\n","protected":false},"excerpt":{"rendered":"<p>To add the LINE channel to your Kore.ai bot, you must set up a webhook integration to configure the connection between LINE and Kore.ai. Adding the LINE channel to your Kore.ai assistant allows end-users to interact with it using their LINE accounts. To add the LINE channel to your bot, you must also have or&#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[25],"tags":[],"class_list":["post-18032","post","type-post","status-publish","format-standard","hentry","category-channel-enablement"],"_links":{"self":[{"href":"https:\/\/developer.kore.ai\/v10-1\/wp-json\/wp\/v2\/posts\/18032","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\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/developer.kore.ai\/v10-1\/wp-json\/wp\/v2\/comments?post=18032"}],"version-history":[{"count":9,"href":"https:\/\/developer.kore.ai\/v10-1\/wp-json\/wp\/v2\/posts\/18032\/revisions"}],"predecessor-version":[{"id":46920,"href":"https:\/\/developer.kore.ai\/v10-1\/wp-json\/wp\/v2\/posts\/18032\/revisions\/46920"}],"wp:attachment":[{"href":"https:\/\/developer.kore.ai\/v10-1\/wp-json\/wp\/v2\/media?parent=18032"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/developer.kore.ai\/v10-1\/wp-json\/wp\/v2\/categories?post=18032"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/developer.kore.ai\/v10-1\/wp-json\/wp\/v2\/tags?post=18032"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}