Customers add your LINE Official Account as a friend and chat with it. With the Messaging API turned on, those chats arrive in the PALMS inbox and your team answers from there. You paste two codes from LINE once; PALMS checks them and sets everything else. About 10 minutes.
Before you start
- A LINE Official Account for your business. It’s free to create in LINE Official Account Manager.
- Admin access to that account, and the LINE Business ID (or LINE account) you sign in with.
- A computer: the LINE Developers console is easier to use on a big screen.
Turn on the Messaging API
- Open LINE Official Account Manager and choose your account.
- Go to Settings → Messaging API and click Enable Messaging API.
- Choose a provider (usually your company name) or create one, then confirm. The provider can’t be changed later.
LINE creates a Messaging API channel with your account’s name in the LINE Developers console.
Let PALMS answer
Still in LINE Official Account Manager, open Settings → Response settings:
- Turn Webhooks on.
- Turn Auto-response messages off, so customers get your team’s answers instead of LINE’s automatic ones.
- The Greeting message (sent when someone adds you as a friend) can stay on.
You don’t need to type the webhook address: PALMS sets it in the next step.
Paste the two codes
- Open the LINE Developers console, choose your provider, then the channel with your account’s name.
- Basic settings tab: copy the Channel secret.
- Messaging API tab: at the bottom, click Issue next to Channel access token (long-lived) and copy it.
- Paste both in PALMS and click Connect.
PALMS checks the codes with LINE, shows your account’s name and picture, stores the codes encrypted and sets the webhook address in LINE.
Test your connection
- Add your account as a friend: scan its QR code or open its link (
https://line.me/R/ti/p/@your-id). - Send the code PALMS shows (for example
PALMS-4821). - PALMS answers in LINE and the step shows a success tick.
What works on LINE
- Text, images, videos, audio, files, stickers and locations arrive in the inbox. You can send text, images, videos and audio.
- No reply window: you can answer friends at any time.
- Message quotas: messages you send count towards your LINE plan’s monthly quota, which depends on your country and plan. Check it in LINE Official Account Manager → Usage.
- Only people who added your account as a friend can be messaged; if they block it, your messages fail with an explanation.
Troubleshooting
| What you see | Why | What to do |
|---|---|---|
| The codes are refused | One of them was copied partly, or the token was reissued since | Copy both again from the console (Issue a new token if needed) |
| Connected, but no messages arrive | Webhooks is off in Response settings | Turn it on, then send another message |
| Customers get LINE’s automatic answer too | Auto-response messages are still on | Turn them off in Response settings |
| “Needs a public address” | This PALMS server isn’t reachable over https | Ask your PALMS administrator to set the public URL |
Reconnect
If the token was revoked, issue a new one in the console and use Reconnect on the channel. PALMS checks it belongs to the same LINE account; conversations stay as they are.