Version 3
Connect a worker

Connect a worker

Link a machine that runs your robots: a Windows, macOS, or Linux computer that can reach the systems your robots work in.

Audience: IT and workspace admins

Task Engine is in private preview. To get access, contact us (opens in a new tab).

A worker is a machine you host that runs robots for your workspace. It runs where your systems are: inside your network, next to the ERP, or on the desktop with the licensed application. The worker connects out to Sema4.ai, so nothing needs to connect in to it.

Connecting a worker needs a workspace admin, and takes about five minutes.

Choose the machine

Pick a computer that can reach your ERP and the other applications your robots use.

SystemAgentNotes
Windows 10 or laterSetup UtilityFor desktop robots. Use a separate Windows user for each worker. See Desktop robots on Windows.
macOSWorkforce Agent CoreApple silicon only
LinuxWorkforce Agent Corex64

Each worker runs one robot at a time. To run more at once, connect more machines and put them in a worker group.

Connect a Windows machine

Start the dialog

Open Task Engine, then Workers, and select Connect a worker. Choose Windows.

Install Setup Utility

On the machine, get Setup Utility for Windows (opens in a new tab), install it, and open it.

Link the machine

In the dialog, name the worker and select Create link token. Paste the token into Setup Utility. The machine remembers the link, so you do this once per machine.

Start the worker

Start the worker in Setup Utility. The dialog updates on its own once the worker connects, and says it is online.

Connect a macOS or Linux machine

Start the dialog

Open Task Engine, then Workers, select Connect a worker, and choose macOS or Linux.

Install Workforce Agent Core

Run the install commands the dialog shows on the machine. On Linux:

mkdir -p ~/.robocorp
curl -fL https://downloads.robocorp.com/workforce-agent-core/releases/latest/linux64/robocorp-workforce-agent-core -o ~/.robocorp/robocorp-workforce-agent-core
chmod +x ~/.robocorp/robocorp-workforce-agent-core
~/.robocorp/robocorp-workforce-agent-core -v

On macOS, the dialog shows the same commands with the macos-arm64 build.

Link the machine

Name the worker, or leave the name empty to use the computer's name, and select Create link command. Run the command on the machine:

~/.robocorp/robocorp-workforce-agent-core link <token>

Start the agent

~/.robocorp/robocorp-workforce-agent-core start

To keep it running in the background, run it in service mode with start --service. For a demo, HEADED=1 before the command shows the browser while robots run.

After it connects

The worker shows as online on the Workers page. Add it to a worker group so Workflows can send work to it.

StatusMeaning
OnlineConnected. Its state says whether it is Idle or Busy with a robot.
OfflineNot heard from for three minutes. Steps that can run only here fail until it is back.
Waiting to connectLinked, but not started yet

Select a worker to see its runs.

Link tokens

  • A link token is valid for 60 minutes.
  • A token links one machine. Unlike a Control Room worker group token, it can't link several machines: create one per machine.

Network

The worker needs outbound HTTPS to your Sema4.ai address, including a WebSocket connection to it. It also needs to reach the places its robots' environments come from, the first time each environment is built:

  • the Python package sources that conda.yaml uses, such as conda-forge and PyPI, or your internal mirrors;
  • the download hosts for rcc and Workforce Agent Core.

The Robocorp documentation lists those hosts under firewall and proxies (opens in a new tab), and explains how to pre-build environments (opens in a new tab) for machines without internet access.

A worker is linked to one Sema4.ai address. If your Sema4.ai address changes, for example when you move a self-hosted deployment to a new hostname, link each worker again.

Coming from Control Room

You link the same machines with the same agents: Setup Utility on Windows, Workforce Agent Core on macOS and Linux. Move them as you move the processes that run on them, and keep enough machines on Control Room for the processes still running there.