Skip to main content

Calltasks

A calltask in our dialer system is a predefined set of instructions for initiating and managing outbound calls as part of a specific campaign. These campaigns could be sales outreach, customer surveys, appointment reminders, or any other type of telecommunication initiative. The dialer system, equipped with a dialer robot, autonomously dials one or multiple numbers simultaneously, maximizing efficiency.

Once a call is answered, the system automatically connects the agent with the first call. Furthermore, calltasks offer versatility by supporting both automated and manual call handling.

Calltasks can be easily managed through the user interface, allowing users to import contact lists from Excel files for efficient campaign setup. Additionally, an API is available for more advanced users to integrate calltask management into their existing workflows, providing flexibility and scalability for diverse telecommunication needs.

Create calltask(s)

POST ​/itxdialer/calltaskimport

Query Parameters

NameTypeDescriptionDefault
returnImportedCallTasksBooleanTrue if all created call tasks should be returned in the responsefalse
importAsyncBooleanTrue if the request should return immediately and create call tasks in the backgroundfalse

JSON Body Attributes

NameTypeExampleDescriptionRequired
systemCodeStringMY_SYSTEMA constant describing the system that is creating the call tasksYes
callCodeInteger123The code for the call code/campaign that the call tasks will be added toYes
maxCallAttemptsInteger3Max. number of calls without answer that will be attempted for each call taskYes
minCallIntervalHoursInteger12Min. number of hours between call attempts for a given call taskYes
callTasksList of Objects[{...}]List of call task objectsYes
callTasks[*].callReceiverNameStringJohn DoeCall receiver nameYes
callTasks[*].callNumberListList of Strings["+4787654321"]List of numbers that will be called. The dialer will start at the first number and go through the list for each new call attempt.Yes
callTasks[*].extCustIdString5123Unique customer number in the system that is creating the call tasksNo
callTasks[*].systemLookupCodeString5123Code to send as an argument when opening this call task in the system that is creating the call tasksNo
callTasks[*].propertiesObject{...}List of information properties that should be added to call task/entityNo
callTasks[*].properties.emprIdInteger216ID of the existing Info field (Informasjonsfelt) in ITX PortalYes if properties is used
callTasks[*].properties.valueStringOsloA value that will be set for the specified Info field, or added to the calltask name PortalYes if properties is used
callTasks[*].properties.addToCallTaskNameBooleantrue / falseSpecifies if the "value" should be added to the call task "Call receiver name"No

Example request

{
"systemCode": "MY_SYSTEM",
"callCode": 123,
"maxCallAttempts": 3,
"minCallIntervalHours": 12,
"callTasks": [
{
"callReceiverName": "John Doe",
"extCustId": "5124",
"systemLookupCode": "5123",
"properties": [
{
"emprId": 216,
"value": "Oslo",
"addToCallTaskName": true
}
],
"callNumberList": ["+4712345678", "+4787654321"]
},
{
"callReceiverName": "Jane Doe",
"extCustId": "5124",
"systemLookupCode": "5124"
}
]
}

API Response

200 OK

The general request has been successfully handled, and statusCode and statusText will be missing in the response. Please note that one or more of the provided call tasks may still not be imported if an invalid call task was provided. Make sure to check that the callTasksErrors list is missing or empty in the response. The callTasksErrors list provides information for each call task that was not imported.

Example response
{
"callTaskErrors": [
{
"callTaskIndex": 1,
"errorCodes": [102],
"errorText": "callNumberList is missing/empty"
}
]
}

Response body

NameTypeDescriptionRequired
statusCodeIntegerA constant describing the result of the request in case of an errorIn case of an HTTP status other than 200
statusTextStringHuman readable description of the result of the request in case of an errorIn case of an HTTP status other than 200
callTaskErrorsListList of objects for each call task that could not be importedWhen 200 OK
$callTaskErrors.callTaskIndexIntegerZero-based index of the failed call task in the provided list of call tasksIn case of a call task error
$callTaskErrors.errorCodesList of IntegersList of constants describing the errorIn case of a call task error
$callTaskErrors.errorTextStringHuman readable description of the call task errorIn case of a call task error

API status/error codes

NameValue
STATUS_CODE_UNKNOWN_ERROR1
STATUS_CODE_REQUEST_MISSING2
STATUS_CODE_SYSTEM_CODE_MISSING3
STATUS_CODE_INVALID_SYSTEM_CODE4
STATUS_CODE_CALL_CODE_MISSING5
STATUS_CODE_INVALID_CALL_CODE6
STATUS_CODE_MAX_CALL_ATTEMPTS_MISSING7
STATUS_CODE_INVALID_MAX_CALL_ATTEMPTS8
STATUS_CODE_CALL_INTERVAL_MISSING9
STATUS_CODE_INVALID_CALL_INTERVAL0
STATUS_CODE_CALL_TASKS_MISSING1
STATUS_CODE_INCOMPLETE_SETUP12
STATUS_CODE_CALL_RECEIVER_NAME_MISSING101
STATUS_CODE_CALL_NUMBER_MISSING102
STATUS_CODE_CALL_NUMBER_INVALID103

400 Bad Request

The provided request was not valid, and no call tasks were imported.

500 Internal Server Error

An unexpected error occurred, and no call tasks were imported. Contact the service provider if the problem persists.