---
"@context": https://schema.org
"@type": TechArticle
"@id": https://www.twilio.com/docs/taskrouter/quickstart/python/control-workers#article
headline: "Part 4: Controlling Worker Activities using TaskRouter.js"
description: Add a real-time agent UI to your TaskRouter Python project using TaskRouter.js to control Worker Activities and subscribe to Worker events in the browser.
url: https://www.twilio.com/docs/taskrouter/quickstart/python/control-workers
inLanguage: en
dateModified: 2026-07-06T16:59:46.000Z
author:
  "@type": Organization
  name: Twilio Developer Education Team
publisher:
  "@type": Organization
  name: Twilio
---

# Part 4: Controlling Worker Activities using TaskRouter.js

In Part 4 of the Quickstart, you tie the earlier parts of the project together and add a real-time user interface using TaskRouter.js, the companion JavaScript library to Twilio TaskRouter. Complete these steps:

1. [Introducing TaskRouter.js](/docs/taskrouter/quickstart/python/agent-ui-introducing)
2. [Add an Agent UI to our Project](/docs/taskrouter/quickstart/python/agent-ui-add-project)
