Sends a message to the client.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
ice:SendMessageChatText |
none |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| SessionId |
string |
Yes |
The ID of the session. |
f27f9b9be28642a88e18**** |
| AIAgentId |
string |
Yes |
The ID of the AI agent. |
39f8e0bc005e4f309379701645f4**** |
| ReceiverId |
string |
Yes |
The ID of the user who receives the message. The ID can be up to 64 bytes in length and can contain letters and digits. |
60000042053 |
| Type |
string |
Yes |
The type of the message. Valid values:
|
announcement |
| Text |
string |
Yes |
The content of the message. |
你好. |
| Mode |
string |
No |
The mode of message sending. Valid values:
Default value: offline. |
online |
| NeedArchiving |
boolean |
No |
Specifies whether to archive chat records. Default value: true. |
true |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
Schema of Response |
||
| RequestId |
string |
The ID of the request. |
******3B-0E1A-586A-AC29-742247****** |
Examples
Success response
JSON format
{
"RequestId": "******3B-0E1A-586A-AC29-742247******"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.