RunEnterpriseVocAnalysis

Updated at:

Analyzes the voice of the customer (VOC) for an enterprise.

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 Action element 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 Resource element of the policy.
    • For APIs without resource-level permissions, it is shown as All Resources. Use an asterisk (*) in the Resource element of the policy.
  • 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:RunEnterpriseVocAnalysis

none

*All Resource

*

NoneNone

Request syntax

POST /{workspaceId}/quanmiao/lightapp/runEnterpriseVocAnalysis HTTP/1.1

Path Parameters

Parameter

Type

Required

Description

Example

workspaceId

string

Yes

The unique identifier of the Alibaba Cloud Model Studio workspace. For more information, see How to obtain a workspaceId.

llm-xx

Request parameters

Parameter

Type

Required

Description

Example

taskDescription

string

No

The description of the task.

You are an experienced data analyst skilled at extracting structured information from text reviews. You need to identify and extract keywords and phrases related to the following four dimensions from a list of user reviews: Index - the index in the input review JSON array (starting from zero) indicating the dimension extracted for that entry. Purchase motivation - keywords or phrases describing the reasons, needs, or drivers for the user purchasing the product. Unmet needs - keywords or phrases about unmet needs or problems mentioned by the user during product use. Usage scenario - keywords or phrases about specific usage scenarios, usage methods, or environments mentioned by the user. Positive/negative opinions - keywords or phrases that clearly indicate the user's positive or negative views on the product or service.

modelId

string

No

The model ID.

qwen-max

extraInfo

string

No

Additional information, such as supplementary business information.

Extra information

outputFormat

string

No

The output format.

Output in the following format: {"text1": "xxxx", "text2": "xxxx"}

content

string

No

The content.

This is a text content to be analyzed

tags

array<object>

No

The business tag system.

object

No

A list of tag systems.

tagName

string

No

The tag name.

Tag name

tagDefinePrompt

string

No

The prompt that defines the tag.

Tag definition prompt

filterTags

array<object>

No

The filter tags.

object

No

tagName

string

No

The tag name.

Tag name

tagDefinePrompt

string

No

The prompt that defines the tag.

Tag definition prompt

apiKey

string

No

The API key for Alibaba Cloud Model Studio.

sk-xxxx

akProxy

string

No

none

none

sourceTrace

boolean

No

Specifies whether to enable traceability. If you enable traceability, you cannot customize the outputFormat.

true

positiveFilter

boolean

No

Response elements

Element

Type

Description

Example

object

The response.

header

object

The message header.

errorCode

string

The error code.

AccessForbidden

errorMessage

string

The error description.

Error message

event

string

The event.

task-finished

sessionId

string

The unique ID of the session.

xxxx

taskId

string

The unique ID of the task.

xxxx

traceId

string

The unique ID for the entire call chain.

xxxxx

payload

object

The message body.

output

object

The output result.

text

string

The output summary text.

Output summary text

filterResult

object

The filter result.

filterResults

array<object>

A list of filter results.

object

tagName

string

The tag that is hit by the filter.

Tag hit by the filter

tagValue

string

The hit value (Yes or No).

Yes

hit

boolean

Indicates whether the tag is hit.

true

reasonContent

string

The inference content returned by the reasoning model.

usage

object

The token consumption.

inputTokens

integer

The number of input tokens.

100

outputTokens

integer

The number of output tokens.

100

totalTokens

integer

The total number of tokens.

200

requestId

string

Id of the request

49483FFC-0CB9-5163-8D3E-234E276E6DA8

Examples

Success response

JSON format

{
  "header": {
    "errorCode": "AccessForbidden",
    "errorMessage": "错误信息",
    "event": "task-finished",
    "sessionId": "xxxx",
    "taskId": "xxxx",
    "traceId": "xxxxx"
  },
  "payload": {
    "output": {
      "text": "输出摘要文本\n\n",
      "filterResult": {
        "filterResults": [
          {
            "tagName": "过滤标签命中的标签",
            "tagValue": "是",
            "hit": true
          }
        ]
      },
      "reasonContent": ""
    },
    "usage": {
      "inputTokens": 100,
      "outputTokens": 100,
      "totalTokens": 200
    }
  },
  "requestId": "49483FFC-0CB9-5163-8D3E-234E276E6DA8"
}

Error codes

HTTP status code

Error code

Error message

Description

403NoPermissionYou are not authorized to perform this action , Please check the assignment of the workspaceId.Check the assignment of the workspaceId.

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.