Queries the status and result of a general service insight task.
Endpoint
Request method
POST
Request headers
Request parameters
Name | Type | Required | Description | Example |
|---|---|---|---|---|
model | string | Yes | The business type. The value is fixed to | tingwu-service-insights |
input | object | Yes | Provide the relevant business parameters. | |
input.task | string | Yes | The task type. The value is fixed to | getTask |
input.dataId | string | Yes | The ID of the audio task to query. Obtain this ID from the response parameters of the createTask task. | wkb*** |
Response parameters
Name | Type | Description | Example/Parsing protocol |
|---|---|---|---|
code | string | The error code. | |
message | string | The error message. | |
request_id | string | The request ID. | f97ee37d-0f9c-9b93-b6bf-bd263a232bf9 |
usage | object | The usage. | |
output | object | The business response body. | |
output.status | string | The task status:
| 0 |
output.errorCode | string | The error code returned if the task is submitted but fails to execute (when | TSC.FileError |
output.errorMessage | string | The error message returned if the task is submitted but fails to execute (when | "File cannot be read." |
output.transcriptionPath | string | The OSS URL of the speech-to-text result. For more information, see Parsing protocol for output.transcriptionPath. | For the parsing protocol of the file content corresponding to the OSS URL, see: |
output.generalServiceInsightsPath | string | The OSS URL of the insight result. For more information, see Parsing protocol for output.generalServiceInsightsPath. | |
output.generalSaleInsightsPath | string | The OSS URL of the analysis result. For more information, see |
Parsing protocol for output.transcriptionPath
The top-level element is an object. The fields are described as follows:
Name | Type | Description | Example |
|---|---|---|---|
paragraphs | Array | A list of paragraphs. | |
paragraphs[i].paragraphId | String | The paragraph ID. | 16987422100275***** |
paragraphs[i].speakerId | String | The speaker ID. | 1 |
paragraphs[i].words | Array | A list of words. | |
paragraphs[i].words[i].id | Integer | The word ID. | 10 |
paragraphs[i].words[i].sentenceId | Integer | The sentence ID. | 1 |
paragraphs[i].words[i].start | Integer | The start time in milliseconds. | 4970 |
paragraphs[i].words[i].end | Integer | The end time in milliseconds. | 5560 |
paragraphs[i].words[i].text | String | The word text. | I am |
Parsing protocol for output.generalServiceInsightsPath
The top-level element is an object. The fields are described as follows:
Name | Type | Description | Example value |
|---|---|---|---|
generalServiceInsights[i].title | string | The name of the service quality inspection result. This corresponds to the serviceInsights.InsightsContents[i].title in the request parameters. | Store arrival greeting - Welcome message |
generalServiceInsights[i].matched | boolean | Indicates whether this service quality inspection item is hit. | true |
generalServiceInsights[i].remarks | string | The analysis of this inspection item by the large model. | The sales representative started the conversation with a question, showing some greeting intent. |
generalServiceInsights[i].score | string | The final score of this insight item:
| 20 |
generalServiceInsights[i].matchedSentenceIds | list[] | The sentence IDs in the original conversation that hit this inspection item. | [1, 2, 3] |
Parsing protocol for output.generalSaleInsightsPath
The top-level element is an object. The fields are described as follows:
Name | Type | Description | Example |
|---|---|---|---|
missedSum | int | The number of insight items that were not hit. | 5 |
matchedSum | int | The number of insight items that were hit. | 10 |