Skip to main content

Call Center Queueing Services

Create Interaction#

In order to initiate a call via the Diyalog servers, the API detailed below is expected to be prepared.

Request URI#

https://<YOUR-API-ENDPOINT>/CreateInteraction

Request Method#

POST

Request#

Sample Request:

{
"customerId" : "<customer No>",
"attachedData" : [
{
"<some-data-name>" : "<data-value>"
},
{
"<some-data-name>" : "<data-value>"
},
{
"<some-data-name>" : "<data-value>"
},
...
{
"<data-name-name>" : "<data-value>"
}
]
}

`

Details of the fields in the above request are given below.

Field NameTypeDefinition
customerIdStringIn this field, the number of the customer whose call will be initiated will be transmitted to the service.
attachedDataObject ArrayIn this field, a json object array containing a string value containing the information that the developers want to transmit via the mobile client will be transmitted.

When the main mobile application wants to initiate a call and send some specific information to the call via the Diyalog Mobile SDK, it will be able to use the attachedData field. This attachedData will be completely transparent for Diyalog and Diyalog will pass this information to the call queue initiation API. The call queue API will be able to receive this information about the call and transfer the desired routing and information to the call based on this information.

For example, for a scenario such as a customer having a primary or secondary portfolio manager in your system and routing the call to these portfolio managers first, a request can be made with attachedData as below and routing can be done in your queue system according to the information in this request.

{
"customerId" : "221122121",
"attachedData" : [
{
"TRX" : "Diyalog"
},
{
"PrimaryProjectManagerId" : "123456"
},
{
"SecondaryProjectManagerId" : "654321"
}
]
}

In this request, Genesys queues can be directed by looking at the values ​​of the "PrimaryProjectManagerId" and "SecondaryProjectManagerId" fields in the attachedData while starting the interaction.

Response#

{
"success" : true,
"errorMessage" : null,
"result" : {
"interactionId" = "2121212121212"
}
}

Details of the fields in the response above are given below.

Field NameTypeDefinition
successBooleanGives information about whether the interaction was created successfully. It is expected to return true or false.
errorMessageOption[String]If the interaction creation fails, the error-related detailed message is returned in this field. It is a string value. If the interaction is successful, there is no need to return this field.
resultObjectA json object containing the intreactionId information is expected to be returned.

Delete Interaction#

With this API, if the call is not received by any agent while the customer is waiting and the customer cancels the wait, the created interaction is expected to be canceled. In this case, if the created interaction has not been forwarded to the agent, it will be deleted and should not be forwarded to any agent.

Request URI#

https://<YOUR-API-ENDPOINT>/<interactionId>

Request Method#

DELETE

To delete a call, the interactionId of the interaction you want to delete will be added to your API service URL and a request will be sent using the REST DELETE method.