Add a robot step
Put a robot into a Workflow with a task package step: which task it runs, on which workers, with which items.
Audience: builders
Task Engine is in private preview. To get access, contact us (opens in a new tab).
Add the step
You add and change steps by describing them, as everywhere in a Workflow.
Open the Workflow
In the Project, open the Workflow under Automations. In its Steps section, select Ask the agent to change the steps. The Project's assistant opens with "Add a step to the … workflow:" started for you.
Say what the robot should do
Name the package and the task, where it should run, and what it should work on. For example:
Add a step that runs the EnterInvoice task of the invoice-entry package on the ERP workers group, two at a time, on the orders the first step writes. Give it 30 minutes.
The assistant finds the package, the task, and the workers, and writes the step. You can also describe it from your own AI tool through Bring your own builder.
Review the step
The step shows as Task package in the Workflow, with its settings. To change one, select Ask the agent to change step N on the step and describe the change.
Before you start, make sure the package is published and at least one worker is connected. You can write the step before a worker is online, but the step fails when it runs and finds none.
Step settings
| Setting | What it does | Default |
|---|---|---|
| Package | The task package the step runs. The step names it by ID, so renaming the package changes nothing. | |
| Task | Which task of the package runs | First task: the first task in robot.yaml |
| Worker | Where it runs: a worker group, one worker, or any online worker. See Worker groups and where runs go. | Any online |
| Parallel | How many workers of the group take the step's items at once, up to 1,000. Needs a worker group. See How work runs in parallel. | 1 |
| Inputs | Which items the robot works on. See where the task items come from. | The work item's data and files |
| Variables | Run variables the robot reads from its environment, as Control Room's run variables. Values can use the Workflow's inputs, such as {{ inputs.payload.company }}. Names can't start with RC_. | None |
| Time limit | A run that takes longer fails, up to 24 hours | The platform limit, 20 minutes by default |
| Failed items | Continue records a failed item and carries on. Fail the step stops the work item at the step. See When items fail. | Continue |
| Desktop | Signed-in desktop runs the robot in a desktop session on a Windows worker, and Signed-in desktop, recorded also records the screen. No desktop runs it in the background. See Desktop robots on Windows. | Signed-in desktop |
Turn the desktop off for robots that don't need one. A robot that only calls APIs, reads files, or drives a headless browser doesn't need a signed-in desktop. Without one, a Windows worker runs it in the background, with no Remote Desktop session or license. macOS and Linux workers always run robots this way.
Producer and consumer
To pass work from one robot to the next, give the second step the first step's output items:
Add a step after "Find new orders" that runs the ProcessOrder task of order-entry on the ERP workers group, four at a time, on the output items of "Find new orders".
The consumer step starts when the producer has finished every item, and takes each output item with its data and files. An agent step can sit between them, either passing the items on unchanged or writing a new list. See Work items and robot items.
Where the results go
When the step ends, its results are saved in the work item:
- Each item's status, its data as the robot left it, its output items, and its failure, if any, show on the work item's Task items tab.
- A later agent step can read them all, in
robots/<step key>/results.json, and each item's folder next to it. Name the step's key in the agent step's instructions, for example "Read the ERP step's results and reconcile each invoice." - The robot's artifacts, such as its log and screenshots, stay on the robot run page. A later agent step can't read them.
A task package step doesn't write the Workflow's outputs. To show outputs on the work item, add an agent or verified logic step that writes them.
Which version runs
A work item's first step that runs a package uses its latest version, and later steps that run the same package use that same version. Resuming a work item keeps its version, and rerunning it from the start uses the latest one. See Versions.