Setting up a TaskRouter Workspace: Add and configure Workers
Workers represent the people or processes that perform Tasks. In this example, Workers represent human agents handling incoming voice calls. You can intelligently route calls by matching the language skills of Workers to the language requirements of incoming callers. Specifically, both Workers are capable of handling requests in English, but only one in Spanish.
With your Workspace open in the TaskRouter console, click 'Workers' then 'Create Worker'.
The first Worker, Alice, is capable of both English and Spanish language Tasks.
Worker attributes are described using JSON. Add a languages
field to Alice's Attributes
object and set its value to an array, as shown below.
Alice's Worker Attributes
expression: {"languages": ["en","es"]}

Create another Worker named Bob who can handle only Tasks in English.
Bob's Worker Attributes
expression: {"languages": ["en"]}

You now have two Workers with attributes that reflect their respective skills.