Skip to main content

GetChatQuestionResp

Retrieves the Q&A results generated by the SubmitChatQuestion API.

Debug

You can run this API directly in OpenAPI Explorer, saving you the trouble of calculating signatures. After a successful run, OpenAPI Explorer can automatically generate SDK code examples. Debug

Authorization information

The following table describes the authorization information for this API. You can use it in the Action element of RAM policy statements to grant RAM users or RAM roles the permission to call this API. Details are as follows:
  • Action: refers to the specific permission point.
  • Access level: refers to the access level of each operation. Valid values: Write, Read, or List.
  • Resource type: refers to the resource types that support authorization in the operation. Details are as follows:
    • Required resource types are marked with a leading asterisk (*).
    • For operations that do not support resource-level authorization, All Resources is used.
  • Condition key: refers to the condition keys defined by the cloud service itself.
  • Dependent action: refers to other permissions required to successfully perform the operation. The caller must also have the permissions of the dependent actions for the operation to succeed.
ActionAccess levelResource typeCondition keyDependent action
dianjin:GetChatQuestionRespnone
*All Resources
*
    None
None

Request syntax

POST /{workspaceId}/api/virtualHuman/chat/query HTTP/1.1

Request parameters

ParameterTypeRequiredDescriptionExample
workspaceIdstringYes

Workspace ID

llm-xxxxx
bodyobjectNo

Request body

sessionIdstringYes

Session ID

237645726354
batchIdstringYes

Question batch ID

1869307330227937280

Response elements

ElementTypeDescriptionExample
object

Result

successboolean

Indicates whether the operation is successful

true
dataTypestring

Data type

null
timestring

Timestamp

2024-01-01 00:00:00
errCodestring

Error code

0
messagestring

Error message

ok
dataobject

Response data

currentStatestring

Current state[INIT (Initialization), PROCESSING (Processing), COMPLETED (Completed)]

PROCESSING
questionListarray<object>

Question list

questionListobject

Question

sessionIdstring

Session ID

1732846760323001
userIdstring

Unique ID of the user who asked the question in the live streaming room

39847834568436
userNamestring

Name of the user who asked the question in the live streaming room

Zhang*
contentstring

Question content

What is the weather like today
gmtCreatestring

Original question time

2024-11-17 10:05:00
typestring

Question type[PRODUCT_QA (Audio submission), GOSSIP (Operation submission), UNKNOWN (Unknown)]

PRODUCT_QA
replystring

Reply content, the content of the reply

Thank you for your support!
oriContentstring

Original question

What is the weather like today
requestIdstring

Request ID

44BD277A-87F9-5310-8D63-3E6645F1DA85
costlong

Time consumed

null

Examples

Success response JSON format
{
  "success": true,
  "dataType": null,
  "time": "2024-01-01 00:00:00",
  "errCode": 0,
  "message": "ok",
  "data": {
    "currentState": "PROCESSING",
    "questionList": [
      {
        "sessionId": 1732846760323001,
        "userId": 39847834568436,
        "userName": "张*",
        "content": "今天天气怎么样",
        "gmtCreate": "2024-11-17 10:05:00",
        "type": "PRODUCT_QA",
        "reply": "感谢您的支持!",
        "oriContent": "今天天气怎么样"
      }
    ]
  },
  "requestId": "44BD277A-87F9-5310-8D63-3E6645F1DA85",
  "cost": 0
}

Error codes

Visit the Error Center to view more error codes.

Release notes

Change timeChange summaryOperation
No change history yet