Updated on 2023-09-20 GMT+08:00

/chatbot/rest/tuc/v1/qualityInspection/qiOnline/recognize

Function

Online inspection interface.

Input Parameters

Table 1

Parameter

Type

Mandatory (Yes/No)

Description

role

String

No

Role. The options are staff, customer, operator, and user.

beginTime

long

No

Start time.

endTime

long

No

End time.

callId

String

Yes

Call ID.

content

int

Yes

Description.

language

int

Yes

Language. The options are zh_CN and en_US.

Output Parameters

Parameter

Type

Description

role

String

Role.

emotion

EmotionResult

Recognition type.

dialogRules

List<DialogRule>

Dialog rule.

silenceRules

List<SilenceRules>

Silence rule.

speedRules

List<SpeedRules>

Speed rule.

interposalRules

List<InterposalRules>

Interruption rule.

EmotionResult is described as follows.

Parameter

Type

Description

score

int

Score.

emotionType

String

The value can be positive or negative.

DialogRule is described as follows.

Parameter

Type

Description

id

String

Rule ID.

name

String

A maximum of 128 characters are allowed.

description

String

A maximum of 1024 characters are allowed.

severity

String

Rule type. The options are normal and critical.

min

int

Minimum number of dialog logics. The value ranges from 1 to 100.

score

int

Rule score. The value ranges from –100 to 100.

method

String

The rule is positive or negative. The options are positive and negative.

callBegin

long

Call start time.

callEnd

long

Call end time.

SilenceRules is described as follows.

Parameter

Type

Description

id

String

Rule ID.

name

String

Rule name.

score

int

Score. The value ranges from 0 to 100.

silenceSeconds

int

Silence duration. The value range is [1, -].

silenceTimes

int

Number of silence times. The value range is [1, -].

exception

SilenceException

Expression between groups.

callBegin

long

Dialog start time.

callEnd

long

Dialog end time.

SpeedRules is described as follows.

Parameter

Type

Description

id

String

Rule ID.

name

String

Rule name (a maximum of 64 characters).

minSpeed

int

Minimum speed. The value ranges from 1 to 220.

maxSpeed

int

Maximum speed. The value range is [1, -].

score

int

Score. The value ranges from –100 to 0.

callBegin

long

Call start time.

callEnd

long

Call end time.

InterposalRules is described as follows.

Parameter

Type

Description

id

String

Rule ID.

name

String

A maximum of 128 characters are allowed.

score

int

Rule score. The value ranges from –100 to 0.

interposalTimes

int

Interruption times. The value ranges from 1 to 10000.

interposalSeconds

int

Interruption duration. The value ranges from 1 to 10000.

callBegin

long

Call start time.

callEnd

long

Call end time.

Request Example

{
      "role": "${role}",
      "beginTime": "${beginTime}",
      "endTime": "${endTime}",
      "callId": "${callId}",
      "content": "${content}",
      "language": "${language}"
}