SubmitEnterpriseVocAnalysisTask
Submits a Voice of the Customer (VOC) asynchronous task.
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.
Authorization information
The following table describes the authorization information for this API. You can use it in the Action element of a RAM policy statement to grant RAM users or RAM roles the permission to call this API. Details are as follows:
-
Action: the specific permission point.
-
Access level: the access level of each action. Valid values: Write, Read, or List.
-
Resource type: the resource types that support authorization for the action. Details are as follows:
- For required resource types, an asterisk (*) is added as a prefix.
- For actions that do not support resource-level authorization,
All resourcesis used.
-
Condition key: the condition keys defined by the cloud service itself.
-
Related action: other permissions required to successfully perform the action. The caller must also have the permissions of the related actions for the operation to succeed.
| Action | Access level | Resource type | Condition key | Related action |
|---|---|---|---|---|
| aimiaobi:SubmitEnterpriseVocAnalysisTask | get | *All resources * |
| None |
Request parameters
| Name | Type | Required | Description | Example value |
|---|---|---|---|---|
| WorkspaceId | string | Yes | Unique identifier of the Model Studio workspace: for more information, see workspace ID (Workspace ID) | xxxx |
| FileKey | string | No | The file FileKey | oss://default/bucket-name/materialDocument/tenant_agent/fileName |
| MaterialType | string | No | The material type (shortContent: long or short comments or tickets; dialogue: dialogues) | shortContent |
| ModelId | string | Yes | The model ID | qwen-max |
| ContentTags | array<object> | Yes | The content tags | |
| object | Yes | A content tag object | ||
| TagName | string | No | The tag name | PrimaryTag-SecondaryTag |
| TagValueDefinePrompt | string | No | The tag value definition (for a tag mining task, this prompt is a comma-separated list of enumerated values; for a summarization task, it is the summarization prompt) | Yes,No |
| TagDefinePrompt | string | No | The tag definition | PrimaryTag-SecondaryTag |
| TagTaskType | string | No | The tag mining task type (single tag: singleTagValue; multiple tags: multiTagValues; summarization: summaryAndOverview; filtering: filter) | singleTagValue |
| FilterTags | array<object> | No | The filter tag list | |
| object | No | A filter tag object | ||
| TagName | string | No | The tag name | PrimaryTag-SecondaryTag |
| TagValueDefinePrompt | string | No | The tag value definition (for a tag mining task, this prompt is a comma-separated list of enumerated values; for a summarization task, it is the summarization prompt) | Yes,No |
| TagDefinePrompt | string | No | The tag definition | PrimaryTag-SecondaryTag |
| TagType | string | No | The tag mining task type (single tag: singleTagValue; multiple tags: multiTagValues; summarization: summaryAndOverview; filtering: filter) | singleTagValue |
| PositiveSample | string | No | The positive sample content | Positive sample |
| PositiveSampleFileKey | string | No | The file key of the positive sample file | oss://default/bucket-name/path/xxx.xlsx |
| TaskType | string | No | The task type: lightAppSass (called from a SaaS page) and sdkBatchTask (SDK batch task) | lightAppSass |
| Contents | array<object> | No | The list of material content to be mined | |
| object | No | The material content object to be mined | ||
| Text | string | No | The material to be mined | Content text |
| ExtraInfo | string | No | Additional supplementary information provided directly to the large language model | Extra info |
| ApiKey | string | No | The API key for integration access. For more information, see Get an API key | sk-sdfs2-wewerwe-ere |
Response parameters
| Name | Type | Description | Example value |
|---|---|---|---|
| object | PlainResult | ||
| Code | string | The status code | NoData |
| Data | object | The template validation results | |
| TaskId | string | The task ID | xxxxx |
| HttpStatusCode | integer | The HTTP status code | 200 |
| Message | string | The error message | success |
| RequestId | string | The unique request ID | 1813ceee-7fe5-41b4-87e5-982a4d18cca5 |
| Success | boolean | Whether the request is successful: true indicates success, and false indicates failure | true |
Examples
Success response
JSON format
{
"Code": "NoData",
"Data": {
"TaskId": "xxxxx"
},
"HttpStatusCode": 200,
"Message": "success",
"RequestId": "1813ceee-7fe5-41b4-87e5-982a4d18cca5",
"Success": true
}
Error codes
Visit the Error Center to view more error codes.