Rate this page:

Setting up a TaskRouter Workspace: Add and Configure Workers

Workers represent the people or processes that perform Tasks. In our example, Workers represent human agents handling incoming voice calls. We plan to intelligently route calls by matching the language skills of our Workers to the language requirements of incoming callers. Specifically, both of our Workers will be capable of handling requests in English, but only one in Spanish.

With your Workspace open in the TaskRouter console, click 'Workers' then 'Create Worker'.

Worker #1

Our first Worker, Alice, will be 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 below.

Alice's Worker Attributes Expression: {"languages": ["en","es"]}

Alice's Worker Details

Worker #2

Rinse and repeat. Create another Worker named Bob who is exclusively capable of handling Tasks in English.

Bob's Worker Attributes Expression: {"languages": ["en"]}

Bob's Worker Details

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

Next: Add Task Queues »

Rate this page:

Need some help?

We all do sometimes; code is hard. Get help now from our support team, or lean on the wisdom of the crowd browsing the Twilio tag on Stack Overflow.


        Thank you for your feedback!

        We are always striving to improve our documentation quality, and your feedback is valuable to us. How could this documentation serve you better?

        Sending your feedback...
        🎉 Thank you for your feedback!
        Something went wrong. Please try again.

        Thanks for your feedback!

        Refer us and get $10 in 3 simple steps!

        Step 1

        Get link

        Get a free personal referral link here

        Step 2

        Give $10

        Your user signs up and upgrade using link

        Step 3

        Get $10

        1,250 free SMSes
        OR 1,000 free voice mins
        OR 12,000 chats
        OR more