Company
Date Published
Author
Phil Nash
Word count
3489
Language
English
Hacker News points
None

Summary

The text discusses the creation of a priority queue for a call center using Twilio TaskRouter in Ruby. It explains how to set up a workspace, create a workflow, and configure the application to receive webhooks from TaskRouter when a task is assigned to a worker. The code is used to build an endpoint that responds with a dequeue instruction when a task is assigned, allowing the call to be connected to the worker's contact URI attribute. To add priorities to the queue, the application must check if the customer called in on a priority number and set a status on the task. The workflow is then configured to prioritize these calls by adding a filter to the routing configuration. The example demonstrates how to create a call center that can prioritize incoming calls and distribute them amongst one or more agents using TaskRouter.