You can subscribe to offline inference results from the Summary Agent through a lightweight message queue (formerly Message Service or MNS).
Return parameters
Parameter | Type | Description |
call_id | String | The call ID. |
biz_id | String | The business ID for the inference task. |
out_id | String | A passthrough field that returns the value of the extended field from the API request. |
cell_number | String | The called number. |
success | Boolean | Indicates whether the inference was successful. |
error_code | String | The inference result code.
|
error_msg | String | The description of the inference result. |
content_length | Integer | The length of the inference content. |
duration | Integer | The billing duration, in seconds. |
start_time | String | The time the inference started. |
report_time | String | The time the report was pushed. |
type | String | The inference type. Examples: call quality inspection, call summary. |
result | String | The Summary Agent inference result. For more information, see Inference results for call quality inspection and Inference results for call summary. |
task_id | String | The task ID. This parameter is returned only for task-based outbound calls. |
task_batch_id | String | The task batch ID. This parameter is returned only for task-based outbound calls. |
task_detail_id | String | The task detail ID. This parameter is returned only for task-based outbound calls. |
Inference results for call quality inspection
Sample result:
[ { "item": "Dimension 1", "full_score": 30, "score": 27, "problem": "Specific problem description", "suggestion": "Specific suggestion for improvement" }, { "item": "Dimension 2", "full_score": 70, "score": 65, "problem": "Specific problem description", "suggestion": "Specific suggestion for improvement" } ]Field descriptions:
Parameter
Type
Description
item
String
The quality inspection item or dimension.
full_score
Integer
The full score for the quality inspection item.
score
Integer
The score for the quality inspection item.
problem
String
The problem description.
suggestion
String
The suggested improvement.
Inference results for call summary
Sample result:
{ "Enumerated Label 1": ["Value 1"], "Enumerated Label 2": ["Value 2.1", "Value 2.2"], "Text Label 1": "Content 1", "Text Label 2": "Content 2" }