SearchTask
Search for tasks.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
outboundbot:SearchTask |
list |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| InstanceId |
string |
Yes |
Instance ID |
d481cebe-0bb6-4d13-9649-42ce5074fb75 |
| TaskCreateTimeGte |
integer |
No |
Start time of the task Note
You must specify both TaskCreateTimeGte and TaskCreateTimeLte. If you omit either, the filter does not work. |
1646792941 |
| TaskCreateTimeLte |
integer |
No |
End time of the task Note
You must specify both TaskCreateTimeGte and TaskCreateTimeLte. If you omit either, the filter does not work. |
1646792941 |
| JobGroupId |
string |
No |
Job group ID |
3a30ae7c-27b2-4305-9444-7185ced9d51f |
| JobGroupNameQuery |
string |
No |
Job group name |
国寿财住院保续保_20220301_134130 |
| JobId |
string |
No |
Job ID |
11994321-e6bc-47bb-8b1c-8eef8f2f768b |
| CalledNumber |
string |
No |
Called number |
15126426342 |
| UserIdMatch |
string |
No |
User ID. A unique identifier for a user. Note
This field is passed when you upload an outbound call list.
|
C01 |
| TaskId |
string |
No |
Task ID |
744b27f3-437f-4a8c-a181-f668e492fd24 |
| ActualTimeGte |
integer |
No |
Call start time |
1646582400000 |
| ActualTimeLte |
integer |
No |
Call end time |
1643126399000 |
| RecordingDurationGte |
integer |
No |
Minimum ring duration, in seconds |
10 |
| RecordingDurationLte |
integer |
No |
The minimum ringing duration for the search. |
60 |
| PageIndex |
integer |
No |
Page number Note
The first page is 0. |
2 |
| PageSize |
integer |
No |
Number of items per page Note
If you omit this parameter, the default value is 10. |
10 |
| OtherId |
string |
No |
Other ID Valid values include the following:
|
AVD-2021-39685 |
| SortBy |
string |
No |
Sort field. Default value: actualTime |
actualTime |
| SortOrder |
string |
No |
Sort order. Valid values:
|
desc |
| CallDurationGte |
integer |
No |
Minimum call duration, in milliseconds |
12341155 |
| CallDurationLte |
integer |
No |
Maximum call duration, in milliseconds |
12341155 |
| JobStatusStringList |
string |
No |
Job status. Separate multiple statuses with commas. If you specify this parameter, it overrides jobStatusList.
|
Succeeded |
| TaskStatusStringList |
string |
No |
Call status. Separate multiple statuses with commas.
|
Executing |
| ScriptNameQuery |
string |
No |
Scenario name |
国寿财 |
| CallingNumber |
string |
No |
Calling number |
051085500215 |
| LabelsJson |
array |
No |
Label-based filter condition for calls Note
You can only use labels that have specific enumeration values. For example, labels configured with specific values in Large Language Model (LLM) scenarios. |
|
|
string |
No |
Label name and corresponding label value to filter. Note
Filters all calls where the specified label has the specified value. For example: {"ValueList":["Satisfied","Dissatisfied"],"Name":"Satisfaction"} filters calls where the "Satisfaction" label equals "Satisfied" or "Dissatisfied". |
{ "ValueList": [ "满意", "不满意" ], "Name": "是否满意" } |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| HttpStatusCode |
integer |
HTTP status code |
200 |
| PageIndex |
integer |
Page number |
0 |
| RequestId |
string |
Request ID |
254EB995-DEDF-48A4-9101-9CA5B72FFBCC |
| Success |
boolean |
Indicates whether the request succeeded |
true |
| Code |
string |
Request status code |
OK |
| Message |
string |
Response message |
Success |
| PageSize |
integer |
Number of items per page |
10 |
| Total |
integer |
Total number of items |
2 |
| SearchTaskInfoList |
array<object> |
List of tasks |
[] |
|
array<object> |
List of tasks |
||
| JobGroupName |
string |
Job group name |
85成新(有笔记划线)2021_11_14_18_00_51 |
| UserId |
string |
User ID |
12334134 |
| ActualTime |
integer |
Actual execution time |
1643436089677 |
| CalledNumber |
string |
Called number |
15205879599 |
| TaskStatusString |
string |
Task status
|
Executing |
| TaskStatusName |
string |
Display text for task status
|
正在拨打 |
| JobStatus |
integer |
Job status
|
0 |
| DialException |
string |
Exception details |
[{"code":"OutboundCallError.SipCodeError", "params":[{"key":"SipCode","value":"500"}]}] |
| UserName |
string |
Username |
xxx |
| CallDurationDisplay |
string |
Call duration |
47″ |
| HasAnswered |
boolean |
Indicates whether the called party answered |
true |
| JobStatusName |
string |
Display text for job status
|
调度中 |
| CallDuration |
integer |
Call duration, in milliseconds |
46000 |
| TaskCreateTime |
integer |
Task creation time |
1646792941 |
| JobStatusString |
string |
Job status
|
Scheduling |
| HasReachedEndOfFlow |
boolean |
Indicates whether the conversation ended |
true |
| InstanceId |
string |
Instance ID |
73df6283-26b2-402d-bad0-ffa489923ea1 |
| HasHangUpByRejection |
boolean |
Indicates whether the call ended due to rejection |
true |
| TaskEndReason |
integer |
Reason why the task ended
|
OutOfService |
| JobGroupId |
string |
Job group ID |
37db3113-ad34-4ba3-b930-468f016bbf95 |
| TaskStatus |
integer |
Valid values:
|
0 |
| JobId |
string |
Job ID |
6203248e-e652-4ef8-a1eb-586ed7b54dc2 |
| RecordingDuration |
integer |
Ringing duration, in seconds |
10 |
| TaskId |
string |
Task ID |
479aea04-3a92-4ac3-935d-c8798c667850 |
| DialExceptionOld |
string |
Exception details |
["OutboundCallError.SipTrunkError"] |
| DialExceptionCodes |
array |
Exception codes shown on the remarks page |
|
|
string |
List of exception codes |
[ { "code":"OutboundCallError.SipCodeError", "hint":"线路侧异常码:480, 首先确定主叫和被叫正确,其次再联系号码和线路的供应商处理!" } ] |
|
| HasLastPlaybackCompleted |
boolean |
Indicates whether the last audio playback completed before hangup |
true |
| ScriptName |
string |
Scenario name |
慢病线索 |
| CallingNumber |
string |
Calling number |
02152739269 |
| Labels |
array<object> |
Labels matched for this outbound call |
|
|
object |
|||
| K |
string |
Label name |
是否满意 |
| V |
string |
Matched label value |
是 |
| VariableNames |
array |
Complete list of label keys |
|
|
string |
Complete list of label keys |
["是否满意","是否是本人","是否收到"] |
|
| Labels |
array<object> |
Labels available for filtering. Note
Displays all labels with enumeration values in this job group. |
|
|
object |
|||
| Name |
string |
Label name |
是否满意 |
| ValueList |
array |
List of label values |
|
|
string |
Label value |
["否","是"] |
Examples
Success response
JSON format
{
"HttpStatusCode": 200,
"PageIndex": 0,
"RequestId": "254EB995-DEDF-48A4-9101-9CA5B72FFBCC",
"Success": true,
"Code": "OK",
"Message": "Success",
"PageSize": 10,
"Total": 2,
"SearchTaskInfoList": [
{
"JobGroupName": "85成新(有笔记划线)2021_11_14_18_00_51",
"UserId": "12334134",
"ActualTime": 1643436089677,
"CalledNumber": "15205879599",
"TaskStatusString": "Executing",
"TaskStatusName": "正在拨打",
"JobStatus": 0,
"DialException": "[{\"code\":\"OutboundCallError.SipCodeError\", \"params\":[{\"key\":\"SipCode\",\"value\":\"500\"}]}]",
"UserName": "xxx",
"CallDurationDisplay": "47″",
"HasAnswered": true,
"JobStatusName": "调度中",
"CallDuration": 46000,
"TaskCreateTime": 1646792941,
"JobStatusString": "Scheduling",
"HasReachedEndOfFlow": true,
"InstanceId": "73df6283-26b2-402d-bad0-ffa489923ea1",
"HasHangUpByRejection": true,
"TaskEndReason": 0,
"JobGroupId": "37db3113-ad34-4ba3-b930-468f016bbf95",
"TaskStatus": 0,
"JobId": "6203248e-e652-4ef8-a1eb-586ed7b54dc2",
"RecordingDuration": 10,
"TaskId": "479aea04-3a92-4ac3-935d-c8798c667850",
"DialExceptionOld": "[\"OutboundCallError.SipTrunkError\"]",
"DialExceptionCodes": [
"[\t\t\t\t\t{\t\t\t\t\t\"code\":\"OutboundCallError.SipCodeError\",\t\t\t\t\t\"hint\":\"线路侧异常码:480, 首先确定主叫和被叫正确,其次再联系号码和线路的供应商处理!\"\t\t\t}\t\t\t\t]"
],
"HasLastPlaybackCompleted": true,
"ScriptName": "慢病线索",
"CallingNumber": "02152739269",
"Labels": [
{
"K": "是否满意",
"V": "是"
}
]
}
],
"VariableNames": [
"[\"是否满意\",\"是否是本人\",\"是否收到\"]"
],
"Labels": [
{
"Name": "是否满意",
"ValueList": [
"[\"否\",\"是\"]"
]
}
]
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.