tencent cloud

$0 14-Day TrialExperience EdgeOne for acceleration and security protection!

Feedback

Tencent Cloud AI Digital Human

Text-driven Instructions

Last updated: 2024-07-19 10:06:40
After you Create Long Connection Channel, you can use a websocket persistent connection to send the text to drive the digital human.

Request Parameters

Parameter name
Type
Required
Description
ReqId
String
Yes
Unique identifier for a single drive session.
SessionId
String
Yes
Unique identifier for the session.
Command
String
Yes
SEND_TEXT: Send text.
Data
Yes
Data Object
Data
(Send text.)
Name
Type
Required
Description
Text
String
No
The text content to be broadcasted, default value: maximum length of 4000 bytes.
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 chatbot.
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.
ChatRoundId
String
No
Conversation round ID, recommended to use UUID. Default value: "". For digital human projects using Tencent's industry large model conversation service, this field needs to be provided to distinguish between multiple rounds of dialogue.
CloudAiVisitorBizId
String (64)
No
Visitor ID for Tencent's large model knowledge engine.
Warning:
The interval between sending texts must be greater than 1 second.

Parameter example


{
"Header": {},
"Payload": {
"ReqId": "d7aa08da33dd4a662ad5be508c5b77cf",
"SessionId": "m123adfafvbadsafd",
"Command": "SEND_TEXT",
"Data": {
"Text": "Hello, I am an artificially synthesized digital human",
"ChatCommand": "NotUseChat"//Using the text-driven stream built for the digital human project; this drive is purely text-driven and does not involve dialogue.
}
}
}


Catalog

In The Article

Text-driven Instructions

Contact Us

Contact our sales team or business advisors to help your business.

Technical Support

Open a ticket if you're looking for further assistance. Our Ticket is 7x24 avaliable.

7x24 Phone Support
Hong Kong, China
+852 800 906 020 (Toll Free)
United States
+1 844 606 0804 (Toll Free)
United Kingdom
+44 808 196 4551 (Toll Free)
Canada
+1 888 605 7930 (Toll Free)
Australia
+61 1300 986 386 (Toll Free)
EdgeOne hotline
+852 300 80699
More local hotlines coming soon