Dialogflow's LINE Integration allows you to easily create LINE bots with natural language understanding based on the Dialogflow technology.

Setting Up LINE

In order to set up the LINE integration for your agent, you'll need the following:

  • a LINE account
  • the LINE app installed on a mobile device

Creating a LINE Bot

  1. In the LINE mobile app, go to Settings > Account > Email Account Registration to create an account
  2. In a browser, log in to the LINE business center and complete registration
  3. Click Accounts and then Messaging API
  4. Click the Start using Messaging API button
  5. Enter the following information on the page:
    1. Account Name
    2. An image for the account (optional)
    3. Category and Subcategory for your business type
  6. Click the OK button then the LINE@ Manager button
  7. Click Settings > Bot Settings in the menu on the left of the LINE@ Manager tool
  8. Click the Enable API button then the Confirm button
  9. Under Request Settings set Use Webhooks to Allow
  10. Click the Save button
  11. Go to and click on Accounts
  12. Click the LINE Developers button for your account
  13. Scroll down to Channel Access Token and click the Issue button
  14. Make note of the following information:
    1. Channel ID
    2. Channel Secret
    3. Channel Access Token

Setting Up Dialogflow

  1. In Dialogflow, go to Integrations in the left hand menu
  2. Click on the LINE tile
  3. Enter the related values into the following fields:
    1. Channel ID
    2. Channel Secret
    3. Channel Access Token
  4. Copy the Webhook URL
  5. Click the Start button

Continuing LINE Setup

Back in the LINE Developer page, scroll down to Webhook URL and enter the URL copied from Dialogflow. Once you've done this, click the Verify button to send a test call to your agent. If all goes well, you'll see a green "Success" message.


To test your agent, tap on the three horizontal dots on the main screen of the LINE app. Then tap the QR code icon and scan the QR code on the settings page of your bot. This will add your bot the list of conversations.