Channels
LINENew
Connect a LINE Official Account to STINGIM.
Connect a LINE Official Account through the LINE Messaging API so that messages from LINE users arrive in your inbox, and your agents, bots and flows can reply in LINE.
What you need
- A LINE Official Account (free or paid plan) and access to the LINE Developers console.
- A Messaging API channel linked to that Official Account.
- The console permission Integrations in your STINGIM project.
1. Create the Messaging API channel
- In LINE Official Account Manager open Settings → Messaging API and click Enable Messaging API. Choose (or create) a provider. This creates a Messaging API channel in LINE Developers.
- In the LINE Developers console open the channel: - Basic settings → copy the Channel ID and the Channel secret. - Messaging API → Channel access token (long-lived) → Issue, then copy the token.
2. Connect the channel in STINGIM
- In the console go to Settings → Channels → LINE.
- Enter the Channel ID, Channel secret and Channel access token, and click Connect LINE. STINGIM verifies the token with LINE and stores the secret and token encrypted. They are never shown again; leave the fields blank when editing to keep them.
- The connected account shows its Webhook URL (
https://api.stingim.com/v1/channel/line-webhook/<channel-id>). Copy it.
3. Configure the webhook in LINE
In LINE Developers → your channel → Messaging API:
- Webhook URL: paste the URL from step 2, click Update, then Verify. A "Success" result means the signature check passed.
- Turn Use webhook on.
- Turn Webhook redelivery on (recommended; duplicate deliveries are ignored automatically).
- In LINE Official Account Manager → Settings → Response settings, turn off auto-reply messages and greeting messages (set the response mode to Bot). Otherwise LINE answers customers in parallel with your agents.
- Send a message to your Official Account from the LINE app to test.
How messages are handled
| From the customer | In the inbox |
|---|---|
| Text | Text |
| Image, video, audio, file | Downloaded from LINE and stored with the conversation |
| Sticker | Sticker image |
| Location | Text with a map link |
| Quick-reply tap | The button text (flows match the button) |
| Add friend (follow) | A contact is created with the LINE display name |
| Block / unfollow | The contact is marked as unreachable; replies are not sent |
Replies from agents, bots and flows:
- Within about 50 seconds of the customer's last message the reply uses LINE's free reply API. Later replies use the push API, which counts toward your Official Account's monthly message quota. When that quota is used up, the reply is not delivered and the failure is recorded on the message.
- JPG / PNG images are sent as images. Videos, audio and other files are sent as a download link valid for 24 hours.
- Flow questions with buttons are sent as quick replies (up to 13 options); links are added to the text.
- One-to-one chats only: LINE group and multi-person chats are not supported.
Troubleshooting
- Verify fails with 401: the Channel secret saved in STINGIM does not match LINE Developers. Re-enter it.
- The channel shows as abnormal: the channel access token was revoked or reissued. Issue a new long-lived token and update the channel.
- Messages do not arrive: check that Use webhook is on in LINE and the channel is enabled in STINGIM.
Still stuck? Contact support.
Found a mistake? Email [email protected]
