Skip to main content

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

  1. Open the LINE Business ID sign-up page
  2. 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

  1. When sign-up finishes, you are taken to the official account application form
  2. 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
  3. In LINE Official Account Manager, check that the account you just created is in the list

3. Turn on the Messaging API

  1. In Official Account Manager, open the account and turn on the Messaging API under Settings → Messaging API
  2. If this is your first time, register as a developer (name and mail)
  3. 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

  1. Sign in to LINE Developers Console with the same account
  2. Click the provider you chose in step 3. You see a Messaging API channel named after the official account. Open that channel
  3. Copy the Channel secret near the bottom of the Basic settings tab
  4. In the Messaging API tab, under Channel access token (long-lived) at the very bottom, click Issue to 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, Issue in Basic settings).

5. Turn off auto-reply and allow group chats

  1. In the Messaging API tab, click Edit next to Auto-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
  2. Turn off Greeting messages (the welcome message for new friends) the same way
  3. To use it in group chats too, turn on Allow bot to join group chats in the Messaging API tab. It is off by default

6. Enter them in DAIOps

  1. 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
  2. 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
  3. If the detail screen shows "Turn on Use webhook in the Messaging API tab of LINE Developers Console to receive messages", turn on Use webhook in the Messaging API tab

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

  1. In the LINE app, add the official account as a friend (find it with the QR code or ID in Official Account Manager)
  2. 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 screenWhat to do
The Channel secret doesn't look right. Enter the 32-character value from Basic settingsEnter 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 ConsoleEnter 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 shortlyClick Connect again shortly
The channel access token changed, so the connection stopped. Connect again with the new tokenYou issued a new token. Enter it on the detail screen and connect again
LINE's auto-reply goes out along with the employee's replyTurn off auto-reply as in step 5

References

Other messengers

Connecting a Telegram bot · Connecting a WhatsApp number · Connecting a KakaoTalk channel chatbot · Connecting a WeChat Work AI bot