Connect LINE to Dchat
Setup guide · LINE
Answer your LINE Official Account's chats from the Dchat inbox, with the AI replying first. For customers in Japan, Taiwan and Thailand.
Before you start
- Difficulty: Medium
- Time: 20 minutes
- You need: A LINE Official Account with a Messaging API channel
- You need: Admin or owner access to your Dchat workspace
Steps
Collect your LINE values
In the LINE Developers console, open your Messaging API channel. Copy the channel secret, issue a long-lived channel access token, and note the bot's user ID (it starts with U).
Add the channel in Dchat
In Dchat, open Settings → Channels and choose + Add channel. Pick "LINE", enter the bot user ID, and paste the credentials. Saving shows your webhook URL.
{ "ChannelSecret": "...", "ChannelAccessToken": "..." }Set the webhook in LINE
In the Messaging API settings, paste the webhook URL Dchat showed and turn on Use webhook. It has this form:
https://api.dchat.com/api/inbound/line/{channel id}Send a test message
Add your account as a friend and send it a message. It appears in your Dchat inbox, and the AI replies if AI is on for your workspace. Turn off LINE's own auto-reply messages so customers don't get two answers.
What goes in each field
ChannelSecret: From the channel's basic settings; Dchat checks LINE's signature with it.ChannelAccessToken: A long-lived channel access token from the Messaging API tab.
Good to know
- One-to-one chats only; text, photos and files (up to 5 MB) are handled.
- Replies are up to 5,000 characters with up to 13 quick replies, sent with LINE's push API.
- Your workspace needs at least one enabled site; new workspaces have one already. Messages are dropped while every site is switched off.
- Credentials are encrypted when you save them and are never shown again. To change one, paste the full credentials again.
LINE sends your bot's user ID with every message, so if you're unsure of it, the LINE Messaging API's bot info call returns it.