Kata Documentations
Username
Kata Documentations
Tutorial

How to deploy your chatbot to LINE

LINE is a free messaging platform and is famous in Indonesia. This messaging platform supports various interactive action types such as carousel, button, Image Map, and many more.

This tutorial will learn how to deploy your chatbot to LINE. Let’s start.

Create a deployment

Deployment is a step to merge all Revisions in Flow, NLU, and CMS so that you can integrate bots into the channel. Before starting channel integration, chatbots must at least have 1 deployment.

  1. In the sidebar, choose the Deploy menu. Then, select Overview.
How to deploy your chatbot to LINE
Figure 1.Deploy menu interface
  1. Click the New Deployment button. Then it will show a form on the right screen.

  2. Choose the deployment version. In the Kata Platform, there are 3 deployment versions which are:

  • Major to deploy significant changes, such as change chatbot use-case.

  • Minor to deploy medium changes, such as adding new features in your chatbot.

  • Patch to deploy small changes, such as change copy in action.

How to deploy your chatbot to LINE
Figure 2. Create a new deployment
  1. Then, click the Submit button. If deployment is successful, then the interface will be shown like this.
How to deploy your chatbot to LINE
Figure 3.Deployment has been created.

The step after creating a deployment is to create an environment. An environment is a zone in computer science that provides a place to run integrated applications. For example, Kata Platform has 3 environments: development, staging, and production.

  1. Choose the menu Deploy, then choose Environment.
How to deploy your chatbot to LINE
Figure 4.Environment interface.
  1. In this step, you will create a Development environment. Click the button Create Environment in the Development card.

  2. Fill in the environment, then click Create.

How to deploy your chatbot to LINE
Figure 5.Create an environment interface.

Integration to a channel

This step will create a chatbot integration with the Telegram messaging platform. Telegram is a free messaging platform to deploy chatbots with a simple setup.

  1. In the Deploy > Environment, click the Create Channel button.
How to deploy your chatbot to LINE
Figure 6.Button deploys channel in a Development environment.
  1. You will redirect to the Create Channel page. Click the “+ Create Channel” button to create a new channel.

  2. Fill in the channel name and choose type as LINE.

  3. To fill in the Bot User OAuth Access Token field, we must set up a chatbot in Telegram first. The next step is to open your Telegram application and log in.

Before you start, you need a LINE account already registered and logged in to your application.

Registration to LINE Developer console and setup

  1. Create a LINE account. To sign up for a LINE developer account, you have to have a LINE account by installing a LINE application, either desktop or mobile app.

  2. After you successfully registered, sign in to https://developers.line.biz/en/

  3. In the LINE Developer Console, click Log In.

How to deploy your chatbot to LINE
Figure 7.LINE developer dashboard.
  1. Next, click on Login with LINE.
How to deploy your chatbot to LINE
Figure 8.Log in with LINE
  1. Enter your email and password. After you successfully log in, you will be redirected to the provider list dashboard.
How to deploy your chatbot to LINE
Figure 9.Provider list.
  1. Next, click “Create New Provider”. Fill in the provider name.

  2. Click Confirm to continue.

  3. Your new provider has been created.

How to deploy your chatbot to LINE
Figure 10.New provider.
  1. Next, set up the channel in the Messaging API by clicking Create Channel on Messaging API.
How to deploy your chatbot to LINE
Figure 11.Create channel.
  1. Fill in your LINE bot detail.

  2. Next, you have to choose the Developer Trial as Plan.

How to deploy your chatbot to LINE
Figure 12.hoose developer trial option
  1. Finally, click Create. The successfully created channel will look like this.
How to deploy your chatbot to LINE
Figure 13.New channel.

Integrate LINE to your chatbot

  1. Click on the created channel to fill in the Channel Access Token

  2. Click “Issue” in the Messaging Settings section.

How to deploy your chatbot to LINE
Figure 14.Issue access token.
  1. Then, a dialog will show. Click on Issue to continue.

  2. Finally, copy the Channel Access Token below and paste it on the Create Channel form in the Kata Platform.

How to deploy your chatbot to LINE
Figure 15.Show Channel Access Token.
  1. Go back to Kata Platform, then paste the Channel Access Token.
How to deploy your chatbot to LINE
Figure 16.Paste Channel Access Token.
  1. Next, you will fill in the Channel Secret field. Then, in Basic Information, copy Channel Secret from LINE to the Kata Platform.
How to deploy your chatbot to LINE
Figure 17.Copy Channel Secret.
  1. Go back to the Kata Platform, then paste the Channel Secret.
How to deploy your chatbot to LINE
Figure 18.All fields are filled in.
  1. Click “Create” to generate a webhook URL from the Kata Platform.

After the webhook URL is generated, go to Messaging Settings in the LINE developer console to enable webhook.

  1. Enable the webhook by clicking on Enable in the “Use Webhooks” section, placed above the Webhook URL field.
How to deploy your chatbot to LINE
Figure 19.Enable webhook.
  1. Click “Update,” then paste the webhook URL to the LINE developer console.
How to deploy your chatbot to LINE
Figure 20.Paste webhook from Kata Platform.
  1. Click “Update”, then click “Verify”.

  2. Next, disable auto-reply messages and greeting messages by following figure 21.

How to deploy your chatbot to LINE
Figure 21.Disable auto-reply and greeting messages.
  1. Congratulations, you have successfully deployed your bot to LINE Messenger.

  2. Next, test your bot by scanning the QR code.

It is the end of the guidance. If you find it difficult to follow, you can contact support@kata.ai. Thank you.

© 2024 Kata.ai. All rights reserved.

Version v4.0.0. Last updated 15 March 2022.

  • Twitter
  • GitHub
  • LinkedIn
  • Medium