LINE
Connect a LINE Official Account to WaaPY Lite using a channel access token and a channel secret. WaaPY Lite registers the webhook endpoint with LINE automatically when the connection is created.
- Connect in WaaPY
- LINE console setup
Step 1: Open the Connections page
Go to Connections in the left sidebar. On the Connected Channels page, click the green + Add Connection button in the top-right corner.
Step 2: Select LINE
In the Add Connection modal, select LINE (Connect your LINE Official Account).
Step 3: Enter the LINE credentials
In the Add LINE connection modal, fill in the required details.
- Name: enter a name for the connection. The name must be 2 to 25 characters long.
- Channel access token: paste the long-lived channel access token from the LINE Developers Console. See the LINE console setup tab for where to find it.
- Channel secret: paste the 32-character hexadecimal channel secret from the LINE Developers Console. See the LINE console setup tab for where to find it.
You can also pick an icon and a background color to customize how the connection appears in the workspace.
Click Start login to create the connection.
Step 4: Review the connected bot
When the connection succeeds, WaaPY Lite shows a confirmation panel with the details of the connected bot.
- Bot name: the display name of the LINE Official Account.
- Bot basic ID: the public ID of the bot.
- Bot user ID: the internal user ID of the bot.
- Webhook URL: the URL LINE sends events to. Use the copy button next to it if you need to paste it elsewhere.
If an amber alert appears with the text "LINE accepted the credentials but webhook registration failed.", enable Use webhook in the LINE Official Account Manager and check the webhook URL. See the LINE console setup tab.
Step 1: Create a provider and a Messaging API channel
Sign in to the LINE Developers Console at developers.line.biz/console. Create a provider, then create a channel of type Messaging API under that provider. Creating a Messaging API channel also creates or links a LINE Official Account.
Step 2: Copy the channel secret
Open the channel and go to the Basic settings tab. Copy the Channel secret. The secret is 32 hexadecimal characters. Reissue it only if you suspect it has been compromised.
Step 3: Issue a long-lived channel access token
Open the Messaging API tab. Under Channel access token, issue a Long-lived token and copy it. Reissuing a long-lived token invalidates the previous one.
Step 4: Turn on webhook delivery
Webhook delivery must be enabled in two places, and the two settings stay in sync.
In the LINE Developers Console, open the Messaging API tab and turn on Use webhook under Webhook settings.
In the LINE Official Account Manager, open Settings, then Response settings, and apply these values.
- Webhooks: on
- Auto-reply messages: off
- Greeting messages: off
Turning webhooks on lets WaaPY Lite receive messages. Turning auto-reply and greeting messages off prevents the LINE Official Account from answering before WaaPY Lite does.
Step 5: Connect in WaaPY Lite
Return to the Connect in WaaPY tab and paste the channel access token and channel secret into the form. WaaPY Lite calls LINE to register the webhook URL automatically.
What LINE connections support
- Text messages up to 5000 characters.
- Images, videos, and audio. Documents are not supported on LINE.
- Stickers received from users.
- Flex messages and interactive replies.
- Typebot flows and the AI agent.
Templates are not available on LINE. Templates are a WhatsApp feature, so the Manage templates button does not appear on a LINE connection. See Templates.
Troubleshooting
- "Channel access token is invalid or no longer valid. Check the token in the LINE Developers Console." Reissue a long-lived channel access token in the Messaging API tab and paste the new token into WaaPY Lite.
- "Channel secret format is invalid. It must be 32 hexadecimal characters." Copy the channel secret again from the Basic settings tab and check that it contains 32 hexadecimal characters.
- "This LINE Official Account is already connected in this workspace." Each LINE Official Account can be connected only once per workspace. Check the existing connections before adding it again.
- "LINE accepted the credentials but webhook registration failed." Enable Use webhook in the LINE Official Account Manager, then check the webhook URL shown in WaaPY Lite.
- "This file type is not supported on LINE. Send images, videos, or audio only." Convert the file to a supported type or send it through a WhatsApp connection instead.
- "User unfollowed the official account. Messages can't be delivered." The contact has blocked or unfollowed the LINE Official Account, so messages cannot be delivered.
- "LINE monthly push message quota exceeded. Try again next month or check your LINE plan." The monthly push message quota for the LINE Official Account has been reached. Wait for the quota to reset or review the LINE plan.
- "LINE rate limit reached — retry in a moment." Too many requests were sent in a short time. Wait briefly and try again.