Reputation: 737
I need a basic queue management with one twilio number and five agents.
When a call is received, the call is put in a Queue.
How do I remove the calls from the queue and assign to the agents as they are available.
Upvotes: 1
Views: 814
Reputation: 73075
Twilio developer evangelist here.
You can do this in a couple of ways. The simple way will mean your agents would need to dial into the queue, the harder way will setup an automated system that dials your agents when there is a new call in the queue.
So, the simple way. In response to the initial call you should use TwiML to <Enqueue>
the call, adding it to the back of the queue.
<Response>
<Enqueue>support</Enqueue>
</Response>
Then, you could have another number that the agents dial into that calls the <Queue>
and connects them to the first person waiting, using the following TwiML:
<Response>
<Dial><Queue>support</Queue></Dial>
</Response>
The harder way involves using Twilio's TaskRouter to manage the queue and dialling to agents. It's a little too much to build out your application for you here, but TaskRouter allows you to define a Workflow for incoming calls, which are turned into Tasks, and assigned to active Workers.
There is a good blog post here on how to setup TaskRouter as a support desk. There is a good contact center example application here too.
Let me know if that helps at all.
Upvotes: 1