SubmitEnterpriseVocAnalysisTask
Submits an asynchronous analysis task for enterprise Voice of the Customer (VOC).
Try it now
Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.
RAM authorization
The table below describes the authorization required to call this API. You can define it in a Resource Access Management (RAM) policy. The table's columns are detailed below:
-
Action: The actions can be used in the
Actionelement of RAM permission policy statements to grant permissions to perform the operation. -
API: The API that you can call to perform the action.
-
Access level: The predefined level of access granted for each API. Valid values: create, list, get, update, and delete.
-
Resource type: The type of the resource that supports authorization to perform the action. It indicates if the action supports resource-level permission. The specified resource must be compatible with the action. Otherwise, the policy will be ineffective.
- For APIs with resource-level permissions, required resource types are marked with an asterisk (*). Specify the corresponding Alibaba Cloud Resource Name (ARN) in the
Resourceelement of the policy. - For APIs without resource-level permissions, it is shown as All Resources. Use an asterisk (*) in the
Resourceelement of the policy.
- For APIs with resource-level permissions, required resource types are marked with an asterisk (*). Specify the corresponding Alibaba Cloud Resource Name (ARN) in the
-
Condition key: The condition keys defined by the service. The key allows for granular control, applying to either actions alone or actions associated with specific resources. In addition to service-specific condition keys, Alibaba Cloud provides a set of common condition keys applicable across all RAM-supported services.
-
Dependent action: The dependent actions required to run the action. To complete the action, the RAM user or the RAM role must have the permissions to perform all dependent actions.
Action | Access level | Resource type | Condition key | Dependent action |
|---|---|---|---|---|
quanmiaolightapp:SubmitEnterpriseVocAnalysisTask | create | *All Resource
| None | None |
Request syntax
POST /{workspaceId}/quanmiao/lightapp/submitEnterpriseVocAnalysisTask HTTP/1.1
Path Parameters
Parameter | Type | Required | Description | Example |
|---|---|---|---|---|
| workspaceId | string | No | The workspace ID. | llm-xx |
Request parameters
Parameter | Type | Required | Description | Example |
|---|---|---|---|---|
| taskDescription | string | No | The task description. | Here is a text to be analyzed. Please label the data according to the tag system. |
| extraInfo | string | No | Additional business information. | Additional information |
| outputFormat | string | No | The prompt that describes the output format. If this parameter is not specified, the output is generated in JSON format based on the task description. | Please output JSON format directly, without any other content: |
| modelId | string | No | The model ID. | qwen-max |
| tags | array<object> | No | The content tags. | |
object | No | The list of tag systems. | ||
| tagName | string | No | The tag name. | xxxx |
| tagDefinePrompt | string | No | The prompt that defines the tag for the Large Language Model (LLM). | xxxx |
| filterTags | array<object> | No | The filter tags. | |
object | No | |||
| tagName | string | No | The filter tag name. | Filter tag name |
| tagDefinePrompt | string | No | The prompt that defines the filter tag for the LLM. | Prompt defining tag extraction |
| contents | array<object> | No | The list of content to analyze. Specify one of `url`, `fileKey`, or `contents`. The array can contain a maximum of 200 items. To process more items, use the `fileKey` parameter or upload a file. | |
object | No | The content object. | ||
| text | string | No | The content. The number of characters cannot exceed 10,000. | xxxx |
| id | string | No | The content ID. | id-xxxxx |
| url | string | No | The URL of the content file to analyze. Specify one of `url`, `fileKey`, or `contents`. The file size cannot exceed 100 MB. The number of content items cannot exceed 60,000. | |
| fileKey | string | No | The file key of the content file to analyze. Specify one of `url`, `fileKey`, or `contents`. The file key is a unique key that you obtain after you upload a file on the Quanmiao Software as a Service (SaaS) page. | oss://default/aimiaobi-service-prod/aimiaobi/temp/public/government_service_experience_feedback_summary.txt |
| apiKey | string | No | The Alibaba Cloud Model Studio API key. | sk-xxxxxxxx |
| sourceTrace | boolean | No | Specifies whether to enable traceability. If you enable traceability, you cannot customize the output format. | |
| batchTask | boolean | No | Specifies whether to use the model's BATCH API. This reduces the cost by half and processes the task within 24 hours. (The BATCH API is supported by stable and some latest versions of Qwen-Max, Qwen-Plus, Qwen-Flash, Qwen-Turbo, and Qwen-Long. It is also supported by QwQ series models, such as qwq-32b-preview.) | |
| positiveFilter | boolean | No | Specifies whether to perform positive filtering. `true`: positive filtering (default). `false`: negative filtering. |
Response elements
Element | Type | Description | Example |
|---|---|---|---|
object | Schema of Response | ||
| requestId | string | The ID of the request. | 117F5ABE-CF02-5502-9A3F-E56BC9081A64 |
| code | string | The status code. | NoPermission |
| data | object | The business object. | |
| taskId | string | The task ID. | a0cc71ec-fe07-47e5-bf12-6e1c46081c98 |
| httpStatusCode | integer | The HTTP status code. | 403 |
| message | string | The error description. | No permission to access the API |
| success | boolean | Indicates whether the request was successful. `true`: successful. `false`: failed. | false |
Examples
Success response
JSON format
{
"requestId": "117F5ABE-CF02-5502-9A3F-E56BC9081A64",
"code": "NoPermission",
"data": {
"taskId": "a0cc71ec-fe07-47e5-bf12-6e1c46081c98"
},
"httpStatusCode": 403,
"message": "无权限访问接口",
"success": false
}
Error codes
HTTP status code | Error code | Error message | Description |
|---|---|---|---|
| 403 | NoPermission | You are not authorized to perform this action , Please check the assignment of the workspaceId. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.