Parameter name | Type | Required | Description |
ReqId | String | Yes | Unique identifier for a single request. |
SessionId | String | Yes | Unique identifier for the session. |
Command | String | Yes | SEND_TEXT: Send text. |
Data | Yes | Data Object |
Name | Type | Required | Description |
Text | string | No | The text content to be broadcasted, default value: "" The string with a maximum length of 4000. |
Interrupt | boolean | No | Forced interruption flag. The default value is false. If forced interruption is not used and the text is marked as non-interruptible on the digital human platform, you will receive feedback indicating that interruption is not possible. If forced interruption is used, the system will ignore the non-interruptible setting on the digital human platform and execute the forced interruption directly. |
ChatCommand | string | No | Dialogue instruction type, effective when the digital human project is bound to a customer service chat bot. NotUseChat: The Q&A knowledge library configured for the customer service bot is not effective, and the digital human broadcasts the content sent. Pass empty or do not pass: The Q&A knowledge library configured for the customer service bot becomes effective, and the digital human broadcasts the answers from the Q&A knowledge library. |
//Send the text message.{"Header": {},"Payload": {"SessionId": "m123","Command": "SEND_TEXT","Data": {"Text": "Hello"}}}//After the customer service chat is bound, don't use the chat; broadcast the content that is sent.{"Header": {},"Payload": {"SessionId": "m123","Command": "SEND_TEXT","Data": {"Text": "Hello","ChatCommand": "NotUseChat"//Using the text-driven stream built for the digital human project; this drive is purely text-driven and does not involve dialogue.}}}//Force interruption{"Header": {},"Payload": {"SessionId": "m123","Command": "SEND_TEXT","Data": {"Interrupt": true}}}
{"Header": {"Code": 0,"Message": "","RequestID": "m123adfafvbadsafd",}}
Was this page helpful?