N8N Tools LINE icon

N8N Tools LINE

Interact with LINE Messaging API

Overview

The node integrates with the LINE Messaging API to send broadcast messages to all users of a LINE Official Account. Specifically, the "Broadcast Message" operation allows sending a message to every user who has added the LINE account as a friend, without specifying individual recipients.

This is useful for scenarios such as:

  • Announcing promotions or updates to all followers.
  • Sending alerts or notifications broadly.
  • Broadcasting event invitations or news.

For example, a business can use this node to send a text message like "Our store will be closed tomorrow due to maintenance" to all its LINE followers at once.

Properties

Name Meaning
Message Type The type of message to send. Options include: Text, Image, Video, Audio, File, Location, Sticker. For broadcast, typically "Text" is used.
Message Text The actual text content of the message to broadcast. Only applicable if Message Type is "Text".

Output

The output JSON contains the response from the LINE Messaging API after attempting to send the broadcast message. This typically includes status information about the request success or failure.

No binary data output is produced by this operation.

Example output structure (simplified):

{
  "messageId": "unique-message-id",
  "status": "success"
}

Dependencies

  • Requires an API key credential for authentication with the LINE Messaging API.
  • Optionally uses an additional API key credential for validation via an external "N8N Tools API" service, which checks subscription and API key validity before proceeding.
  • The node depends on the bundled line-api module to interact with LINE endpoints.

Troubleshooting

  • Invalid subscription or API key error: If the external validation fails with HTTP 401 or 403, it indicates invalid or missing API credentials. Verify that the API keys are correctly configured in n8n credentials.
  • Unknown operation error: Occurs if an unsupported operation name is provided. Ensure the operation parameter is set to "broadcastMessage" for broadcasting.
  • Empty message text: Sending a broadcast with empty text may cause the API to reject the request. Always provide meaningful message content.
  • API rate limits: LINE Messaging API enforces rate limits; excessive broadcasts in short time may result in errors or throttling.
  • Network issues: Connectivity problems can cause HTTP request failures. Check network access and proxy settings if applicable.

Links and References

Discussion