LINE Connector Setup Guide
This article describes how to set up the LINE connector.
Requirements
The LINE connector requires the following:
- LINE Channel Access Token. For more information, see Messaging API overview.
Supported Actions
Action Name | Trigger on Audience | Trigger on Streams |
---|---|---|
Push Message - Text | ✓ | ✗ |
Push Message - Image | ✓ | ✗ |
Push Message - Video | ✓ | ✗ |
Push Message - Audio | ✓ | ✗ |
Push Message - Location | ✓ | ✗ |
Push Message - Sticker | ✓ | ✗ |
Configure Settings
Go to the Connector Marketplace and add a new LINE Connector. Read the Connector Overview article for general instructions on how to add a Connector.
To configure your vendor, follow these steps:
-
In the Configure tab, provide a title for the Connector instance.
-
Enter the channel access token that you set up with LINE for your account.
-
Provide additional notes about your implementation.
Action Settings - Parameters and Options
Click Next or go to the Actions tab to set up actions and trigger them.
This section describes how to set up parameters and options for each action.
Action - Push Message - Text
Parameters
Parameter | Description |
---|---|
Contact ID | (Required) This parameter is the ID received from the webhook that is configured in the Channel Console in LINE Business Center. When a user performs an action such as adding an account or sending a message, an HTTPS POST request is sent to the webhook URL. |
Message Data | (Required) The content of the message to send to the user. This field is limited to 2,000 characters, supports Unicode emoticons, and supports the Tealium template engine. |
Template Variables | These fields map attributes to variable names that are used in the message data. Name nested template variables with dot notation. For example, items.name . For more information, see Template Variables Guide. |
Action - Push Message - Image
Parameters
Parameter | Description |
---|---|
Contact ID | (Required) This parameter is the ID received from the webhook that is configured in the Channel Console in LINE Business Center. When a user performs an action such as adding an account or sending a message, an HTTPS POST request is sent to the webhook URL. |
Original Content URL | (Required) The URL of the image to send to the user. The URL must use HTTPS and should not exceed 1,000 characters. The image must be a JPEG with maximum dimensions of 1,024 pixels by 1,024 pixels and a maximum size of 1 MB. |
Preview Image URL | (Required) The URL of the preview image to send to the user. The URL must use HTTP and should not exceed 1,000 characters. The image must be in JPEG format with a maximum dimension of 240 pixels by 240 pixels and a maximum size of 1 MB. |
Action - Push Message - Video
Parameters
Parameter | Description |
---|---|
Contact ID | (Required) This parameter is the ID received from the webhook that is configured in the Channel Console in LINE Business Center. When a user performs an action such as adding an account or sending a message, an HTTPS POST request is sent to the webhook URL. |
Original Content URL | (Required) The URL of the video to send to the user. The URL must use HTTPS and should not exceed 1,000 characters. The video must be in MP4 format with a maximum duration of one minute and a maximum size of 10 MB. |
Preview Image URL | (Required) The URL of the preview image to send to the user. The URL must use HTTP and should not exceed 1,000 characters. The image must be in JPEG format with a maximum dimension of 240 pixels by 240 pixels and a maximum size of 1 MB. |
Action - Push Message - Audio
Parameters
Parameter | Description |
---|---|
Contact ID | (Required) This parameter is the ID received from the webhook that is configured in the Channel Console in LINE Business Center. When a user performs an action such as adding an account or sending a message, an HTTPS POST request is sent to the webhook URL. |
Original Content URL | (Required) The URL of the audio to send to the user. The URL must use HTTPS and should not exceed 1,000 characters. The audio must be be in M4A format with a maximum duration of one minute and a maximum size of 10 MB. |
Duration | (Required) The length of the audio file in milliseconds. |
Action - Push Message - Location
Parameters
Parameter | Description |
---|---|
Contact ID | (Required) This parameter is the ID received from the webhook that is configured in the Channel Console in LINE Business Center. When a user performs an action such as adding an account or sending a message, an HTTPS POST request is sent to the webhook URL. |
Title | (Required) The name of the location to send to the user. |
Address | (Required) The address of the location to send to the user. |
Latitude | (Required) The latitude of the location to send to the user. |
Longitude | (Required) The longitude of the location to send to the user. |
Action - Push Message - Sticker
Parameters
Parameter | Description |
---|---|
Contact ID | (Required) This parameter is the ID received from the webhook that is configured in the Channel Console in LINE Business Center. When a user performs an action such as adding an account or sending a message, an HTTPS POST request is sent to the webhook URL. |
Package ID | (Required) The ID of the package to which a sticker belongs. |
Sticker ID | (Required) The ID of the sticker to send to the user. |
Vendor Documentation
- LINE Developers - Messaging API
- LINE API Reference - Webhooks
- LINE API Reference - Push Message
- LINE API Reference - Send Message Object (Text, Image, Sticker, etc.)
Additional References
This page was last updated: April 29, 2024