1. Introduction
Below, you will learn how to integrate LINE in the chat plugin.
This article mainly discusses:
(Please create LINE's Login channel and Messaging API channel under the same Providers. Create a LINE official account means creating a new account, which is similar to a WeChat official account.)
Note: Only LINE official accounts can be integrated into the plugin portal.
2. Step-by-Step Guide
2.1. Create a LINE official account
(1) Please open the LINE official account management: https://manager.LINE.biz
(2) Create an account
(3) Select LINE account or email to register.

(4) After registration is complete, log in to the official account management page and click "create new" to start creating. (If it has already been created, click the corresponding account to enter the official account)
Enter the creation page and fill in the relevant information. After filling in, the official account is created. Click "Go to LINE Official Account Manager" to enter the official account management (i.e., LINE Official Account Manager).



2.2. Create a Messaging API channel
(1) In LINE Official Account Manager, click “Settings” to enter the “Settings” page.
(2) Under the “Settings” module, click “Messaging API”, and then click “Enable Messaging API”.

(3) After clicking “Enable Messaging API”, fill in the developer information.

(4) Then select a Provider (if there is no existing Provider, select Generate New Provider). This step will automatically generate a Messaging API Channel under the Provider.

(5) Click https://developers.LINE.biz/console/ to go to the console. Click the Messaging API created under Existing Providers to enter the management page.

(6) Set up the Messaging channel
On the Messaging channel management page, click “LINE Official Account Manager” in “Basic settings” to start settings.

Go to the settings page, click to enter the "Response settings", delete this item ("Response mode" is set to Bot), set "Greeting message" to off, and set "Webhooks" to on.

2.3. Integrate LINE into SaleSmartly
(1) In the SaleSmartly, click "Settings", select LINE, and select "Add LINE".

(2) In the Messaging API channel management page, select “Basic settings”, copy “Channel ID” and “Channel Secret”, and fill them in the Salesmartly.


(3) Click to enter the "Messaging API" module and turn on the "Use webhook" switch.
Note: This button will only appear and can be enabled after SaleSmartly is bound . If it does not appear, please refresh the page.

2.4. Create a LINE Login channel
(1) Go to LINE’s developer platform https://developers.LINE.biz/ and log in to your LINE account.
(2) Go to the console https://developers.LINE.biz/console/, create a login channel under the existing Providers, and click “Create a LINE login channel” to start creation.


(3) When creating a channel, you can customize the Channel name as needed, select "Web app" for App type, fill in the remaining required information, and click Finish to automatically enter the channel management page.
(4) In the LIFF section, click Create a LIFF app. When creating a LIFF app:


(5) In the [Channel Management Page - LINE Login] section, enter the Callback URL (fill in the URL provided by SaleSmartly, see below)


(6) On the channel management page, click “Developing” and select “Publish” in the pop-up window.“ Publish this channel?”


(7) In the SaleSmartly, to integrate the LINE portal, please select the required integration plugin, go to the plugin editing page - Portal Integration - Open the LINE portal - Go to integrate


(8) In the [Channel Management Page - Basic settings] section, copy the channel ID and channel secret (visible by scrolling down on the same page) and fill them in the Salesmartly. In the LIFF section, copy the Liff ID and fill it in the Salesmartly. The callback URL and Endpoint URL need to be filled in the LINE. For details, see steps 4.4 and 4.5 above.



(9) In the Messaging API Channel section, select "Existing Messaging Channel" as the association method and select an existing channel.
