Overview

To connect a LINE official account (LINE OA) with BotBonnie:

  • If you do not have a LINE official account, create a LINE OA first.
  • You need to have a LINE Developers account.
    • If you do not have a LINE Developers account, create an account first.
    • If your company already has a LINE OA with Messaging API channel and LINE Login channel, your LINE Developers account needs to have admin access to these channels.

Follow the instructions below to connect your LINE OA to BotBonnie.


Connect a LINE OA to BotBonnie

  1. Click on the app launcher icon next to your project name and go to Common settings > Channels.


  2. In the LINE Official Account section, click + Connect LINE OA. If the LINE Official Account section isn't visible, make sure that you selected LINE in the Filter by platform dropdown.

Part I. Connect Messaging API channel

  1. Log in to LINE Developers console, go to the provider of your LINE OA, and check if there's already a Messaging API channel.
  • If you don't see a Messaging API channel under the provider, see how to create a Messaging API channel.
  • If there's a Messaging API channel, make sure you have admin access to the channel. You can skip 1. Connect a Messaging API channel > ① Create Messaging API channel on BotBonnie Console.
  1. On LINE Developers console, click the Messaging API channel and go to the Basic settings tab.
    1. Find Channel ID, click the copy icon, paste the Channel ID on BotBonnie Console under 1. Connect a Messaging API channel > ② Set up channel ID, and click Continue.

ii. Find Channel Secret, copy the Channel Secret, paste it on BotBonnie Console under 1. Connect a Messaging API channel > ③ Set up channel secret, and click Continue.

  1. On LINE Developers console, go to the Messaging API tab in the Messaging API channel.
    1. Find the Channel access token, click Issue if empty, copy the channel access token, paste it on BotBonnie Console under 1. Connect a Messaging API channel > ④ Set up channel access token, and click Continue.
  1. Reload the LINE Developers console.
  2. Find Webhook settings, and enable Use webhook. Click Continue on BotBonnie Console.
  1. Log in to LINE Official Account Manager, select the LINE OA you are setting, click Settings and click Response setting.
    1. Enable Webhooks.
    2. Disable Chat, Greeting message, and Auto-response messages.
  1. Return to the BotBonnie console. In the final step, you'll be shown the option to integrate with other Appier products, such as AIQUA and AiDeal. To proceed with these integrations, please contact your customer success manager. Otherwise, click Continue to part 2.

Part II. Connect LINE Login channel

  1. On LINE Developers console, go to the provider of your LINE OA, and check if there's already a LINE Login channel.
  • If you don't see a LINE Login channel under the provider, see how to create a LINE Login channel.
  • If there's a LINE Login channel, make sure you have admin access to the channel. You can skip 2. Connect a Login channel > ① Create Login channel on BotBonnie Console.
  1. On LINE Developers console, click the LINE Login channel and go to the Basic settings tab.
    1. Find the Channel ID, copy the channel ID, paste it on BotBonnie Console under 2. Connect a Login channel > ④ Set up channel ID, and click Continue.

ii. Find Channel Secret, copy the Channel Secret, paste it on BotBonnie Console under 2. Connect a Login channel > ③ Set up channel secret, and click Complete.

  1. If the login channel is not published yet, scroll up to the top of the LINE Login channel, click Developing and click Publish.
  1. On BotBonnie console, click Connect next to your LINE OA.

You will see a "Connected" status displayed in green.


Test your connection

  1. From the left menu, go to Content > AI rules, then click + Add AI Rule.
  1. Expand the new AI rule and complete the following settings.
    1. Enter a keyword under User input (e.g. test). The keyword should be something your users are unlikely to enter when they send a message to your LINE OA.
    2. Under Condition, select Exact match.
    3. Under Bot reply, select an advanced kit, such as a lucky wheel, daily check-in, or scratch-off kit.
    4. Click Deploy bot.
  1. Send a message to your LINE OA that exactly matches the keyword in the AI rule and you should see the advanced kit you selected as the reply.

  1. Run the advanced kit to make sure it works.

If errors occur while running the advanced kit, the LINE Login channel might not be connected properly. See how to troubleshoot.


Troubleshooting

Here are some common issues you might run into while setting up your LINE OA with BotBonnie.

I can't find the Messaging API Channel

If you cannot find the Messaging API channel under the provider on LINE Developers console, log into LINE Official Account Manager and go to Settings > Messaging API to check if a Messaging API channel is already created for the LINE OA.

If the Messaging API channel is enabled already but not visible on LINE Developers console, it's possible that you do not have access to it. Check with your team to request access to the Messaging API channel. To see how to grant channel access, refer to LINE's documentation.

If Messaging API is not enabled, click Enable Messaging API and select the provider of the LINE OA to enable. This creates a Messaging API channel for your LINE OA.


I can't find the LINE Login Channel

If you cannot find the LINE Login channel under the provider on LINE Developers console, click Create a new channel and select LINE Login to create a login channel.

Set App types to Web app and complete all other settings.

Click Create.


I can't click the Complete button on BotBonnie Console

If you have reached the final step on BotBonnie Console and the Complete button is grayed out, this means that some steps are not completed yet.

Make sure both parts are marked as 100% completed.

Each step should have a green checkmark next to it. If not, go back to that step, make sure the field is entered correctly and click Continue.


Your LINE OA is connected to another BotBonnie bot

If the LINE OA is connected to another bot, you can click Connect to connect it to the current bot.


Advanced kits and growth tools are not working properly

In order to use advanced kits or growth tools with the LINE OA, the LINE Login channel needs to be connected to the bot.

  • Make sure the channel ID and channel secret of the LINE Login channel are entered correctly. To check the channel settings you entered, go to Integrations > Channel, click the menu icon next to the LINE OA, and select Edit.
  • Make sure the LINE Login channel you connected is under the same provider as the Messaging API channel.

If your issues cannot be resolved, contact Appier Support for assistance.