Connecting a LINE Channel
LINE is the leading messaging app in Japan, Thailand and Taiwan. Contacts add your LINE Official Account as a friend to message it, and can reply with photos, videos, audio, files and locations or by tapping buttons. Replies to contacts are free, while messages your account starts count toward your LINE plan's monthly allowance.
Before you start
You'll need a LINE Official Account with the Messaging API turned on, which gives it a channel in the LINE Developers Console. LINE's guide to getting started with the Messaging API walks you through both.
From the channel in the LINE Developers Console, you'll then need its:
- Channel ID and Channel secret, from its Basic settings tab. Only developers with the Admin role on the channel can see its secret.
- Channel access token, from its Messaging API tab. Issue a long-lived token, as other kinds of token expire.
Adding the channel
Go to Settings > Channels and click New Channel. LINE is under Social & Chat, or you can type its name in the search box.
Then fill in the form:
| Field | What to enter |
|---|---|
| Channel ID | Your channel's ID |
| Name | A name for the channel in your workspace, e.g. your account's name |
| Channel Access Token | Your long-lived channel access token |
| Channel Secret | Your channel secret |
Click Add Channel.
Finishing setup
Once the channel is added, its configuration page shows a callback URL and a list of IP addresses to add to your channel in the LINE Developers Console, so that messages reach your workspace:
- Set the callback URL as your channel's webhook URL, and turn on Use webhook.
- If you've restricted which servers can call LINE's API, add the IP addresses on your channel's Security tab. LINE explains these security settings.
You can come back to these at any time from the channel's page.
Considerations
LINE Official Accounts can reply automatically to messages on their own. Turn this off in LINE Official Account Manager so contacts only get replies from your flows.
LINE's pricing explains how many messages each plan includes. Once your account has used its allowance for the month, messages it starts won't be sent until the next month or until you change plans.
To learn more about channels in general, see Introduction to Channels.