Build with AI tools
Use AI assistants to write robots in your editor, and to set up and run them in Sema4.ai from Claude, Copilot, Codex, or the Project's own assistant.
Audience: builders
Task Engine is in private preview. To get access, contact us (opens in a new tab).
Two kinds of work, two places
| Work | Where | With |
|---|---|---|
| Writing and testing robot code | Your machine | A coding agent with Robocorp's robocorp-automation skill, or the Sema4.ai SDK |
| Everything around the robot: publishing, workers, secrets, Workflows, runs | Sema4.ai | Your AI tool connected through Bring your own builder, or the Project's assistant |
The split is deliberate. A robot is code that must be tested on a machine like the one it runs on, so it is written and run where you can see it work. Sema4.ai's assistants set up and operate robots, but they don't write or change robot code.
Write robots with a coding agent
Give Claude Code, Codex, Cursor, or another coding agent Robocorp's robocorp-automation skill.
It teaches the agent to start a robot from an rcc template, write its tasks with robocorp and rpaframework, run it locally, and check that it passed.
Teams who already use the Sema4.ai SDK can keep working in VS Code, with an AI assistant alongside.
See Develop a task package.
Connect the same agent to Sema4.ai, and one agent can write and test the robot on your machine, then publish it and set it up in your workspace.
Set up and run robots from your AI tool
Connect Claude, Copilot, Codex, or another MCP client to your workspace through Bring your own builder. When Task Engine is on, your tool can work with robots in the workspace:
| Ask it to | What it does |
|---|---|
| Add a robot you built | Publishes the package ZIP as a new task package, or as a new version of an existing one |
| Show the workers | Lists workers with their status and system, and the worker groups with their members |
| Group workers | Creates a worker group and adds or removes workers. Needs a workspace admin. |
| Set up a secret | Creates the secret with the item names your robot reads, all empty, and gives you a link to enter the values |
| Set up an asset | Creates or replaces an asset with a text or JSON value |
| Put the robot into a Workflow | Writes a task package step with the package, task, workers, and items you describe |
| Find out why a run failed | Reads the run, its console output, its items, and their failures |
| Settle failed items | Edits an item's data, marks items done, or deletes them, so you can resume |
For example:
Add the invoice-entry robot from robots/invoice-entry.zip, then add a step to the AP intake Workflow that runs its EnterInvoice task on the ERP workers group, two at a time, with the orders the first step writes.
Why did yesterday's 14:00 work item fail at the ERP step? Show me the failed items and what the robot printed.
Your tool never asks for a secret's value in the conversation. It creates the secret empty and gives you a link, and you enter the value in Sema4.ai.
Coming from Robocorp? The open-source Robocorp relink kit (opens in a new tab) lets your AI tool read your Control Room workspace and rebuild its processes as Workflows, one at a time. See Coming from Robocorp.
Let an agent start a robot
A task package step runs on every work item, at its place in the Workflow. When a robot should run only sometimes, an agent step can start it instead: the agent decides, for example only when an invoice isn't in the ERP yet, starts the robot run, and reads its results. Describe it in the step's instructions, for example "If the vendor is new, run the CreateVendor task of the vendor-setup package on the ERP workers group and use its output."
Publish from your pipeline
To publish every robot change from Git without a person in the loop, use your CI/CD pipeline. See Publish from Git with CI/CD.