Catalog
Outline
Publish app to LINE
You can publish the application built on the Coze platform to LINE to communicate with people through the LINE app.
Prerequisites
  • A LINE account.
  • The app to be published must contain at least one Chatflow.
  • The publisher must be the application owner, who has the required publish permissions. For more information, see Collaborate with team members.
  • Caution
    When publishing an application to LINE, only the specified chatflow within the application will be published.
Step 1: Create a LINE channel
Before publishing your application to LINE, you have to create a channel using LINE Developers Console and obtain required configurations.
    Log in to the LINE Developers Console.
    On the Console home page, click Creating a new provider, and then enter the provider name.
    On the provider page, click the Channels tab and then click Create a Messaging API channel. Enter requested information for your channel.
  • Once you have finished your channel settings, you'll be directed to your channel's Basic settings page.
    Click the Basic settings tab, copy and save the channel ID.
  • 图片
    Click the Basic settings tab and scroll to the bottom of the page, save and copy the channel secret.
  • 图片
    Click the Messaging API tab to open the Messaging API settings page.
  • 图片
    Scroll to the bottom of the Messaging API settings page, click the Issue button under Channel access token (long-lived) option, then copy and save the generated channel access token.
  • 图片
Step 2: Connect to LINE channel
After obtaining the relevant configuration of the LINE channel, the created application can be published to LINE on the Coze platform.
    Log in to Coze.
    In the left navigation bar, select Workspace, and choose either your personal workspace or team workspace from the workspace list at the top of the page.
    On the Development page, select the target project and go to the build page of the app.
    In the upper right corner of the page, click Publish to navigate to the publish page.
    Enter the version information on the publish page :
  • Version: Required. The value must be a unique version number that is never used for the app.
  • Changelog : Optional. Describe the updates in this version.
    In the Publish to > Publish to social platforms setting, select the chatflow you want to publish in Message processing chatflow. When users send messages to the LINE application, the specified chatflow will be invoked to receive and process the user's message.
    Find the LINE channel and click Configure.
    Enter the obtained channel ID, channel secret and channel access token.
    Copy the Webhook URL and click Save.
    Select the LINE channel and click Publish.
Step 3: Configure LINE webhook settings
After obtaining the webbook URL, configure the webhook setting on the LINE Developers Console.
    Log in to the LINE Developers Console.
    Select the channel you created.
    Click the Messaging API tab, click the Edit button next to the Webhook URL field, and then enter the copied webhook URL.
    Click Verify. A success message will appear if the configuration is correct.
  • 图片
    Turn on the Using Webhooks option.
  • 图片
Step 4: Add your application to LINE
Once you have completed these configurations, your application is ready to communicate with users on LINE. Follow the steps below to add your application to LINE conversation list:
    Login to the LINE Developers Console, find the created channel.
    Click the Messaging API tab and find the application's QR code.
  • 图片
    Using the mobile device with the LINE app installed, scan the QR code and select the displayed link.
  • Now you can chat with your application in LINE app.
    When you start testing the application, you may receive unexpected messages that are not configured in your application. Refer to the following steps to avoid sending these messages:
    Go to the LINE Developers Console and select your channel. Then click the Messaging API tab.
    Scroll down to the LINE Official Account features area, click the Edit button next to Auto-reply messages option.
    In the pop-up Response settings page, set Auto-response to Disabled.
  • 图片
Do the documentation help you?

By clicking "Got it", you agree that Coze can store cookies on your device and disclose information in accordance with our Cookies Policy.

rangeDom