This article will help you to create a simple voice contact center with SmartQueue (ACDv2) technology.
Set up operators
You need at least one operator to process a queue.
Set up operators' skills
You can specify skills for different operators and distribute activities only to operators who posess a certain skill.
For example, you have a skill called "Knows Italian", and attach this skill to all the operators that know the Italian language, and set up skill levels for each operator according to their language level.
To read more about skills and learn how to use them, see this article.
Set up queues
You can create one or more queues with different settings and bind specific operators to specific queues.
You can customize a queue's name and description (up to 200 characters), agent selection strategy (distribute the activity to the most/least qualified operator or to an operator who waited the most), activity selection strategy (first goes an activity with maximum priority or waiting time), maximum queue size and maximum waiting time.
Create a queue and bind operators
To create a queue, use the SQAddQueue method. Refer to the method's description to learn about the input arguments. Here is a simple code on example how to create a queue:
As a result of the request, you get the new queue's ID. You need it later.
Here and below you can specify the application's ID or the application's name. You do not need to provide both application_id and application_name parameters.
To bind an operator to a queue, use the SQBindAgent method. You need to specify the queue's ID or name and the operator(s) ID or name. You can bind several agents divided by semicolon:
Here and below you can specify the queue's ID or the queue's name. You do not need to provide both sq_queue_id and sq_queue_name parameters.
Modify or delete an existing queue
You can modify all the queue's settings via the SQSetQueueInfo method. Refer to the method's description to learn about the input arguments. Here is a code example on how to change a queue's name:
To delete a queue, use the SQDelQueue method. Here is a code example on how to delete a queue:
Set up an operator's workspace
An operator's workspace is a software environment in which an operator makes or receives calls. You can use any SDK to create an operator's workplace. Read more about different SDKs and their initialization here.
In this article there is an example on how to use Web SDK.
When you initialize the SDK, pass the
queueType parameter with SmartQueue type.
Then you need to implement all the necessary instruments for your operator to use. This depends on your case.
As a minimum setup for an audio calls operator, you need:
A tool to accept or decline a call
A tool to change the operator's status
The most important part here is the operator's status. To make and accept calls, the operator should have the tool to change the status to "Ready".
What is a SmartQueue status
SmartQueue distributes the calls according to the operators' statuses. Here are all possible statuses:
Online — the operator is logged into the system. Yet the operator cannot receive inbound activities.
Offline — the operator is not logged into the system.
Ready — the operator can receive inbound activities, such as calls and IMs. You need to set this status manually.
Dialing — the operator has an inbound call, which he has not yet answered or declined.
InService — the operator has an active call.
AfterService — the operator has finished an activity but has not switched to the Ready status.
Banned — the operator has intentionally declined an inbound call from a queue. You may implement your own logic how to return to the Online status.
DND — Do not disturb. Technically this status is identical to Online, but you may need to track the time spent by an operator in this status to know how much time the operator spends on breaks/lunches and so on.
You can track the amount of time spent in each of this status (see reports).
The statuses change in a special order that cannot be changed. For example, you cannot skip AfterService status after the call or skip Ready status to accept a call.
On the following chart, you can find all the status transitions possible. Red lines mean that status change happens automatically and you cannot choose the status manually.
For example, you can create a dropdown list on your webpage, and bind the setStatus function from the code above to a button.
Set up a VoxEngine scenario
To find more information about VoxEngine scenarios and how to create them, see this guide.
For a contact center, the main goal in the VoxEngine scenario is to process inbound or outbound activities and put them in a SmartQueue. You can set up different routing rules to put different calls or implement your own logic how you want to distribute activities between queues.
If you want to process inbound calls, you need to buy a phone number and attach it to your application. You can find more information on how to do this in this guide.
To put an activity in a queue, use the enqueueTask method.
If you process inbound calls, implement your logic in the CallAlerting event and put the call in the queue in this event.
In this scenario example, you can see how to enqueue an inbound/outbound call into a SmartQueue:
After you implement all of the above, you should have a fully working queue for processing inbound and outbound activities and an operator's workspace where your operator can change the status and accept calls.