Docs menu

LINE

Connect your business's LINE Official Account to let the same bot reply to customers on LINE, using the same scripts and buttons as on your website. No code is needed.

LINE is included in the Premium plan.

What you get

  • The bot replies on LINE using the scripts you publish in the editor. Each new version goes live on your website, your app and LINE at the same time.
  • Buttons appear as quick replies below the bot's message.
  • Requests from LINE appear in the same Requests list as requests from your website. Team replies are sent to the customer on LINE.
  • At the end of a request, the customer can rate the reply.
  • The bot replies in the language of the customer's LINE app and switches if the customer writes in another language the bot supports.

What you need

  • A LINE Official Account for your business. It doesn't need to be verified.
  • A Kavchat workspace on Premium with at least one published version of the bot.

Connect your account

  1. In LINE Official Account Manager, open Settings, then Messaging API, and click Enable Messaging API.
  2. In LINE Developers, open the channel that was created. Copy the Channel secret from the Basic settings tab.
  3. In the Messaging API tab of the same channel, issue a long-lived Channel access token and copy it.
  4. In the Kavchat dashboard, open the bot's Channels tab, paste both values into the LINE card and click Connect. Kavchat sets the webhook URL in LINE for you.
  5. Back in LINE Official Account Manager, open Settings, then Response settings, and turn on Webhooks.
  6. On the same screen, turn off Greeting message and Auto-response so customers don't receive two replies.

To test the connection, send a message from your phone to your business's LINE account. The card shows when the last message from LINE was received.

Test before going live

When the bot's audience is set to test users only, the bot replies on LINE only to people who have joined as testers. In the LINE card, create a tester code, then send it from your phone as a message to your business's LINE account. Each code is valid for 10 minutes and can be used once.

LINE message quota

LINE limits the number of messages an Official Account can send each month based on the account's LINE plan.

  • The bot's replies use LINE's Reply API, so they don't count toward the quota.
  • Replies your team sends later are push messages and do count toward the quota.

When the quota is reached, the card shows a warning. Your team's replies aren't sent until you increase the quota in LINE Official Account Manager. The bot keeps replying.

Troubleshooting

  • The bot doesn't reply: check that Webhooks are turned on in Response settings, that the bot is turned on in the LINE card, and that its audience includes the person sending the message.
  • Customers receive two replies: turn off Greeting message and Auto-response in Response settings.
  • "Check that the token is still valid": the Channel access token was revoked or reissued in LINE Developers. Click Replace credentials and paste the new token.
  • One LINE account, one bot: a LINE channel sends its webhook to only one address. Connecting the account to Kavchat replaces any other bot connected to it.

To disconnect the account, click Disconnect in the LINE card. Requests you already received are kept.