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.
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.
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:
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.