> Documentation index: https://sema4.ai/docs/llms.txt
> Web page: https://sema4.ai/docs/v3/task-engine

# Task Engine

Run your robots as steps in a Workflow, on machines you control, and follow every item they process.

**Audience:** builders, IT, and teams coming from Robocorp

> **Task Engine is in private preview.** To get access, [contact us](https://sema4.ai/contact-us/).

## What it is

Some work must be done the same way every time, on a system no AI can reach: a desktop application, a legacy screen, an ERP inside your network.
A robot does that work.
Task Engine is the part of Sema4.ai that runs robots: task packages built with the `robocorp` and `rpaframework` Python libraries, the same robots Robocorp Control Room runs.

A robot runs as one step of a [Workflow](https://sema4.ai/docs/v3/build/workflows.md).
The steps around it can read a document, ask a model to decide, or wait for a person, so a robot no longer has to stop when its input arrives in a shape it has never seen.
A Workflow made only of robot steps uses no model at all.

## Build in your tools, manage in Sema4.ai, run where your systems are

|            | Where           | What you do there                                                                                                                                                                                                                                                                                                      |
| ---------- | --------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **Build**  | On your laptop  | Write and test robots in the [Sema4.ai SDK for VS Code](https://sema4.ai/docs/v3/task-engine/develop.md), with AI assistants if you like. Shape the Workflow around them from Claude, Copilot, or Codex through [Bring your own builder](https://sema4.ai/docs/v3/byob.md).                                            |
| **Manage** | In Sema4.ai     | [Publish](https://sema4.ai/docs/v3/task-engine/publish.md) task packages, keep their [secrets and assets](https://sema4.ai/docs/v3/task-engine/secrets-assets.md), and put them into Workflows with a [task package step](https://sema4.ai/docs/v3/task-engine/robot-step.md). Every run and every change is recorded. |
| **Run**    | On your workers | Robots run on [workers you host](https://sema4.ai/docs/v3/task-engine/workers.md): Windows, macOS, or Linux machines inside your network or next to the application they drive.                                                                                                                                        |

Use a task package step when the work must run on a machine you control, drive a desktop application, or needs software that a Project's sandbox cannot provide.
Otherwise, keep the work in an agent step or a [verified logic](https://sema4.ai/docs/v3/build/verified-logic.md) step.

## How a robot runs in a Workflow

_Screenshot: How a Workflow runs a task package step_

- A **Workflow** is the definition: what it takes, what it does, and what it creates.
- A **work item** is one run of that Workflow. A person, a trigger, an email, or another system starts it.
- The work item's **steps** run in order. A Workflow can mix agent, verified logic, and task package steps.
- A **task package step** starts **robot runs** on the workers it is allowed to use. The robots work through the step's items, and the step records how each item ended.

## Where to find it

Select **Task Engine** in the app dock.
It has six pages:

| Page              | What it holds                                                     | Who can change it   |
| ----------------- | ----------------------------------------------------------------- | ------------------- |
| **Overview**      | Runs and failed runs this week, workers online, and task packages |                     |
| **Workers**       | The machines that run robots, their status, and their runs        | Workspace admins    |
| **Worker groups** | Sets of workers that share robot work                             | Workspace admins    |
| **Task packages** | Your robots and their versions                                    | Builders and admins |
| **Secrets**       | Logins and keys your robots read by name                          | Builders and admins |
| **Assets**        | Shared data your robots read by name                              | Builders and admins |

Members don't see these pages.
They see the robot runs of the work items they can open.
Every change on these pages is recorded in the audit log.

## Start here

- [Coming from Robocorp](https://sema4.ai/docs/v3/task-engine/robocorp.md): What stays exactly the same, what Sema4.ai rebuilds for you, and what needs you.
- [Build robots](https://sema4.ai/docs/v3/task-engine/develop.md): Develop and test task packages in the Sema4.ai SDK, with AI tools alongside.
- [Publish](https://sema4.ai/docs/v3/task-engine/publish.md): Upload a package, push it with rcc, or publish from GitHub and your CI/CD pipeline.
- [Run robots in Workflows](https://sema4.ai/docs/v3/task-engine/robot-step.md): Add a robot step, pass items between robots, run in parallel, and handle failed items.
- [Workers](https://sema4.ai/docs/v3/task-engine/workers.md): Connect the machines that run your robots and group them to share the work.
- [Troubleshooting](https://sema4.ai/docs/v3/task-engine/troubleshooting.md): Read a robot run, and fix the problems people meet most often.
