Version 3
Work items and robot items

Work items and robot items

What a work item is, what the robot's items are, and where you see each of them.

Audience: builders

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

Two kinds of items

This is the part that is easy to mix up. A work item is one submission to a Workflow: what a person, a trigger, or an email starts. Inside a task package step, the robot works through its own items: task items in, and output items out. They live inside the step. They are not work items.

A work item, and the robot's items inside a task package step
A work item, and the robot's items inside a task package step
  • Task items. What the robot works on, the input work items in Robocorp terms. By default the step gives the robot one task item: the work item's data and its attachments.
  • Robot runs. Each worker that takes part runs the task and takes task items from the step's shared list.
  • Output items. What the robot creates with workitems.outputs.create, each with data and files. The next task package step can take them as its task items.
  • Results. When the step ends, each item's status and data are saved in the work item.

Where the task items come from

A step gets its task items in one of three ways:

SourceTask itemsFiles
Nothing setOne item: the work item's dataThe work item's attachments
A list of items in a work item fileOne item per entry in the listNone
An earlier task package stepOne item per output item that step's robot createdThe files the robot attached to each output item

Pass work from one robot to the next

A Workflow often has a producer robot that finds the work and a consumer robot that does it. There are two ways to hand the work over.

Two ways to pass work from one robot to the next
Two ways to pass work from one robot to the next
  • Directly. The consumer takes the producer's output items, with their data and files. An agent step can sit between them and the items still pass unchanged.
  • Through an agent step. The agent reads every result of the producer and writes a new list of items for the consumer. It can filter, enrich, or split the work. The new items carry data only, not files.

The agent step is optional. A Workflow made only of task package steps uses no LLM at all.

Good to know when you pass items directly:

  • The next step starts only when the producer has finished every item.
  • The consumer gets the output items the producer created, not the producer's input items.
  • A failed item passes on nothing, except output items the robot created before the item failed.

See the items of a work item

Open the work item. Its How it got here list shows each task package step with its items counted: how many are done, how many failed, and why.

To see the items themselves, open the Task items menu in the work item's tabs and pick the step.

The task items of one step, inside the work item
The task items of one step, inside the work item

Each row is one task item:

  • Result says where the item stands now. Edited, Marked done, or Deleted beside it says a person changed it. Hover over it to see who and when.
  • Last ran is when a robot last worked on the item.
  • Runs is how many runs the item went through. An item that failed and was resumed shows 2.
  • Files counts the files the item came with and the files the robot attached to its output items.

Open a row to see the item's data and its history. See When items fail for what the history shows and what you can do with an item.

The robot run page

Each robot run also has its own page. It is the technical record of that one run: its artifacts and logs, the screen recording, the timeline of the run's phases, and how it was set up. Open it from a run in the work item's How it got here list, or from a worker on the Workers page of Task Engine. See Read a robot run.