Publish Your Bot on Line
Create your LINE Business account
- Go to https://manager.line.biz/
- Log in using the LINE account that you created on your mobile phone.
- You are redirected to LINE Official Account Manager webpage. Click on the Create LINE official account button.
- Enter your company information and submit the application for a LINE business account.
Create a LINE Developers account
- Go to LINE Developers Console.
- If not already logged in, click Log in with LINE account to log in.
- Enter Your 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
- After creating a LINE developer account, the screen shown below will appear. Click the Create a new provider button.
- Enter a provider name and click Create to confirm.
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.
- Enter the necessary information and click the Create button.
- Click the OK button in the confirmation popup.
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 and click Configure the channel.
- Copy the Webhook URL and the JSON for the Public Key given there.
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 Response settings on the LINE Official Account Manager website.
- Under Main settings, disable Greeting messages.
- Under Detailed settings, disable Auto-response and enable Webhooks.
- Go to the Basic settings tab.
- Scroll down and click Register a public key under 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 your KID and Channel ID.
- Enter the KID copied earlier and the Channel ID (which 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.
Updated 12 days ago