You can subscribe to call notes receipt messages (AlicomAgentCallNote) from the communication intelligent agent via HTTP batch push. After a call ends, you receive key information about the call, including its main intent and output tags.
Protocol
Category | Description |
Protocol | HTTP + JSON |
Encoding | UTF-8 |
Request
The request body is a JSON array.
Request example
[{ "callId": "10000161****^1000018****", "majorIntent": "A", "outputTags": { "Interested Vehicle Model": "xx Vehicle Model", "Add WeChat": ["Yes"] }, "taskId": "1181**************", "detailId": "9662*************", "batchId": "B202******", "outId": "123456", "conversationRecord": "", "call_times": 1, "realCaller": "0571********" }]Field descriptions
Parameter
Type
Example
Description
callId
String
10000161****^1000018****
The
call ID.majorIntent
String
A
The
main intent ID.outputTags
Object
{
"Interested Vehicle Model": "xx Vehicle Model",
"Add WeChat": ["Yes"]
}
An object that contains business-related
output tags. Note: If the output tag type is text, the value is a string; if the output tag type is an enumeration, the value is a string list.taskId
String
1181**************
The
task ID.detailId
String
9662*************
The
detail ID.batchId
String
B202******
The
batch ID.outId
String
123456
If you provided an
outIdwhen initiating the task, this field returns the same value.conversationRecord
String
[
{
"content": "Hello.",
"role": "assistant"
},
{
"content": "No, thank you.",
"role": "user",
"transactionId": "b****-***-****-****-*****cb476c"
}
]
The ASR-transcribed text of the conversation. This field is empty if its content exceeds the maximum message length.
call_times
Number
1
The
number of calls. A value of 1 indicates the first call attempt.realCaller
String
0571********
The
actual calling number.
Response
Response example
{ "code": 0, "msg": "Received successfully" }Field descriptions
Parameter
Type
Required
Description
Sample value
code
Number
Yes
The
response code.0
msg
String
No
A descriptive message.
Received successfully
The system only validates that the returned
codeis a number and does not check its value. AHTTP status codeof 200 indicates success. If theHTTP status codeis not 200 or the request times out, the system initiates apush retry.If a system exception or processing failure occurs on your endpoint, return a 5xx
HTTP status code.
Push retry
The system retries a failed push at 1, 5, and 10-minute intervals. After three unsuccessful retries, the system makes no further attempts.