LINE
The Line modules enable you to monitor, publish or update posts, photos and videos in your Line account.
Getting Started with Line
Prerequisites
A Line app installed
A developer account in the LINE Developers console
Created a dedicated Messaging API channel for your bot
Caution
The module dialog fields that are displayed in bold (in the Make scenario, not in this documentation article) are mandatory!
Connecting Line to Make
To connect your Line account to Make follow these steps:
1. Log in to the LINE Developers console.
2. Create a new provider.
3. Click the Create a Messaging API channel.
4. Provide the required information and click Create to create a channel.
5. In the channel created above, open the Messaging API tab and scan the QR code using your LINE app to add the channel as a friend.
6. In the Messaging API tab, scroll down to the Channel access token section and click the Issue button () to generate the Channel Access Token.
7. Navigate to the Basic settings tab, scroll down and copy the provided User ID.
8. Go to Make and open the LINE module's Create a connection dialog.
9. Enter the Channel access token you have generated in step 6 and the User ID copied in step 7 to respective fields and click the Continue button to establish the connection.
The connection has been established. You can proceed with setting up the module.
Message
Watch Events
Triggers when an event occurs.
The webhook URL needs to be generated in Make and then added to LINE's developer settings.
1. Add the Watch New Activity module to your Make scenario.
2. Generate and copy the webhook URL.
3. Log in to your LINE Developers account.
4. Navigate to Providers > {your provider} > {your messaging API channel} > Messaging API tab.
5. Enter the webhook URL copied in step 2 above to the Webhook URL field and click Update.
6. Activate the Use webhook option.
Now, every time an event occurs, the Watch Events module in your Make scenario is triggered.
Send a Reply Message
Sends a reply message in a response to an event from user, group, or room.
Connection | |||||||||||||||||||||||||||||||||||||||
Reply Token | Map the reply token from the Watch Events module. Because the reply token becomes invalid after a certain period of time, responses should be sent as soon as a message is received. Reply tokens can only be used once. | ||||||||||||||||||||||||||||||||||||||
Messages | Set the messages you want to send as reply. Max 5 messages.
| ||||||||||||||||||||||||||||||||||||||
Notification Disabled | Enable this option to disable a push notification to the user when the message is sent. |
Send a Push Message
Sends a push message to a user, group, or room at any time.
Connection | |||||||||||||||||||||||||||||||||||||||
To | Map the ID of the target recipient. Use a User ID, Group ID, or Room ID returned in the | ||||||||||||||||||||||||||||||||||||||
Messages | Set the messages you want to send. Max 5 messages.
| ||||||||||||||||||||||||||||||||||||||
Notification Disabled | Enable this option to disable a push notification to the user when the message is sent. |
Send a Broadcast Message
Sends push messages to multiple users at any time.
Connection | |||||||||||||||||||||||||||||||||||||||
Messages | Set the messages you want to send as reply. Max 5 messages.
| ||||||||||||||||||||||||||||||||||||||
Notification Disabled | Enable this option to disable a push notification to the user when the message is sent. |
Download a Message Attachment
Downloads images, videos, audio, and files sent by users.
Connection | |
Message ID | Enter (map) the ID of the message you want to download an attachment from. The message must contain image, video, audio, and file. Text, sticker or emoji cannot be downloaded. |
Notify API
Send a Notification
Sends a notification to LINE.
Caution
You need to establish a new connection. When establishing a new connection you will be redirected to the LINE website. After you log in, you need to select a chat you want to send notification to and click the Agree and connect button.
Connection | Establish a connection to the Notify API. |
Message | Enter the message content. Max 1000 characters. |
Upload an Image | Select whether you want to provide an image by file data or URL. |
Image Full Size URL | Enter the URL to the full size image in the JPEG format. Maximum size of 2048×2048 px. |
Image Thumbnail URL | Enter the URL to the image Thumbnail in the JPEG format. Maximum size of 240×240 px. |
Source file | Map the file you want to upload from the previous module (e.g. HTTP > Get a File or Google Drive > Download a File) in the JPG or PNG format, or enter the file name and file data manually. |
Add Sticker | Enable this option to add the sticker to the notification. |
Sticker Package ID | Enter the Sticker Package ID. You can find it in the STKPKGID column in the following PDF document https://devdocs.line.me/files/sticker_list.pdf. |
Sticker ID | Enter the Sticker Package ID. You can find it in the STKID column in the following PDF document https://devdocs.line.me/files/sticker_list.pdf. |
Disable a Push Notification | Enable this option to disable a push notification to the user when the message is sent. |
Group/Room
List Group/Room Members
Retrieves the user IDs of the members of a group that the bot is in. To invite a bot, make sure that the Allow bot to join group chats option is enabled in your bot channel settings.
This includes user IDs of users who have not added the LINE Official Account as a friend or have blocked the LINE Official Account.
This feature is available only for verified or premium accounts. For more information about account types, see the Account Types of LINE Official Account page on LINE for Business.
Connection | |
Choose | Select whether you want to retrieve members from the group or room. |
Group ID | Enter (map) the group ID of the group you want to retrieve members from. You can retrieve the group ID using the Watch Events module (triggers when a user joins a group/room). |
Room ID | Enter (map) the room ID of the room you want to retrieve members from. You can retrieve the room ID using the Watch Events module (triggers when a user joins a group/room). |
Limit | Set the maximum number of members Make will return during one scenario execution. |
Get a Group/Room Member Profile
Retrieves a display name and profile image URL of the group/room member.
Connection | |
Choose | Select whether you want to retrieve member information from the group or room. |
Room ID/Group ID | Enter (map) the group ID or Room ID of the group/room you want to retrieve member information from. You can retrieve the IDs using the Watch Events module (triggers when a user joins a group/room). |
User ID | Enter (map) the user ID of the user you want to retrieve the display name and profile image for. |
Leave Group/Room
Leaves a group or room.
Connection | |
Choose | Select whether you want to leave a group or a room. |
Room ID/Group ID | Enter (map) the group ID or Room ID of the group/room you want to leave. You can retrieve the ID using the Watch Events module. |