CreateAiOutboundTask

Updated at:

Creates an intelligent outbound call task. You can set the task type, task name, outbound caller numbers, callee number deduplication policy, and more when creating the task.

Operation description

  • The Data parameter in the response is the task ID.

  • After you create an intelligent outbound call task, you can call the UpdateAiOutboundTask operation to update the task.

QPS limit

  • Per-user call frequency: not throttled.

  • API frequency: 20 calls per second.

Note

If the total calls from multiple users exceed the API frequency, throttling is triggered.

Try it now

Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.

Test

RAM authorization

No authorization for this operation. If you encounter issues with this operation, contact technical support.

Request parameters

Parameter

Type

Required

Description

Example

InstanceId

string

Yes

The ID of the Artificial Intelligence Cloud Call Service (AICCS) instance. You can obtain the instance ID from Instance Management in the left-side navigation pane of the Artificial Intelligence Cloud Call Service console.

cc_xp_pre-cn-***

Type

integer

Yes

The task type. Valid values:

  • 2: predictive outbound call.

  • 3: automatic outbound call.

Valid values:

  • 2 :

    Predictive outbound call.

  • 3 :

    Automatic outbound call.

2

Name

string

Yes

The task name. The name must be 1 to 15 characters in length.

TestTask

Description

string

No

The task description. The description can be up to 100 characters in length.

RealEstateSales

OutboundNums

array

Yes

The outbound caller numbers.

Note

The numbers must be purchased numbers. Separate multiple numbers with commas (,).

string

Yes

The outbound caller number.

Note

The numbers must be purchased numbers. Separate multiple numbers with commas (,).

["0571****5678","0571****5678"]

NumRepeated

integer

Yes

The callee number deduplication policy. Valid values:

  • 0: deduplicate within the task.

  • 1: no deduplication.

Valid values:

  • 0 :

    Deduplicate within the task.

  • 1 :

    No deduplication.

1

HandlerId

integer

Yes

The skill group ID (for predictive outbound calls) or IVR ID (for automatic outbound calls). You can obtain this information from the Artificial Intelligence Cloud Call Service console.

123456

ExecutionTime

string

Yes

The task execution time. The value is in JSON format.

Note

The end time (end) must be later than the start time (start).

{"TUESDAY":[{"start":"06:00","end":"06:05"}],"MONDAY":[{"start":"09:00","end":"18:00"},{"start":"20:30","end":"21:45"},{"start":"22:30","end":"22:50"}],"WEDNESDAY":[{"start":"09:00","end":"18:00"}],"THURSDAY":[{"start":"09:00","end":"18:00"}],"FRIDAY":[{"start":"09:00","end":"18:00"}],"SATURDAY":[{"start":"09:00","end":"18:00"}],"SUNDAY":[{"start":"17:00","end":"23:45"}]}

ConcurrentRate

integer

No

The call concurrency for automatic outbound calls.

10

RecallRule

object

No

The failed call retry policy.

Note

If the value is empty, no retry is performed.

Count

integer

No

The number of retries. Valid values: 1 to 3.

1

Interval

integer

No

The retry interval. Valid values: 1 to 60. Unit: minutes.

1

ForecastCallRate

number

No

The fixed call ratio for predictive outbound calls. Valid values: ≥ 1.

1.5

Response elements

Element

Type

Description

Example

object

The response parameters.

RequestId

string

The request ID.

EE338D98-9BD3-4413-B165

Message

string

The description of the status code.

OK

Data

integer

The task ID.

123456

Code

string

The request status code.

OK

Success

boolean

Indicates whether the call was successful. Valid values:

  • true: The call was successful.

  • false: The call failed.

true

Examples

Success response

JSON format

{
  "RequestId": "EE338D98-9BD3-4413-B165",
  "Message": "OK",
  "Data": 123456,
  "Code": "OK",
  "Success": true
}

Error codes

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.