AgentInfo

Updated at:

Parameter

Type

Description

Example

object

The agent configuration information. When you call the API operation, serialize the fields of this structure into JSON. The server routes requests to different processing pipelines, such as text or audio, based on InputType, and routes requests to different instruction processors, such as key property extraction, service quality inspection, or label classification, based on InstructionType.

Id

integer

The unique identifier of the agent configuration.

1001

AgentName

string

The name of the agent.

Customer service quality inspection assistant

AgentDescription

string

The description of the agent.

Agent for customer service session quality inspection

ModelType

string

The type of the large language model.

qwen-max

InputType

string

The object type for analysis. Valid values: audio and text.

text

InstructionType

string

The instruction type. Valid values: serviceInspection (service quality inspection), field (key property extraction), tagCategory (label classification), multiLevelTag (multi-level label recognition), and customPrompt (custom instruction).

field

InstructionTypeParam

object

The parameters corresponding to the instruction type. Different InstructionType values require different sub-parameters. Specify only the sub-parameters that correspond to the current InstructionType and leave the others empty.

FieldsParam

object

The key attribute extraction parameters. Used when InstructionType is set to field.

NameDescPairList

array

The list of attribute dimensions to be extracted.

object

The attribute dimension object.

Name

string

The attribute name. This parameter is required.

Customer request

Desc

string

The attribute description. This parameter is optional.

The specific request raised by the customer during the session

Value

string

The attribute value. In the key attribute extraction scenario, this is the extracted result value corresponding to the dimension.

Refund

ServiceInspectionParam

object

The service quality inspection parameters. Used when InstructionType is set to serviceInspection.

SceneName

string

The name of the quality inspection scenario. This parameter is required.

After-sales service quality inspection

SceneDescription

string

The description of the quality inspection scenario. This parameter is optional.

Service quality inspection for after-sales customer service sessions

Dimensions

array

The list of quality inspection dimensions. This parameter is required.

object

The quality inspection dimension object.

Dimension

string

The dimension name. This parameter is required.

Service attitude

Desc

string

The dimension description. This parameter is optional.

Whether the customer service representative is polite and patient

TagCategoryParam

object

The label classification parameters. Used when InstructionType is set to tagCategory.

NameDescPairList

array

The list of label classification dimensions. This parameter is required.

object

The label classification dimension object.

Name

string

The dimension name.

Issue type

Desc

string

The dimension description.

The classification of the types of issues consulted by the customer

ValueList

array

The list of candidate tag values.

string

The candidate tag value.

Inquiry

CustomPromptParam

object

The custom instruction parameters. Used when InstructionType is set to customPrompt.

CustomPrompt

string

The content of the user-defined prompt template. This parameter is required.

Analyze the service attitude of the customer service representative in the following conversation

NameDescPairList

array

The list of name-value pairs attached to the custom instruction.

object

The name-value pair object.

Name

string

The name.

Scenario

Value

string

The value.

After-sales inquiry

TagTreeLevelParam

object

The multi-level tag recognition parameters. Used when InstructionType is set to multiLevelTag.

TagIds

array

The list of starting parent tag IDs at runtime. The first ID is treated as the matched parent tag, and recognition proceeds level by level from its child nodes, skipping the preceding levels. This field also takes effect when AgentId is specified.

integer

The parent tag ID.

100

TagTreeLevels

array

The recognition configuration for each level, arranged in hierarchical order. This parameter is required.

object

The single-level tag recognition configuration object.

TagTreeIds

array

The list of candidate tag IDs for this level. A value of -1 indicates that all tags at this level are selected. This parameter is required.

integer

The candidate tag ID. A value of -1 indicates that all tags at this level are selected.

-1

Prompt

string

The analysis prompt for this level. It is concatenated with the tag data and sent to the large language model. This parameter is required.

Determine which tag category this conversation belongs to