CreateCampaign
Creates a predictive dialing campaign under a specified instance.
Operation description
Creates a predictive dialing campaign under a specified instance.
Try it now
Test
RAM authorization
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| InstanceId |
string |
Yes |
The instance ID. |
ccc-test |
| CaseList |
array<object> |
No |
The list of contacts for the predictive dialing campaign. This parameter cannot be used together with CaseFileKey, which is used for importing contacts from a file. You can choose to import contacts either from a file or from a list. |
|
|
object |
No |
The contact for the predictive dialing campaign. |
||
| ReferenceId |
string |
No |
The business ID, which is an identifier in the customer's business system and is used in integration scenarios. |
01 |
| PhoneNumber |
string |
No |
The phone number of the contact. |
1888888888 |
| CustomVariables |
string |
No |
The custom variables of the customer. The value is a JSON object that contains up to 10 properties. The name and value of each property are customized by the customer. |
{"name":"customer","CustomerTag":"tag"} |
| QueueId |
string |
Yes |
The ID of the skill group associated with the predictive dialing campaign. |
skillgroup@ccc-test |
| Name |
string |
Yes |
The name of the predictive dialing campaign. |
test-campaign |
| CaseFileKey |
string |
No |
The key of the Object Storage Service (OSS) object that stores the contact file for the predictive dialing campaign. You can obtain the key by calling the GetCaseFileUploadUrl operation. |
ccc-test/namelist.csv |
| ContactFlowId |
string |
Yes |
The ID of the contact flow associated with the predictive dialing campaign. |
c1f2bc75-422e-43c7-9c9d9d95633a |
| StartTime |
string |
Yes |
The start time of the predictive dialing campaign. The value is a UNIX timestamp in milliseconds. |
1634140800000 |
| EndTime |
string |
Yes |
The end time of the predictive dialing campaign. The value is a UNIX timestamp in milliseconds. |
1634313600000 |
| CallableTime |
string |
Yes |
The callable time period for the predictive dialing campaign. The value is a JSON object that contains two properties: beginTime and endTime. Example: [{"beginTime":"00:00:00","endTime":"23:00:00"}]. |
[{"beginTime":"00:00:00","endTime":"23:00:00" }] |
| StrategyType |
string |
Yes |
The strategy mode of the predictive dialing campaign. Valid values:
|
PACING |
| StrategyParameters |
string |
Yes |
The strategy parameters of the predictive dialing campaign. Example for the PID strategy: {"abandonRate":"5","historicalConnectedRate":"35"}. Example for the PACING strategy: {"ratio":1}. abandonRate specifies the expected abandonment rate, historicalConnectedRate specifies the historical reference connection rate, and ratio specifies the fixed dialing ratio. |
{"ratio":1} |
| MaxAttemptCount |
integer |
Yes |
The maximum number of call attempts for the predictive dialing campaign. This parameter specifies the maximum number of times a failed call can be retried. |
1 |
| MinAttemptInterval |
integer |
Yes |
The minimum retry interval for the predictive dialing campaign. This parameter specifies the minimum interval between retry attempts for failed calls, in minutes. |
1 |
| Simulation |
boolean |
No |
Specifies whether the campaign is a simulated campaign for testing purposes. Regular customers do not need to pay attention to this parameter. |
None |
| SimulationParameters |
string |
No |
The simulation parameters for testing purposes. Regular customers do not need to pay attention to this parameter. |
None |
| ExecutingUntilTimeout |
boolean |
No |
Specifies whether to keep the campaign in the executing state until it expires. Default value: false. If this parameter is set to false, the campaign automatically changes to the completed state after all contacts are called. If this parameter is set to true, the campaign does not automatically change to the completed state after all contacts are called. Instead, it remains in the executing state, and you can continue to add contacts to the campaign for dialing until the campaign expires or is manually stopped. |
false |
| FlashSmsParameters |
string |
No |
The flash message parameters. |
{"applicationId":"08e6b63a-****-****-****-689a288cdbb5","templateId":"325"} |
| NumberList |
array |
No |
The list of caller numbers. |
|
|
string |
No |
The number. |
01012345678 |
|
| InstGroupId |
string |
No |
The ID of the number group. |
0d368091-2c70-4d26-979a-6997ddc9c34f |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
Schema of Response |
||
| RequestId |
string |
The request ID. |
7CC6523B-0E51-1B62-8DA5-6A9831CAE315 |
| Data |
string |
The ID of the predictive dialing campaign. |
c58b9719-3bc3-441d-a4d3-fc0309ef7066 |
| Code |
string |
The response code. |
OK |
| Message |
string |
The response message. |
None |
| HttpStatusCode |
integer |
The HTTP status code. |
200 |
Examples
Success response
JSON format
{
"RequestId": "7CC6523B-0E51-1B62-8DA5-6A9831CAE315",
"Data": "c58b9719-3bc3-441d-a4d3-fc0309ef7066",
"Code": "OK",
"Message": "无",
"HttpStatusCode": 200
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.