LINE
lineUse a LINE Official Account's Messaging API channel to manage messages, audiences, and rich menus.
Acciones disponibles (13)
Cada acción es una operación que el agente puede ejecutar contra este conector. Haz clic en una acción para ver sus parámetros.
Create Rich MenuLINE_CREATE_RICH_MENUAcciónCreate a rich-menu definition and return its ID. Creation alone does not display it: upload an image, then set it as default or link it to a user.
LINE_CREATE_RICH_MENUAcciónCreate a rich-menu definition and return its ID. Creation alone does not display it: upload an image, then set it as default or link it to a user.
Parámetros de entrada
namestringObligatorioManagement-only rich-menu name (max 300 characters).
sizeobjectObligatorioRich-menu canvas size.
areasobject[]ObligatorioOne to 20 tappable areas on the rich menu.
selectedbooleanObligatorioWhether the rich menu opens by default after it is linked.
chat_bar_textstringObligatorioText shown in the chat bar (max 14 characters).
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Create Rich Menu with ImageLINE_CREATE_RICH_MENU_WITH_IMAGEAcciónCreate a rich-menu definition and upload its JPEG or PNG image in one call. If image upload fails, the newly created definition is deleted automatically. The finished menu must still be set as default or linked to a user to display.
LINE_CREATE_RICH_MENU_WITH_IMAGEAcciónCreate a rich-menu definition and upload its JPEG or PNG image in one call. If image upload fails, the newly created definition is deleted automatically. The finished menu must still be set as default or linked to a user to display.
Parámetros de entrada
namestringObligatorioManagement-only rich-menu name (max 300 characters).
sizeobjectObligatorioRich-menu canvas size.
areasobject[]ObligatorioOne to 20 tappable areas on the rich menu.
imageobjectObligatorioJPEG or PNG image matching the canvas size, at most 1 MiB, with width divided by height at least 1.45.
selectedbooleanObligatorioWhether the rich menu opens by default after it is linked.
chat_bar_textstringObligatorioText shown in the chat bar (max 14 characters).
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Delete Rich MenuLINE_DELETE_RICH_MENUAcciónPermanently delete a rich menu by ID. Delete only a menu the caller owns or explicitly intends to remove.
LINE_DELETE_RICH_MENUAcciónPermanently delete a rich menu by ID. Delete only a menu the caller owns or explicitly intends to remove.
Parámetros de entrada
rich_menu_idstringObligatorioRich-menu ID to permanently delete.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Download Message Content PreviewLINE_DOWNLOAD_MESSAGE_CONTENT_PREVIEWAcciónDownload LINE's reduced-size preview image for a retained image or video message whose contentProvider.type is line.
LINE_DOWNLOAD_MESSAGE_CONTENT_PREVIEWAcciónDownload LINE's reduced-size preview image for a retained image or video message whose contentProvider.type is line.
Parámetros de entrada
message_idstringObligatorioMessage ID of an image or video from a webhook event.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Get Message Delivery CountLINE_GET_MESSAGE_DELIVERY_COUNTAcciónGet the number of reply, push, multicast, or broadcast messages sent on one UTC+9 calendar date. A result can be unready, unavailable_for_privacy, or out_of_service instead of containing a count.
LINE_GET_MESSAGE_DELIVERY_COUNTAcciónGet the number of reply, push, multicast, or broadcast messages sent on one UTC+9 calendar date. A result can be unready, unavailable_for_privacy, or out_of_service instead of containing a count.
Parámetros de entrada
datestringObligatorioDate in yyyyMMdd format, interpreted in UTC+9 (for example, 20260803).
message_typestringObligatorioenumMessaging endpoint whose sent-message count to retrieve.
replypushmulticastbroadcast
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Get Rich MenuLINE_GET_RICH_MENUAcciónGet one Messaging API rich-menu definition by ID, including its canvas, tappable areas, and actions.
LINE_GET_RICH_MENUAcciónGet one Messaging API rich-menu definition by ID, including its canvas, tappable areas, and actions.
Parámetros de entrada
rich_menu_idstringObligatorioRich-menu ID to retrieve.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Link or Unlink User Rich MenuLINE_LINK_OR_UNLINK_USER_RICH_MENUAcciónLink or unlink a per-user rich menu. WARNING: LINE can return HTTP 200 even when nothing changed for a nonexistent, deleted, blocked, non-friend, or cross-channel user; success confirms request acceptance, not the assignment effect.
LINE_LINK_OR_UNLINK_USER_RICH_MENUAcciónLink or unlink a per-user rich menu. WARNING: LINE can return HTTP 200 even when nothing changed for a nonexistent, deleted, blocked, non-friend, or cross-channel user; success confirms request acceptance, not the assignment effect.
Parámetros de entrada
user_idstringObligatorioLINE user ID from a webhook source object, not a searchable LINE ID. HTTP 200 does not prove that this user was eligible or changed.
operationstringObligatorioenumLink or unlink the user's per-user rich menu. LINE may return HTTP 200 even when no assignment changes.
linkunlinkrich_menu_idstringImage-backed rich-menu ID. Required for link and omitted for unlink. Request acceptance does not verify that LINE changed the user's link.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
List Chat Member IDsLINE_LIST_CHAT_MEMBER_IDSAcciónReturn one page of member user IDs for a group or legacy room containing the bot. Requires a verified or premium LINE Official Account; room applies only to legacy multi-person chats.
LINE_LIST_CHAT_MEMBER_IDSAcciónReturn one page of member user IDs for a group or legacy room containing the bot. Requires a verified or premium LINE Official Account; room applies only to legacy multi-person chats.
Parámetros de entrada
chat_idstringObligatorioGroup or room ID from a webhook event source object. The bot must participate in the chat.
chat_typestringObligatorioenumUse group for a current group chat, or room for a legacy multi-person chat.
grouproomnext_cursorstringContinuation cursor returned by the previous call. Repeat chat_type and chat_id when continuing. LINE cursors expire after 24 hours.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
List Follower IDsLINE_LIST_FOLLOWER_IDSAcciónReturn one page of user IDs for friends of the LINE Official Account. This endpoint requires a verified or premium LINE Official Account and excludes blockers, deleted users, and users without profile consent.
LINE_LIST_FOLLOWER_IDSAcciónReturn one page of user IDs for friends of the LINE Official Account. This endpoint requires a verified or premium LINE Official Account and excludes blockers, deleted users, and users without profile consent.
Parámetros de entrada
limitintegerMaximum user IDs requested for this page (1-1000). A page may contain fewer IDs while still returning a continuation cursor.
next_cursorstringContinuation cursor returned by the previous call. Omit for the first page. LINE cursors expire after 24 hours.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
List Rich MenusLINE_LIST_RICH_MENUSAcciónList all rich menus created through the Messaging API. Menus created in LINE Official Account Manager are not included.
LINE_LIST_RICH_MENUSAcciónList all rich menus created through the Messaging API. Menus created in LINE Official Account Manager are not included.
Parámetros de entrada
Sin parámetros.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Mark Messages as ReadLINE_MARK_MESSAGES_AS_READAcciónMark all messages through a webhook-issued read token as read. The token must have been received by this exact bot; this operation cannot be undone.
LINE_MARK_MESSAGES_AS_READAcciónMark all messages through a webhook-issued read token as read. The token must have been received by this exact bot; this operation cannot be undone.
Parámetros de entrada
mark_as_read_tokenstringObligatorioRead token from message.markAsReadToken in a webhook message event received by this bot.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Set or Clear Default Rich MenuLINE_SET_OR_CLEAR_DEFAULT_RICH_MENUAcciónSet or clear the Messaging API default rich menu. Setting requires an image-backed rich menu; clearing does not delete the menu and does not clear a default managed in LINE Official Account Manager.
LINE_SET_OR_CLEAR_DEFAULT_RICH_MENUAcciónSet or clear the Messaging API default rich menu. Setting requires an image-backed rich menu; clearing does not delete the menu and does not clear a default managed in LINE Official Account Manager.
Parámetros de entrada
operationstringObligatorioenumSet an image-backed rich menu as the Messaging API default, or clear that default.
setclearrich_menu_idstringRich-menu ID to set as default. Required when operation is set and must be omitted when operation is clear.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Upload Rich Menu ImageLINE_UPLOAD_RICH_MENU_IMAGEAcciónUpload a JPEG or PNG image for a rich menu. An image cannot be replaced for the same rich-menu ID; create a new menu to use another image.
LINE_UPLOAD_RICH_MENU_IMAGEAcciónUpload a JPEG or PNG image for a rich menu. An image cannot be replaced for the same rich-menu ID; create a new menu to use another image.
Parámetros de entrada
imageobjectObligatorioJPEG or PNG image, at most 1 MiB, 800-2500 px wide, at least 250 px high, with width divided by height at least 1.45.
rich_menu_idstringObligatorioRich-menu ID returned by Create Rich Menu.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Triggers (1)
Los triggers son eventos externos que pueden iniciar un flujo en tus agentes (ej: nuevo email, mensaje recibido, registro creado).
Message ReceivedLINE_MESSAGE_RECEIVEDTriggerFires when someone sends a message to your LINE Official Account.
Covers 1:1 chats, groups and multi-person rooms, and every message type
LINE delivers. Reply within one minute using `reply_token`, or send a push
message to `user_id` at any time after that.
LINE_MESSAGE_RECEIVEDTriggerFires when someone sends a message to your LINE Official Account. Covers 1:1 chats, groups and multi-person rooms, and every message type LINE delivers. Reply within one minute using `reply_token`, or send a push message to `user_id` at any time after that.
Configuración
Sin parámetros.
Payload del evento
group_idstringGroup ID, when the message arrived in a group chat.
messageobjectObligatorioThe message that was sent.
reply_tokenstringSingle-use token for replying to this exact message. LINE requires it to be used within one minute of the event; after that reply with a push message addressed to `user_id` instead. Absent on the rare events LINE does not allow a reply to.
room_idstringRoom ID, when the message arrived in a multi-person chat.
source_typestringenumWhether the message came from a 1:1 chat, group, or room. Absent when LINE does not attribute the message to a conversation.
usergrouproomtimestampintegerObligatorioWhen the event occurred, in milliseconds since the epoch.
user_idstringLINE user ID of the sender. Use it to send a push message later, once the reply token has expired. Absent when LINE cannot attribute the message to a user.
Instrucciones
**Instructions for Setting Up the Trigger:** LINE allows only one webhook URL per Messaging API channel, and this trigger takes that slot. **Connecting replaces any webhook URL already set on the channel** — if another tool or your own bot server is using it, that stops receiving events. 1. On the **Basic settings** tab of your channel in the LINE Developers Console, copy the **Channel secret** and enter it when you connect. This is not the channel access token, and reading it needs Admin rights on the channel. 2. Open the **Messaging API** tab and enable **Use webhook**. LINE exposes no API for this switch, so Composio cannot turn it on for you and no events arrive until you do. Composio sets the webhook URL itself when the trigger is created. There is nothing for you to copy or paste. **Removing the Trigger:** LINE has no way to clear a webhook URL — it can only be overwritten — so deleting this trigger leaves your channel still pointing at Composio. To stop delivery, turn off **Use webhook** on the Messaging API tab in the Console (or point **Webhook URL** at another tool). Disconnecting the account in Composio stops delivery on Composio's side regardless.