Line.PNG

Within our Cognigy.AI platform you're able to connect your Cognigy resources to your LINE channel by using our Line Endpoint integration.

Inject & Notify

You can use the Inject and Notify functionality with this type of Endpoint. For further details see:

Inject a Message to a Flow
and
Notify a Contact

Description

With the implementation of a LINE Endpoint you can easily connect your LINE Bot with Cognigy.AI.

This How to covers the necessary steps for creating and connecting a LINE Endpoint. If you want to get information about assigning a Flow to the Endpoint and setting up the Data Management see Endpoints.

LINE@ Account

You'll need a LINE Developer account to successfully use the LINE Endpoint integration.

Three Step Deployment Process

  1. Email Address Registration for a Line@ Account
  2. Create a LINE Channel for the usage of the Cognigy Endpoint on LINE Developers
  3. Creation and Configuration of a LINE Endpoint within Cognigy.AI

1. Email Address Registration

Location: LINE mobile app

Before you can login as a Line developer, you need to setup a Line account in your smartphone and add an email address to it.

Go to the accounts settings in the LINE mobile app (Settings/Account). Tap on Email Address to add an email address and a password to your account.

46a4291-Screenshot_20180827-121111_LINE.png
Line Account Settings

2. Create a LINE Channel

Location: LINE@ Developers

Requirements
✔ LINE Account

2.1 Login as a LINE Developer

Go to LINE Developers. In the upper right corner you'll find the login button (see Figure 2.1) which leads you to the login process with your [email protected] Account. Use the email address and password you set up in your smartphone app.

7370b60-Screenshot_from_2018-07-31_09-41-03.png
Figure 2.1: LINE Developers

2.2 Create a LINE Provider

After a successful login, your account overview will be displayed (see Figure 2.2). Click on the Create New Provider button to start the creation process. Within this process you just need to enter a valid name for your provider.

c1991da-Screenshot_from_2018-07-31_10-09-34.png
Figure 2.2: @LINE Account Overview

2.3 Create a LINE Channel

After you've created a LINE Provider in Step 2.2 you're able to add a channel to this provider. When you go to your provider you'll see three cards for creating a channel. Choose the Messaging API card (see Figure 2.3.1).

e37bea6-Screenshot_from_2018-07-31_10-14-59.png
Figure 2.3.1: Messaging API

Fill in the required information for the channel creation process and click confirm.

After successfully creating the channel you'll be redirected to your account overview where your provider is listed with the newly created channel (see Figure 2.3.2).

ede32d1-Screenshot_from_2018-07-31_10-17-39.png
Figure 2.3.2: Provider Overview

2.4 Get the Channel Credentials

After clicking on the channel of your choice, an overview of all the information about the channel is displayed.

You will need the following values:

  • Channel Secret (see Figure 2.4.1)
  • Channel Access Token (see Figure 2.4.2)

f58f38c-Screenshot_from_2018-07-31_10-23-15.png
Figure 2.4.1: Channel Secret

9e27eda-Screenshot_from_2018-07-31_10-24-17.png
Figure 2.4.2: Channel Access Token

You can store these credentials in a text file or leave the browser tab open. You'll need them for your LINE Endpoint within Cognigy.AI.

2.5 Disable Auto-Reply Messages

In your LINE channel settings scroll down to the Using LINE@ features section. There you have to disable the Auto-Reply Messages feature, so our endpoint can work properly (see Figure 2.5).*

b9ad221-Screenshot_from_2018-09-12_09-49-29.png
Figure 2.5: Auto-Reply Message Section

3. Creation and Configuration of the LINE Endpoint

Location: Cognigy.AI

Requirements
✔ Channel Access Token
✔ Channel Secret

3.1 Create a LINE Endpoint

First, you have to create an Endpoint of the type LINE (see Figure 3.1).

ea4c111-Screenshot_from_2018-08-16_11-57-15.png
Figure 3.1: LINE Endpoint Creation

3.2 Configure the LINE Endpoint

Expand the LINE Setup panel (see Figure 3.2) on the bottom and paste the saved channel access token and channel secret (Step 2.4) into the corresponding fields.

cf21d95-Screenshot_from_2018-09-12_09-43-57.png
Figure 3.2: LINE Setup

3.3 Get the Endpoint URL

Move to the top of the Endpoint Configuration page and copy the Endpoint URL which is displayed above the General Settings (see Figure 3.3).

97f180c-Screenshot_from_2018-08-16_12-01-49.png
Figure 3.3: LINE Endpoint General Settings

Final Step: Connect Your LINE Channel to the Endpoint

Location: LINE Developers

Requirements
✔ Endpoint URL

Go to your LINE Channel that you've created in Step 2.3. Scroll down to the Messaging settings section (see Figure 4.1).

5011e97-Screenshot_from_2018-07-31_13-07-01.png
Figure 4.1: Messaging Settings Section

There you have to edit two settings:

  • Change Use webhooks to enabled.
  • Enter the Endpoint URL you got in Step 3.3 to the Webhook URL field.

Requirement

Make sure that you enable webhooks, else you won't be able to talk to your Cognigy.AI endpoint.

You should be all set up to use the LINE Endpoint you've created with a Flow of your choice.

To test your channel, scroll to the bottom of the channel settings where you can find a QR code (see Figure 4.2). Use your smartphone LINE app to scan this QR code and add your channel. Send a message to your channel to test it.

ed5ad45-Screenshot_from_2018-09-12_13-02-37.png
Figure 4.2: QR code to test your channel


Was this article helpful?
0 out of 0 found this helpful

Comments

0 comments

Please sign in to leave a comment.