Message → Push
AI-generatedOverview
This node interacts with the LINE Messaging API to send various types of messages to users. Specifically, the 'Push' operation allows sending a message directly to a specified user by their user ID. It supports multiple message types including text, image, video, audio, location, sticker, and flex messages. Users can also add quick reply buttons to messages for enhanced interactivity. This node is useful for automating personalized communication, notifications, or marketing messages to LINE users.
Use Case Examples
- Sending a text notification to a user when an event occurs.
- Pushing an image or video message to a user as part of a campaign.
- Sending location information or stickers to users.
- Adding quick reply buttons to messages to gather user responses quickly.
Properties
| Name | Meaning |
|---|---|
| User ID | The ID of the user to send the message to (required for push operation). |
| Message Type | The type of message to send (text, image, video, audio, location, sticker, flex). |
| Text | The text message to send (required if message type is text). |
| Original Content URL | URL of the original content for image, video, or audio messages (must be HTTPS). |
| Preview Image URL | URL of the preview image for image or video messages (must be HTTPS). |
| Title | The title of the location (required if message type is location). |
| Address | The address of the location (required if message type is location). |
| Latitude | The latitude of the location (required if message type is location). |
| Longitude | The longitude of the location (required if message type is location). |
| Package ID | The package ID of the sticker (required if message type is sticker). |
| Sticker ID | The sticker ID (required if message type is sticker). |
| Alt Text | Alternative text for devices that do not support flex messages (required if message type is flex). |
| Flex Contents | The flex message container in JSON format (required if message type is flex). |
| Add Quick Reply | Whether to add quick reply buttons to the message (max 13 items). |
| Quick Reply Mode | Choose how to configure quick reply buttons: visual builder or JSON input. |
| Quick Reply JSON | Quick reply configuration in JSON format, must contain an 'items' array (used if Quick Reply Mode is JSON). |
| Quick Reply Items | Quick reply button items configured via visual builder (used if Quick Reply Mode is Builder). |
Output
JSON
json- The JSON response from the LINE Messaging API or error information.
Dependencies
- LINE Messaging API
Troubleshooting
- Ensure the user ID is valid and the bot has permission to message the user.
- For media messages, URLs must be HTTPS and accessible.
- Quick reply buttons are limited to a maximum of 13 items; exceeding this will cause errors.
- If the flex message JSON is malformed, the API will reject the message.
- Common errors include authentication failures (check API credentials) and invalid parameters (check message format and required fields).
Links
- LINE Messaging API Documentation - Official documentation for the LINE Messaging API used by this node.