iva_chat
Manage chats through the IVA MCU platform: create group or direct chats, search, update, delete, forward messages, clear history, and set notification preferences.
Instructions
IVA chat management: create group chat, get/search/update/delete chats, forward messages, clear history, manage notifications, get P2P chat, get muted chats. Clients API v2.28.12.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Name | |
| size | No | Page size | |
| No | Email address | ||
| limit | No | Maximum number of results | |
| phone | No | Phone number in E164 format or SIP/H323/RTSP address | |
| query | No | Search query string | |
| action | Yes | Operation to perform: - "create_group_chat": Create a group chat. Use when user says 'создай чат', 'create group chat'. Required: participants array. - "get": Get chat details by ID - "delete": Delete a chat - "update": Update chat properties (name, avatar, etc.) - "search": Search chats by query. Use when user says 'найди чат', 'search chats'. - "get_p2p": Get or create a P2P (direct/private) chat with a specific user. Use this for sending direct messages to a person — NOT create_group_chat. Pass profileId of the recipient. Use when user says 'напиши в личку', 'send direct message', 'найди личный чат'. At least one of: profileId, contactId, email, phone, name. - "get_all": Get all chats (paginated by date). Chats without names will show participant names as the title. - "forward_messages": Forward messages to another chat. Required: forwardData with messageIds and targetChatRoomIds. - "clear_history": Clear chat history - "allow_notifications": Enable notifications for a chat - "forbid_notifications": Disable notifications for a chat - "get_muted": Get list of muted chat IDs - "set_p2p_notifications": Set P2P chat notification settings | |
| 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) | |
| contactId | No | Contact UUID | |
| olderThan | No | Get chats older than this timestamp (ms) | |
| profileId | No | Profile (user) UUID | |
| chatRoomId | No | Chat room UUID | |
| chatUpdate | No | Chat room properties to update | |
| messageIds | No | Array of message UUIDs | |
| forwardData | No | Forward messages data {messageIds, targetChatRoomIds} | |
| participants | No | Array of participant objects | |
| searchCriteria | No | Search criteria | |
| notificationData | No | P2P notification settings |