LINE in a project: connecting a LINE Official Account

SENSEVER

The official Sensever channel: guides and API documentation for Chat, Requests, Flow, Studio, bots and messaging channels.

5 min czytania

LINE in a project: connecting a LINE Official Account

Messages sent to your LINE Official Account arrive in the project's requests, and replies go back to the customer in LINE. Everything runs on your own account; nothing is needed from Sensever's side.

Note: LINE counts the messages you send. An answer within about a minute of the customer's message is free; a later reply comes out of your account's monthly message quota. The size of the free quota and the paid plans depend on your country and plan — see your plan in LINE Official Account Manager.

What you need

  • A LINE Official Account. You can create one at entry.line.biz.

  • Admin rights on that account.

  • Owner or admin rights in the Sensever project.

Step 1. Turn on the Messaging API

  1. Open LINE Official Account Manager and choose your account.

  2. Settings → Messaging API → Enable Messaging API. Choose or create a provider (any name, for example your company name) and confirm.

  3. Open LINE Developers Console → your provider → the channel with your account's name.

Step 2. Channel secret and access token

  1. On the "Basic settings" tab, copy the Channel secret (32 letters and digits).

  2. On the "Messaging API" tab, under "Channel access token (long-lived)", click "Issue" and copy the token.

Step 3. Response settings

In LINE Official Account Manager → Settings → Response settings:

  • Webhooks — on. Without them LINE passes nothing to Sensever, and Sensever refuses to connect the account until they are on.

  • Chat — on. Without it, LINE marks messages as read on its own, and the customer doesn't see when your team has really read them.

  • Auto-response messages — off, otherwise LINE answers the customer by itself on top of your team.

  • Greeting message — as you like; it is sent when someone adds the account as a friend.

The names of these settings may differ slightly between versions of LINE Official Account Manager.

Step 4. Connect the account in Sensever

  1. Projects → the project → "Channels" → the "Messaging channels" block.

  2. On the grey LINE tile, click "Connect".

  3. Paste the channel access token and the Channel secret, and choose a department or leave "Shared queue".

  4. Click "Connect". Sensever sets the webhook address in LINE on its own — there is nothing to paste back. If the account already sends its webhook to another service, Sensever asks before taking it over.

Step 5. Check it

Add your account as a friend from a personal LINE account and send a message. It appears in the project's requests with the customer's LINE name and picture, and a LINE button appears in the widget on your site (if "Show in widget" is checked).

What is passed

  • From the customer: text, photos, videos, voice messages, files and locations. Stickers show as "[LINE sticker]". When the customer edits a text message in LINE, the request shows the edited text.

  • To the customer: text, photos (JPEG or PNG up to 10 MB), locations, "typing…" and read marks. Videos, audio and other files are sent as a link.

  • LINE has no reactions, and doesn't let you edit or delete a sent reply.

  • The customer's language from their LINE profile is saved in the request.

  • Only one-to-one chats are passed; group chats with the account are not.

The free minute and the quota

You can reply at any time — there is no reply window. An answer within about a minute of the customer's message (for example, from the AI assistant or an agent who is quick) uses LINE's free reply. Any later answer uses the account's monthly message quota.

When the quota runs out, a late reply shows "Not sent: the LINE account's message quota for this month is used up", and the Sensever Channels bot tells the project owner and admins once. Answers within a minute still go. The alert closes by itself with the next message LINE accepts — after you upgrade the plan or a new month starts.

Possible errors

Message

What to do

The messenger didn't accept the token

The token wasn't copied in full or was reissued. Issue a new one (step 2) and paste it via the gear

The Channel secret looks wrong

Copy the Channel secret (32 letters and digits) from the "Basic settings" tab

LINE signs messages with a different Channel secret

The Channel secret was reissued. Click the gear, then × next to the secret, and paste the current one

LINE has webhooks turned off for this account

Turn on Webhooks in Response settings (step 3) and connect again

This bot already receives messages in another service

Tick "Switch this bot from another service to Sensever Chat" in the form and connect again — the other service stops getting messages

The LINE account's message quota for this month is used up

Upgrade the plan in LINE Official Account Manager, or wait for the next month; answers within a minute still go

General channel settings — department, showing in the widget, button order, notifications — are described in the article "Project messaging channels: messengers in Requests".

Komentarze

Autorzy