LINE icon

LINE

Interact with LINE Messaging API

Actions6

Message → Get Content

AI-generated

Overview

This node interacts with the LINE Messaging API to perform various message-related operations, specifically for the 'Message' resource and the 'Get Content' operation. It allows users to retrieve the binary content (such as images, videos, audio, or files) of a message by providing the message ID from a LINE webhook event. This is useful for scenarios where you need to download and process media content sent in LINE messages, such as saving images or videos to external storage or further processing audio files.

Use Case Examples

  1. Downloading an image sent by a user in a LINE chat to store it in a cloud storage service.
  2. Retrieving video content from a LINE message to analyze or transcode it.
  3. Fetching audio message content for transcription or voice recognition processing.

Properties

Name Meaning
Message ID The unique identifier of the message from the LINE webhook event, used to specify which message content to retrieve.
Download as Binary The name of the binary property where the downloaded content will be stored in the node's output data.

Output

Binary

Contains the downloaded binary content of the message, such as image, video, or audio data.

JSON

  • messageId - The ID of the message whose content was retrieved.
  • mimeType - The MIME type of the downloaded content, indicating its format.
  • size - The size in bytes of the downloaded content.

Dependencies

  • Requires an API key credential for LINE Messaging API authentication to authorize requests.

Troubleshooting

  • Ensure the provided Message ID is correct and corresponds to a valid message from the LINE webhook event; otherwise, the content retrieval will fail.
  • Verify that the API key credential for LINE Messaging API is correctly configured and has the necessary permissions to access message content.
  • Check that the message content type is supported and available; some message types may not have downloadable content.
  • Common error messages may include authentication errors (invalid or expired token), not found errors (invalid message ID), or permission errors. Resolving these involves verifying credentials, message IDs, and API permissions.

Links

Discussion