Create a LINE send account in the Chat App Message Service console and complete the LINE Official Account authorization to start sending LINE messages.
Prerequisites
Alibaba Cloud account registration and enterprise identity verification have been completed.
Chat App Message Service has been activated.
An LINE Official Account has been created.
A Provider and a Messaging API Channel are created in the LINE Developers Console.
Procedure
Step 1: Create a send account
Log on to the Chat App Message Service console.
In the navigation pane on the left, choose OTT Service > LINE.
Click New Send Account.
Enter the basic information for the send account:
Send account name (Required): A name to identify the send account in the console.
Description (Optional): A description of the account. The description can be up to 150 characters long.
Click Next.
Step 2: Create a provider and a channel
The authorization requires a Provider and a Messaging API Channel. Create both in the LINE Developers Console before you continue.
Create a Provider. If you already have a Provider, skip this step.
Click Create a new provider.
Enter a Provider name. Use your company or brand name.
Click Create.
Create a Messaging API Channel under the Provider.
On the Provider page, click Create a new channel.
Select the Messaging API channel type.
Enter the Channel information and click Create.
Record the basic information of the Channel. You need this information in the following steps.
Review the LINE Official Account rules and select a plan that matches the scale of your business. To view or purchase a plan, go to LINE Official Account Manager.
You do not need to specify a plan when you bind the account in the Chat App Message Service console. The system detects your current plan after the binding is complete.
Step 3: Obtain the configuration information
The authorization wizard uses the credentials of your Messaging API Channel. Obtain the credentials in the LINE Developers Console and then enter them on the credential configuration page of the wizard.
In the LINE Developers Console, open the Messaging API Channel that you created.
On the Basic settings tab, obtain the following information:
Channel ID: the numeric identifier of the Channel.
Channel Secret: a 32-character hexadecimal string.
On the credential configuration page of the wizard, enter the Channel ID and the Channel Secret that you obtained. Both fields are required.
Click Next to go to the webhook configuration page.
Step 4: Configure the webhook
A webhook receives the message events and receipt notifications that the LINE platform pushes. In this step, the system writes the webhook URL to the LINE Developers Console for you.
In the LINE Developers Console, open the Channel that you want to authorize. On the Messaging API tab, turn on Use Webhook, Webhook redelivery, and Error statistics aggregation. If these switches stay turned off, you cannot receive upstream messages after the configuration is complete.
Return to the webhook configuration page of the wizard and click the automatic webhook configuration button. The system configures the LINE webhook and verifies it.
NoteBefore you start the automatic configuration, make sure that the Channel ID and the Channel Secret are correct and that the webhook switches are turned on in the LINE Developers Console. Otherwise, the configuration fails.
If the webhook verification fails, check the following items:
Whether network connectivity is normal.
Whether switches such as Use Webhook are turned on in the LINE Developers Console.
If the webhook is not verified, the console displays a warning. You can continue anyway or verify the webhook again.
After the verification passes, click Next to go to the confirmation page.
Step 5: Confirm the configuration
The confirmation page lists all configuration information. Check the following items:
Configuration item | Value |
Channel Name | The name of your LINE Official Account. |
Channel ID | The Channel ID that you entered. |
Channel Secret | The Channel Secret that you entered. The value is hidden. |
Channel Access Token | The long-lived channel access token that the system obtains. The value is hidden. |
Webhook URL | The webhook URL that the system generates. |
Webhook status | Verified or Pending verification. |
After you confirm that the information is correct, click Complete to save the configuration.
Step 6: Complete the authorization
After the authorization succeeds, the page displays the Channel Name, the Channel ID, and other configuration information, together with the plan quota usage of your LINE Official Account:
Quota information | Description |
Monthly quota | The total quota of the plan. If the plan has an unlimited quota, Unlimited is displayed. |
Used this month | The number of messages that are sent in the current month. |
Remaining | The number of messages that you can still send in the current month. This item is not displayed for a plan with an unlimited quota. |
Take note of the following items when you use the plan quota:
The quota data comes from the LINE Official Account API. The LINE platform deducts the actual number of messages.
Chat App Message Service is a message sending tool. It does not control or affect the balance of your LINE plan.
The LINE platform determines whether the quota is deducted after a message is sent.
To view plan details or upgrade a plan, go to LINE Official Account Manager.
After the authorization is complete, design message templates and start sending messages to your users.
Click Go to Management to open the send account details page. On this page, you can perform the following operations:
View the data panel.
Manage the LINE Official Account.
Design message templates.
Send messages.
View data reports.
Manage materials and variables.
To go back to the LINE service overview page, click Return to Account List.
Usage notes
A webhook verification failure does not affect message sending, but you cannot receive user replies, message receipts, or group information. Complete the webhook verification before you start to use the send account.
The quota data of a LINE Official Account is reset on the first day of each month. Plan your message sending accordingly.