LINE
Two Values, Nothing Else
Setting up LINE used to mean issuing an access token yourself and pasting it here. Not any more. The dialog asks for the Channel ID and Channel Secret only, and ProxyAI takes care of the connection from there, including renewing it before it expires.
So: no token to copy, and no renewal date to put in your calendar.
Open Configurations → Channels in the dashboard sidebar, and on the Line card choose Configure.
Create Your LINE Channel
Until you have saved, the dialog shows a five-step walkthrough, Create your LINE channel (about 3 minutes), with an Open LINE Developers button. The work on LINE's side takes about three minutes:
- Sign in to the LINE Developers Console and create a provider, this is the business or brand your account sits under. Choose carefully: a channel can never be moved to a different provider afterwards.
- Inside it, create a channel of type Messaging API.
- Open the channel's Basic settings tab and copy the Channel ID and Channel secret.
- Paste both into ProxyAI and choose Save.
- In LINE Official Account Manager, open Settings → Response settings and turn Auto-reply messages off.
That last step matters. With auto-reply on, LINE sends its own canned message before your bot answers, and your customer gets two replies to one question.
Keep the Channel Secret private, it is what proves messages really came from LINE. If it gets out, issue a new one in the console and save it here.
Webhook Status
The dialog shows a live status, with a Recheck button beside it:
- CONNECTED, everything is set up and messages will reach your bot.
- WEBHOOK OFF, LINE has the connection but the Use webhook switch is off on its side. Turn it on in the LINE Developers Console, under the Messaging API tab. Until you do, LINE throws every message away.
- OTHER ENDPOINT, this LINE channel is pointed at something else, usually another tool or an older setup. Save again to point it back here.
- INVALID TOKEN, LINE refused the values you entered. Copy the Channel ID and Channel secret again from Basic settings.
- UNREACHABLE, LINE did not answer just then. Recheck in a moment.
- PENDING, nothing saved yet.
The same check is on the card's three-dot menu under Recheck, without opening the dialog.
Test It
Add your Official Account as a friend, or open an existing chat, and send a message. The bot answers within a few seconds.
- No reply, status CONNECTED, check you messaged the right account, and that your LINE plan allows the account to send messages.
- No reply, status WEBHOOK OFF, turn Use webhook on in LINE, then Recheck.
- Two replies, Auto-reply messages is still on in LINE Official Account Manager.
If You Set This Up Before
Channels set up the old way keep working, but the access token you pasted then is no longer what ProxyAI uses. Open the dialog, enter the Channel ID and Channel Secret, and save once. You can then cancel the old token in the LINE console.