push_messages
Send text or flex messages to LINE users through the LINE Messaging API. Specify user ID and message content to deliver communications to individual recipients.
Instructions
Push one or more LINE messages to a user (generic).
Input Schema
Name | Required | Description | Default |
---|---|---|---|
messages | Yes | Array of LINE messages (text/flex) | |
userId | No | User ID to receive messages. Defaults to DESTINATION_USER_ID | U1a2b3c4d5e6f7g8h9i0j1k2l3m4n5o6p |
Input Schema (JSON Schema)
{
"properties": {
"messages": {
"description": "Array of LINE messages (text/flex)",
"items": {
"anyOf": [
{
"anyOf": [
{
"additionalProperties": false,
"properties": {
"text": {
"description": "The plain text content to send to the user.",
"maxLength": 5000,
"type": "string"
},
"type": {
"const": "text",
"default": "text",
"type": "string"
}
},
"required": [
"text"
],
"type": "object"
},
{
"additionalProperties": false,
"properties": {
"altText": {
"description": "Alternative text shown when flex message cannot be displayed.",
"type": "string"
},
"contents": {
"additionalProperties": true,
"description": "Flexible container structure following LINE Flex Message format. For 'bubble' type, can include header, hero, body, footer, and styles sections. For 'carousel' type, includes an array of bubble containers in the 'contents' property.",
"properties": {
"type": {
"description": "Type of the container. 'bubble' for single container, 'carousel' for multiple swipeable bubbles.",
"enum": [
"bubble",
"carousel"
],
"type": "string"
}
},
"required": [
"type"
],
"type": "object"
},
"type": {
"const": "flex",
"default": "flex",
"type": "string"
}
},
"required": [
"altText",
"contents"
],
"type": "object"
}
]
}
]
},
"minItems": 1,
"type": "array"
},
"userId": {
"default": "U1a2b3c4d5e6f7g8h9i0j1k2l3m4n5o6p",
"description": "User ID to receive messages. Defaults to DESTINATION_USER_ID",
"type": "string"
}
},
"required": [
"messages"
],
"type": "object"
}