iva_chat_messages
Manage chat messages in IVA MCU: send, edit, delete, star, search attachments, and get message updates, typing notifications, and read receipts.
Instructions
IVA chat messages: send/edit/delete/star messages, search attachments, get messages/changes/starred, typing notification, read receipt. Clients API v2.28.12.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| size | No | Page size | |
| limit | No | Maximum number of results | |
| action | Yes | Operation to perform: - "send": Send a text message to a chat. Use when user says 'отправь сообщение', 'send message'. Required: chatRoomId, messageData with text. - "send_audio": Send an audio message to a chat - "edit": Edit an existing message - "delete": Delete a single message - "delete_multiple": Delete multiple messages at once. Required: chatRoomId, messageIds array. - "get": Get messages from a chat (paginated) - "get_changes": Get message changes since a timestamp - "get_starred": Get starred/favorited messages - "search_attachments": Search for attachments in a chat - "remove_attachment": Remove an attachment from a message - "star": Star/favorite messages. Required: chatRoomId, messageIds array. - "unstar": Remove star from messages - "typing": Send typing notification - "notify_read": Mark messages as read | |
| dateTo | No | End date (UNIX time in ms) | |
| offset | No | Number of results to skip (pagination offset) | |
| confirm | No | Set to true to confirm destructive actions (delete, remove, stop, etc.) when IVA_CONFIRM_DESTRUCTIVE is enabled. | |
| dateFrom | No | Start date (UNIX time in ms) | |
| orderAsc | No | Order ascending | |
| readData | No | Read receipt data | |
| audioData | No | Audio message data | |
| messageId | No | Message UUID | |
| chatRoomId | No | Chat room UUID | |
| messageIds | No | Array of message UUIDs | |
| typingData | No | Typing notification data | |
| messageData | No | Message data. Use {"message": "text here"} for text messages. Field is 'message' not 'text'. | |
| messageEdit | No | Message edit content | |
| onlyChanged | No | Only changed messages | |
| attachmentId | No | Resource UUID | |
| textContains | No | Filter messages containing text | |
| searchCriteria | No | Attachment search criteria |