Publish Your Bot on Line

Create your LINE Business account

  • Go to https://manager.line.biz/
  • Click Create an account.
  • Click Sign up with email and follow the prompts to create an account.
  • You will be redirected to the LINE Official Account Manager webpage. Click on the Create LINE official account button.
Create LINE official account

Create LINE official account

  • Provide the required information and submit the application for a LINE business account.
  • Once done, your LINE official account will be ready.
LINE business account created

LINE business account created

📘

You can copy and save the Basic ID provided by the LINE team. This Basic ID will be used in the future communications.

You can also find this Basic ID in the LINE Official Account Manager page in the top pane.

Create a LINE Developers account

  • Go to LINE Developers Console.
  • If not already logged in, click Log in with business account to log in.
  • Enter the Developer Name and Your Email.
  • Click on the checkbox after referring to the LINE Developers Agreement.
  • Click the Create my account button.

Create a new provider

  • Once you create the LINE Developer account, you will be prompted to create a new provider. Click the Create a new provider button.
Create a new provider

Create a new provider

  • Enter a provider name and click Create to confirm.

📘

Learn more about Providers here.

Create a LINE Messaging API channel

  • Go to the Providers drop-down list in the sidebar.
  • Click on the newly created provider and go to the Channels tab.
  • Click on the Create a Messaging API channel option.
Creating a Messaging API channel

Creating a Messaging API channel

  • Provide the required information and mark the checkboxes after referring to the terms of use.
  • Click the Create button and verify the information like Channel name, Official Account name, and Provider.
  • Click the OK button in the confirmation popup window.

Get Webhook URL and Public Key JSON

  • Log in to the Gupshup website.
  • Go to the Dashboard tab > My Bots section.
  • Select the button under the Publish column against the bot you wish to publish.
  • A list of channels will appear. Click on the Publish button against LINE.
  • Scroll down the information and click Configure the channel.
  • Copy the Webhook URL.
  • Scroll a bit down and you will find an option to Generate Public Key
  • Click on Generate Public Key and copy the JSON public key.

👍

Pro Tip

You should save this webhook URL and public JSON key to the clipboard as these will be used in the later procedures.

Configure the channel

  • Go to the channel you created for the bot.
  • Go to the Messaging API tab.
  • Under Webhook settings, click the Edit button in the Webhook URL section.
  • Enter the Webhook URL copied earlier and click Update.
  • Scroll down to the LINE Official Account features section and click Edit against any option.
  • You will be redirected to the Settings page. Click the Response settings in the left sidebar.
  • Disable Greeting messages, and Auto-response messages. Enable Webhooks under Toggle responses.
Toggle responses

Toggle responses

  • Go to the LINE Developers website. If you are not logged in, log in with your credentials.
  • Click the Console tab.
Console tab

Console tab

  • Click and open the Provider you created and select the Messaging API channel under Channels tab.
Selecting messaging API channel

Selecting messaging API channel

  • Under the Basic settings tab, scroll down and click the Register a public key adjacent to the Assertion Signing Key section.
  • Enter the JSON for the public key copied earlier and click Register.
  • Copy the KID displayed in the popup for later use.

Submit credentials to Gupshup

To do so, please follow the steps below:

  • Log in to the Gupshup website.
  • Go to the Dashboard tab > My Bots section.
  • Select the button under the Publish column against the bot you wish to publish.
  • A list of channels will appear. Click on the Publish button against LINE.
  • Scroll down and click Submit KID and Channel ID.

📘

Channel ID can be found under the Basic Settings tab of the LINE channel.

  • Click Submit.

Supported message types on LINE

  • Text message
  • Sticker message
  • Image message
  • Video message
  • Audio message
  • Location message
  • Imagemap message
  • Template message (Buttons template, Confirm template, Carousel template, Image carousel template)
  • Flex Message

📘

To know more about supported message types, click here.