ImportTaskNumberDatas

Updated at:

Imports callee data for a call task.

Operation description

  • You can call this operation to import callee data. You can also import callee data by clicking Import Callee Data on the Call Task Management page, downloading the template, and uploading a file.

  • This operation currently supports only the JSON data type for importing callee data.

  • Before calling this operation, make sure that a call task has been created.

  • If you do not have a created call task, you can create one on the Call Task Management page or by calling the CreateAiCallTask operation.

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

OssFileName

string

No

The Object Storage Service (OSS) file path. This parameter is optional.

Note

API calls do not currently support the Excel data type. Therefore, you cannot specify an OSS file path.

123dsdfsdfsdf.xlsx

TaskId

string

Yes

The task ID.

119181071278******

PhoneNumberList

array<object>

No

If DataType is set to JSON, you must use this field to upload data. You can upload a maximum of 1,000 entries at a time.

object

No

The data structure is as follows:

{
    "calleeNumber":"Callee number",
    "outId":"Reserved key. This field can be used to carry a unique external transaction ID. The field is returned in the receipt and can be used as a unique call record to facilitate receipt association. Maximum length: 128 characters.",
    "calledPhoneNumber.extension":"Extension number. Specify this parameter when the callee number is a switchboard and an extension number needs to be dialed. If this parameter is empty or not specified, the number is called as a regular number.",
    "variable1":"value",
    "variable2":"value" // Fields other than calleeNumber are passed through to the outbound call process as variables and can be used in scenarios such as agent prompts and opening remarks. If call variables are used in the agent, variable1 and variable2 represent the keys of the variables, and value represents the values of the variables.
  }
Note

You can view call variables on the Call Variable Settings page by navigating to Communication Agent Management > Details. Extension number description: For batch import, include the calledPhoneNumber.extension field in the element. For single import (ImportOnePhoneNumber), the top-level Extension parameter is supported and has the same effect. The calledPhoneNumber.extension column has been added to the Excel template. During an outbound call, the system automatically identifies this field and passes it through to the intelligent outbound call gateway to initiate the call in the format of "switchboard + extension". The agent can read the extension number through the system variable calledPhoneNumber.extension. Example of call variable configuration for an engine call task: { "calleeNumber": "Callee number", "calledPhoneNumber.extension": "122121", "outId": "", "startWordParam.variableKey1": "xxx", "promptParam.variableKey2": "xx", "bizParam.variableKey3": "xx" }

{ "calleeNumber": "0534556****", "calledPhoneNumber.extension": "12213", "outId": "CFC2F07E-F763-7C48-1A32-6EFFB6EA344E", "name": "Tom", "age": "18" } For the example of call variable configuration for an engine call task, see the description

DataType

string

Yes

The data type. Valid values:

  • EXCEL

  • JSON
    Important API calls currently support only the JSON data type.

Valid values:

  • EXCEL :

    Excel data.

  • JSON :

    JSON data.

JSON

EncryptionType

integer

No

The encryption method. Valid values: 0: no encryption. 1: MD5. 2: SHA256. 3: SM3.

1

Response elements

Element

Type

Description

Example

object

AccessDeniedDetail

string

The detailed reason for the access denial.

None

Message

string

The status code description.

OK

RequestId

string

The request ID.

CFC2F07E-F763-7C48-1A32-6EFFB6EA344E

Data

integer

The import batch ID.

123497836486******

Code

string

The request status code. If OK is returned, the request is successful.

OK

Success

boolean

Indicates whether the operation was called successfully. Valid values:

  • true: The call was successful.

  • false: The call failed.

true

Examples

Success response

JSON format

{
  "AccessDeniedDetail": "None",
  "Message": "OK",
  "RequestId": "CFC2F07E-F763-7C48-1A32-6EFFB6EA344E",
  "Data": 0,
  "Code": "OK",
  "Success": true
}

Error codes

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.