Connect the clinic's LINE account
For: Owner
On this page
The clinic owner connects the clinic's LINE Official Account to Porter from "Settings", then "Integrations". It takes about 5 minutes. You need to be an admin of the LINE account, and you need a computer, because the LINE Developers Console is easiest on a big screen.
Connecting moves the account's webhook to Porter. If another chatbot or system gets the account's messages today, it stops getting them.
Connect it
- Open LINE Official Account Manager, go to Settings, then Messaging API, and turn on Messaging API. If LINE asks for a provider, choose or create one in the clinic's name. LINE does not let you change it later.
- Open the LINE Developers Console and choose the clinic's channel. On the Basic settings tab, copy the "Channel secret".
- On the Messaging API tab, press Issue under "Channel access token (long-lived)" and copy the token.
- In Porter, open "Settings", then "Integrations", and press Connect LINE. Paste both values and press "Connect". Porter checks both with LINE and points the account's webhook at Porter. You never need to type the webhook address yourself.
- Back on the Messaging API tab, make sure "Use webhook" and "Webhook redelivery" are on.
- In LINE Official Account Manager, under Response settings, keep webhooks on and turn off the greeting message and auto-response messages. Otherwise patients get LINE's canned replies as well as yours.
When Porter shows "LINE is connected.", it also says what LINE reported about the webhook. If it asks you to turn on "Use webhook", do that and press "Check again". Then send the clinic's LINE account a message from a personal phone and look for it in Porter's chat list.
Reconnect LINE
If the Integrations page shows LINE as not working because Porter's access stopped, the owner can press Reconnect LINE on that account. Issue a new long-lived token on the Messaging API tab, copy the channel secret again, paste both and press "Reconnect". Porter keeps the account's chats and patients and only swaps in the new values.
Copy both values from the same account's channel. Porter refuses values from a different LINE account than the one you are reconnecting.
Something went wrong
- "The channel secret is 32 letters and numbers. Copy it again from Basic settings." The pasted secret is cut short or has extra text. Copy it again.
- "LINE didn't accept this access token. Issue a new long-lived token on the Messaging API tab and paste it." The token was mistyped, reissued since, or is a short-lived one.
- "This secret is from a different LINE channel than the token. Copy both from the same channel."
- "This LINE account is connected to another Porter clinic. Contact Porter support." Ask through Help. Porter support can tell you which clinic holds it.
- "LINE didn't let Porter set this account's webhook. Nothing was saved. Check that Messaging API is on for the account, then try again."
- "Couldn't reach LINE. Nothing was saved. Try again in a minute."
Nothing is saved when you see one of these, so you can fix it and press "Connect" again. Porter clears both boxes each time, so paste the values again.
Only the owner sees the Connect LINE and Reconnect LINE buttons. Paste the channel secret and access token only into this form in Porter. Porter support never asks you to send them in a chat or email.
If messages stop arriving later, see LINE messages not reaching Porter.