N8N Tools LINE icon

N8N Tools LINE

Interact with LINE Messaging API

Overview

This node interacts with the LINE Messaging API to retrieve profile information about members in a LINE chat room. Specifically, the "Get Room Member Profile" operation fetches detailed profile data for a user who is a member of a particular room. This can be useful in scenarios where you want to personalize messages, manage user data, or perform analytics based on user profiles within group chats or rooms.

Practical examples include:

  • Fetching a user's display name and profile picture from a room to customize bot responses.
  • Verifying membership details before sending targeted notifications.
  • Integrating LINE user profile data into CRM or other backend systems.

Properties

Name Meaning
User ID The unique identifier of the user whose profile you want to retrieve.
Room ID The unique identifier of the room where the user is a member. Required to specify scope.

Output

The output JSON contains the profile information of the specified room member as returned by the LINE Messaging API. Typical fields may include:

  • displayName: The user's display name.
  • userId: The user's unique LINE ID.
  • pictureUrl: URL to the user's profile picture.
  • statusMessage: The user's status message.

The exact structure depends on the LINE API response for the room member profile endpoint.

No binary data output is produced by this operation.

Dependencies

  • Requires an active connection to the LINE Messaging API.
  • Needs an API key credential configured in n8n for authentication.
  • Optionally integrates with an external validation API (N8N Tools API) to verify subscription and API key validity before making requests.
  • Network access to https://api.line.me/v2 and the external validation service.

Troubleshooting

  • Invalid Credentials: If the API key or subscription is invalid, the node throws an error indicating invalid subscription or API key. Verify that the API key credential is correctly set up and has necessary permissions.
  • Missing Parameters: Ensure both User ID and Room ID are provided; missing these will cause the API call to fail.
  • API Rate Limits: LINE API enforces rate limits; excessive calls may result in errors. Implement retry logic or reduce request frequency if needed.
  • Network Issues: Connectivity problems to LINE API endpoints or the validation service can cause failures.
  • Error Handling: If "Continue On Fail" is enabled, errors for individual items will be included in the output JSON under an error field instead of stopping execution.

Links and References

Discussion