Connect a LINE Official Account
Attach an employee as a LINE Official Account and you can message the employee in LINE and tap approval buttons. One official account serves one employee. It takes about 20 minutes.
Before you start
- A LINE app account, or a mail address dedicated to the employee
- LINE's consoles are not available in Korean, so this guide gives the menu names in English
- You cannot create a Messaging API channel directly in LINE Developers Console. Always create the official account first
- You must be a manager of that employee
1. Sign up for a LINE Business ID
- Open the LINE Business ID sign-up page
- Sign up with a LINE account or a mail address. A mail address dedicated to the employee is recommended
2. Create a LINE Official Account
- When sign-up finishes, you are taken to the official account application form
- Fill in the account name (the name friends see), the business type and so on, then submit. The official account is created as soon as you submit
- In LINE Official Account Manager, check that the account you just created is in the list
3. Turn on the Messaging API
- In Official Account Manager, open the account and turn on the Messaging API under
Settings→Messaging API - If this is your first time, register as a developer (name and mail)
- Pick a provider or create a new one. Your company name works
You cannot change or remove the provider once chosen. When you pick an existing provider, your account must be an Admin of that provider.
4. Get two values
- Sign in to LINE Developers Console with the same account
- Click the provider you chose in step 3. You see a Messaging API channel named after the official account. Open that channel
- Copy the
Channel secretnear the bottom of theBasic settingstab - In the
Messaging APItab, underChannel access token (long-lived)at the very bottom, clickIssueto issue the token and copy it
These two values are the keys to the official account. Do not paste them in chats or documents. If they leak, issue them again in the same place (for the Channel secret,
IssueinBasic settings).
5. Turn off auto-reply and allow group chats
- In the
Messaging APItab, clickEditnext toAuto-reply messages. This takes you to Official Account Manager, where you turn auto-reply off. If you leave it on, both the employee's reply and LINE's auto-reply go out - Turn off
Greeting messages(the welcome message for new friends) the same way - To use it in group chats too, turn on
Allow bot to join group chatsin theMessaging APItab. It is off by default
6. Enter them in DAIOps
- In the left sidebar under Employees, pick the employee, then open the Settings tab at the top → the Integrations chip (the Settings item in the sidebar is your account settings, not this). Under "Channels", click Connect on the LINE row. Its detail screen opens, with "Integrations › (name)" at the top
- Enter the two values from step 4 in the Channel secret and Channel access token fields and click Connect. DAIOps registers the address for receiving messages (the Webhook URL) with LINE automatically
- If the detail screen shows "Turn on Use webhook in the Messaging API tab of LINE Developers Console to receive messages", turn on
Use webhookin theMessaging APItab
You are done when: "LINE Official Account connected" appears, and the detail screen shows "Connected as the (account name) official account".
7. Set what the employee does on this connection
Under What the employee does on this connection at the bottom of the detail screen, choose the scope. Anyone who adds the official account as a friend can message it, so start with Chat and lookups only.
8. Message the account to check
- In the LINE app, add the official account as a friend (find it with the QR code or ID in Official Account Manager)
- Send any message
If the employee replies, the connection is done. In a group, the employee replies only when you mention the official account or reply to it.
Common problems
| Message on screen | What to do |
|---|---|
| The Channel secret doesn't look right. Enter the 32-character value from Basic settings | Enter the 32-character value from Basic settings as it is |
| The channel access token doesn't look right. Enter the full token issued in the Messaging API tab / The channel access token was rejected. Check it again in LINE Developers Console | Enter the whole long token issued in the Messaging API tab |
| The account was verified, but the address for receiving messages couldn't be registered. Please try again shortly | Click Connect again shortly |
| The channel access token changed, so the connection stopped. Connect again with the new token | You issued a new token. Enter it on the detail screen and connect again |
| LINE's auto-reply goes out along with the employee's reply | Turn off auto-reply as in step 5 |
References
- LINE: Getting started with the Messaging API
- LINE: Building a bot (webhook and auto-reply)
- LINE: Channel access token
- LINE: Group chats
Other messengers
Connecting a Telegram bot · Connecting a WhatsApp number · Connecting a KakaoTalk channel chatbot · Connecting a WeChat Work AI bot