CreateTask
Create an Artificial Intelligence Cloud Call Service robot outbound calling job.
Operation description
You can invoke this API to create a job, or create one in the Artificial Intelligence Cloud Call Service console > Outbound Robot (Standard Edition) > Task Management by clicking Create Job.
After invoking this API, the Data field in the response contains the unique job ID of the robot outbound calling task.
Queries per second (QPS) limits
Per-user invocation frequency: No rate limiting.
API frequency: 500 queries per second (QPS).
If the total invocations from multiple users exceed the API frequency limit, throttling will be triggered.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
aiccs:CreateTask |
create |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| TaskName |
string |
Yes |
Task Name. Supports Chinese and English characters. Length: 0 to 30 characters. |
测试任务 |
| RobotId |
string |
Yes |
ID of the specified robot (script ID), indicating which robot script to use for initiating calls. You can obtain the script ID on the Script Management page in the console. |
12**** |
| Caller |
string |
Yes |
Outbound caller number. Note
The number must be a purchased number. Separate multiple numbers with commas (,). |
0571****5678,0571****5679 |
| CallString |
string |
No |
Call string (callee information and parameter list). Valid values:
Note
|
{"ParamNames":["name","age"],"CalleeList":[{"Callee":"1810000****","Params":["张三","20"]},{"Callee":"1810001****","Params":["李四","21"]}]} |
| CallStringType |
string |
Yes |
Call string type. Valid values:
|
JSON |
| RetryFlag |
integer |
No |
Whether to enable automatic retry. Valid values:
|
1 |
| RetryCount |
integer |
No |
Retry Count. |
2 |
| RetryInterval |
integer |
No |
Retry interval. Unit: minute. Must be greater than 1. |
2 |
| RetryStatusCode |
string |
No |
Call statuses that require redialing. Separate multiple statuses with commas (,). Valid values:
|
200010,200011 |
| StartNow |
boolean |
No |
Indicates whether to start immediately.
|
是 |
| WorkTimeList |
string |
Yes |
List of working hours (accurate to the minute). |
10:00-12:00,13:00-14:00 |
| WorkDay |
string |
Yes |
Work day. Valid values:
|
1 |
| SeatCount |
string |
Yes |
Concurrency (number of agents). |
3 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
Schema of Response |
||
| RequestId |
string |
Request ID. |
EE338D98-9BD3-4413-B165 |
| Message |
string |
Description of the status code. |
OK |
| Data |
integer |
Unique job ID of the robot outbound calling task. |
12**** |
| Code |
string |
Request status code. A return value of "OK" indicates that the request succeeded. |
OK |
| Success |
boolean |
Indicates whether the API call succeeded.
|
true |
Examples
Success response
JSON format
{
"RequestId": "EE338D98-9BD3-4413-B165",
"Message": "OK",
"Data": 0,
"Code": "OK",
"Success": true
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | PermissionInsufficient | Insufficient permissions. Please contact the Alibaba Cloud account administrator. | |
| 400 | ParameterError | The parameter is invalid. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.