Actions7
Overview
This node integrates with the Line Messaging API to send and manage messages within the Line platform. It supports multiple messaging operations, including sending multicast messages to multiple recipients simultaneously. This is useful for broadcasting announcements, alerts, or promotional content to a group of users, groups, or rooms in one action.
A practical example is a company using this node to send a notification message to all members of several chat groups at once, ensuring consistent communication without sending individual messages manually.
Properties
| Name | Meaning |
|---|---|
| Message | The message payload to be sent. Can be a single message object or an array of messages. |
| Target Recipients | An array of user IDs, group IDs, or room IDs specifying who will receive the multicast message. |
Output
The output of the node is an array of JSON objects corresponding to each input item processed. For the multicast operation specifically, the node does not push any additional data into the output (i.e., it returns an empty array or the original input items unchanged), as the operation's purpose is to send messages rather than retrieve data.
If other operations are used (not requested here), outputs may include JSON responses from the API or binary data representing message content.
Dependencies
- Requires an active Line Messaging API channel access token for authentication.
- The node depends on the official Line SDK for Node.js to interact with the Line Messaging API.
- Proper credentials must be configured in n8n to provide the required API token.
Troubleshooting
- No auth provided: If the node throws an error indicating missing authentication, ensure that the API key credential is correctly set up and linked to the node.
- Invalid recipient IDs: Sending messages to invalid or unauthorized user/group/room IDs will cause the API to reject the request. Verify that all target recipients exist and the bot has permission to message them.
- Message format errors: The message payload must conform to the Line Messaging API message structure. Invalid message formats will result in API errors.
- Network or API errors: Temporary network issues or API rate limits can cause failures. Retrying after some time or checking API usage quotas may help.