GetTask - Query the status and results of an automotive sales and service insights task
Use this operation to query the status and results of an automotive sales and service insights task.
Prerequisites
Activate the service and obtain and configure an API key. To prevent security risks from code leaks, configure the API key as an environment variable instead of hard coding it in your code.
NoteTo grant temporary access permissions to third-party applications or users, or want to strictly control risky operations such as accessing or deleting sensitive data, you can use a temporary authentication token.
Compared to a long-term API key, a temporary authentication token is valid for only a short period (60 seconds) and offers higher security. It is suitable for temporary call scenarios and can effectively reduce the risk of API key leaks.
Usage: In your code, replace the API key used for authentication with the obtained temporary authentication token.
Endpoint
https://dashscope.aliyuncs.com/api/v1/services/aigc/multimodal-generation/generation
Request method
POST
Request headers
Authorization: Bearer {api-key} // Replace {api-key} with your actual API key.
Content-Type: application/json
Request parameters
Name | Type | Required | Description | Example |
|---|---|---|---|---|
model | string | Yes | Defines the business type. Set the value to | tingwu-automotive-service-insights |
input | object | Yes | Specify the relevant business parameters. | |
input.task | string | Yes | Defines the task type. Set the value 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 was submitted but failed to execute (when | TSC.FileError |
output.errorMessage | string | The error message returned if the task was submitted but failed 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.serviceInsightsPath | string | The OSS URL of the insights result. For more information, see Parsing protocol for output.serviceInsightsPath. | |
output.saleInsightsPath | string | The OSS URL of the analysis result. For more information, see Parsing protocol for output.serviceInsightsPath. |
Parsing protocol for output.transcriptionPath
The outermost layer is an object. The fields are as follows:
Name | Type | Description | Example |
|---|---|---|---|
paragraphs | Array | A list of paragraphs. | |
paragraphs[i].paragraphId | String | 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 |
The following is a JSON example:
{
"paragraphs": [
{
"paragraphId": "16987422100275*******",
"speakerId": "1",
"words": [
{
"id": 10,
"sentenceId": 1,
"start": 4970,
"end": 5560,
"text": "Hello,"
},
{
"id": 20,
"sentenceId": 1,
"start": 5730,
"end": 6176,
"text": "I am"
}
]
}
]
}
Parsing protocol for output.serviceInsightsPath
The outermost layer is an object. The fields are as follows:
Name | Type | Description | Example |
|---|---|---|---|
serviceInsights[i].title | string | The name of the service quality inspection result. This corresponds to the `serviceInsights.InsightsContents[i].title` input parameter. | Store Arrival Greeting - Welcome Message |
serviceInsights[i].matched | boolean | Indicates whether this service quality inspection item was hit. | true |
serviceInsights[i].remarks | string | The large model's analysis of this quality inspection item. | The sales representative started the conversation with a question, showing some intent to greet. |
serviceInsights[i].score | string | The final score for this insights item:
| 20 |
serviceInsights[i].matchedSentenceIds | list[] | The sentence IDs from the original conversation that hit this quality inspection item. | [1, 2, 3] |
The following is a JSON example:
"serviceInsights": [
{
"title": "Store Arrival Greeting - Welcome Message",
"matched": true,
"remarks": "The sales representative started the conversation with a question, showing some intent to greet.",
"matchedSentenceIds": [1, 3, 5]
},
{
"title": "Store Departure Farewell - Customer Information Retention",
"matched": true,
"remarks": "The sales representative suggested adding on WeChat for future contact.",
"matchedSentenceIds": [2, 4]
},
{
"title": "Store Arrival Greeting - Beverage Offer",
"matched": false,
"remarks": "No information about offering a beverage was mentioned in the conversation.",
"matchedSentenceIds": []
}
]
Parsing protocol for output.saleInsights
The outermost layer is an object. The fields are as follows:
Name | Type | Description | Example |
|---|---|---|---|
missedSum | int | The number of missed insights items. | 5 |
matchedSum | int | The number of hit insights items. | 10 |
The following is a JSON example:
"saleInsights": {
"missedSum": 20,
"matchedSum": 2
}
Request example
Replace sk-*** in the Authorization request header with your actual Alibaba Cloud Model Studio API key.
curl --location 'https://dashscope.aliyuncs.com/api/v1/services/aigc/multimodal-generation/generation' \
--header 'Authorization: Bearer sk-***' \
--header 'Content-Type: application/json' \
--data '{
"model": "tingwu-automotive-service-insights",
"input": {
"dataId": "***",
"task": "getTask"
}
}'
Response example
{
"output": {
"serviceInsightsPath": "https://***.oss-cn-hangzhou.aliyuncs.com/agentic/prepub/CommonDataField/servInspec/1627865205776705/llm-3cx2a3o4n8y45iee/2025/07/11/***?Expires=1752299850&OSSAccessKeyId=YOUR_ACCESS_KEY_ID&Signature=YOUR_SIGNATURE",
"saleInsightsPath": "https://***.oss-cn-hangzhou.aliyuncs.com/agentic/prepub/CommonDataField/saleInspec/1627865205776705/llm-3cx2a3o4n8y45iee/2025/07/11/***?Expires=1752299850&OSSAccessKeyId=YOUR_ACCESS_KEY_ID&Signature=YOUR_SIGNATURE",
"status": 0,
"transcriptionPath": "https://***.oss-cn-hangzhou.aliyuncs.com/agentic/prepub/CommonDataField/transcription/1627865205776705/llm-3cx2a3o4n8y45iee/2025/07/11/***?Expires=1752299850&OSSAccessKeyId=YOUR_ACCESS_KEY_ID&Signature=YOUR_SIGNATURE"
},
"usage": {},
"request_id": "fccef963-ebb4-98f2-9c2b-6bd9f1b9b094"
}