Provides question answering over SSE.
Try it out
You can call this operation in OpenAPI Explorer without calculating a signature. After a successful call, OpenAPI Explorer can automatically generate SDK code examples.
Try it out
Authorization information
The following table describes the authorization information for this API operation. You can use this information in the Action element of a RAM policy statement to grant a RAM user or RAM role permission to call the operation. The columns are described as follows:
- Action: a specific permission.
- Access level: the access level of an action. Valid values: Write, Read, and List.
-
Resource type: the types of resources for which the action supports authorization:
- Required resource types are marked with an asterisk (*).
- Actions that do not support resource-level authorization use
All resources.
- Condition key: a condition key defined by the cloud service.
- Dependent action: an additional permission required to perform the action. The caller must also have permission to perform the dependent action.
| Action | Access level | Resource type | Condition key | Dependent action |
|---|---|---|---|---|
| bailianchatbot:SseChat | none | *All resources* | None | None |
Request syntax
Request parameters
| Name | Type | Required | Description | Example |
|---|---|---|---|---|
| AppId | string | Yes | The application ID. Create and query applications in the console. Only one ID can be specified. | chatbot-cn-dDmF3jcdVf |
| Utterance | string | Yes | The input from the chatbot visitor. | What can you do? |
| SessionId | string | No | The session ID, used to identify a visitor's session and maintain context. | 15e04f27-acd7-489d-872f-1d68f7535e33 |
| SenderId | string | No | The visitor ID, used to identify the user in the current session. | uid129312098593 |
| SenderNick | string | No | The visitor nickname. | Zhang San |
| VendorParam | string | No | A JSON-formatted set of custom parameters passed through to conversation engines. Examples:
| {"docLabels":"标签1,标签2"} |
| Command | string | No | The command for this request.Supported values:
| TIMEOUT |
| WorkspaceId | string | Yes | The unique Alibaba Cloud Model Studio workspace ID:Obtain workspaceId | llm-g7jspxljq8k909h3 |
Response parameters
| Name | Type | Description | Example |
|---|---|---|---|
| object | Schema of Response | ||
| RequestId | string | The request ID. | 30D68C4C-4512-58A7-A328-568015B39A02 |
| Data | any | The returned data. | See the supplementary response parameter descriptions. |
| Success | boolean | Indicates whether the request succeeded. | True |
| Message | string | The error description. | success |
| Code | string | The result code. | 200 |
Example descriptions
Sample response
Additional sample responses
Source=TASK_DRIVEN_DIALOGUE
Examples
Sample success response
JSON format