N8N Tools LINE icon

N8N Tools LINE

Interact with LINE Messaging API

Overview

The "Multicast Message" operation of the Messages resource in this node allows sending a single message to multiple LINE users simultaneously. This is useful for broadcasting announcements, promotions, or updates to a specific group of users without sending individual messages one by one.

For example, a business can use this operation to send a promotional text message to a list of customers who have opted in, or a community manager can multicast event reminders to all members of a group.

Properties

Name Meaning
Message Type The type of message to send. Options include: Text, Image, Video, Audio, File, Location, Sticker.
Message Text The actual text content of the message to be sent (used when Message Type is "Text").
User IDs An array of user IDs representing the recipients of the multicast message.

Note: The provided properties JSON snippet only included "Message Type" and "Message Text". However, the source code shows that for multicast, a parameter named userIds is used to specify recipients.

Output

The output is an array of JSON objects, each corresponding to an input item processed. For the multicast message operation, the JSON output contains the response from the LINE Messaging API after attempting to send the multicast message. This typically includes status information about the request.

No binary data output is indicated for this operation.

Dependencies

  • Requires an API key credential for the external "N8N Tools API" service to validate subscription and access.
  • Uses the LINE Messaging API via an internal helper class to perform messaging operations.
  • The node expects proper configuration of credentials with valid API keys and URLs.
  • Network connectivity to the LINE Messaging API endpoints is necessary.

Troubleshooting

  • Invalid Subscription or API Key: If the validation against the external API fails with 401 or 403 errors, the node throws an error indicating invalid credentials. Ensure the API key is correct and active.
  • Unknown Operation Error: If an unsupported operation name is provided, the node will throw an "Unknown operation" error.
  • Missing User IDs: For multicast messages, if the list of user IDs is empty or not provided, the operation will fail. Make sure to supply a valid array of recipient user IDs.
  • Message Content Errors: If the message text is empty when sending a text message, the API may reject the request. Provide meaningful message content.
  • Continue On Fail: If enabled, the node will continue processing subsequent items even if some fail, returning error details in the output JSON.

Links and References

Discussion