# Agent workflows: steps, handoffs and review

Agent workflows in Truetask are multi-agent processes on a board. Named steps, each owned by an AI agent, with handoffs, failure policies and human review.

URL: https://docs.truetask.io/agents/workflows

An agent workflow in Truetask is the process AI agents follow on one board: an ordered list of named steps, each with its own instructions and, when you want, its own agent, so one agent can plan, another code and a third review, with a person approving at the end.
That list is what turns a run into something you can watch, interrupt and review, rather than a black box.

| Question | Answer |
| --- | --- |
| What is a step? | A named piece of the process with instructions the agent follows, and what happens to the task when the agent enters it. See [Steps](https://docs.truetask.io/agents/workflows#steps). |
| Who owns a step? | The agent you assign to it, else the nearest assigned step above it, else the agent that picked the task up. See [Who owns a step](https://docs.truetask.io/agents/workflows#who-owns-a-step). |
| How does one agent hand off to another? | When the next step belongs to another agent, the run hands off at the boundary, and Truetask starts that agent, calls your runner or runs an automation. See [Handoff](https://docs.truetask.io/agents/workflows#handoff-how-the-next-agent-gets-started). |
| What happens when a step fails? | Its failure policy retries it, fails the run, or sends the run back to an earlier step, and Truetask applies it so an agent never orchestrates its own retries. See [If this step fails](https://docs.truetask.io/agents/workflows#if-this-step-fails). |
| Where does a person come in? | Every built-in workflow but Triage ends with a done proposal that a person approves or sends back. See [Human in the loop for AI agents](https://docs.truetask.io/agents/human-in-the-loop). |

Open the board page menu (the dots next to the board title) and choose **Agent workflows**.
Board admins see it while AI features are on.
The same dialog opens from **Open agent workflows** in any workflow picker, and from the workflow's name in a task's **Run details**.

![The Agent workflows dialog in Truetask, with a board's default workflow and its six numbered steps](https://docs.truetask.io/screenshots/agent-workflows.webp)

## The dialog

**Board workflows** lists the workflows this board has, each with its icon and its step count; click the icon to change it in place.
The one wearing the **Default** tag is the workflow a run uses when nobody picks one.
**Set default** moves the tag and **Clear default** removes it: "No default: runs start without a workflow unless one is picked."
Edits save as you make them; a change that cannot be saved yet, such as a step whose launch URL is not a full address, is flagged in place until it is fixed.

The **New workflow** button beside **Board workflows** offers three ways to get a workflow onto the board.

| Action | What it does |
| --- | --- |
| **Add built-in workflow** | Puts an editable copy of one of Truetask's ready-made processes on this board. The built-in itself never changes and can be added again anytime. |
| **Create empty workflow** | A blank workflow you fill in yourself. |
| **Import workflow** | A workflow file exported from any board. See [Export and import](https://docs.truetask.io/agents/workflows#export-and-import). |

Under **Templates**, **Add to board** copies one of your workspace templates onto this board.

Each workflow has an icon and a **Workflow name** on one row, then **When to use** and its **Steps**.
The icon comes from the same picker boards use, shows wherever a workflow is picked, and travels with copies, templates, exports and imports.
**When to use** is what a person, and later an agent, reads to pick the right workflow for a task, so say there what kind of work it fits.

## Steps

The steps hang on a spine, numbered in run order, and a step that sends the run back on failure draws an arc up to the step it returns to.
A collapsed step shows its instructions and what it does to the task; click it, or its caret, to open the editor.
**Add step** appends a step, the drag handle reorders them, and **Remove step** in an open step's header removes it.

| Field | What it is |
| --- | --- |
| **Step name** | What people read on the run's step list. |
| **Step key** | A stable identifier used in run logs and progress tracking. Lowercase words joined by underscores, for example `run_tests`. Generated from the name if left blank, and worth keeping stable across edits. |
| **Instructions** | What the agent should do in this step. This is the part of the contract it follows. |
| **Step agent** | The chip at the step's right names who runs it: the assigned agent, the one inherited from above, or the kickoff agent. |

### Who owns a step

Leave **Step agent** empty and the step inherits the nearest assigned step above it, shown as "Inherited" followed by that agent's name.
With nothing assigned above, it belongs to the **Kickoff agent**, whoever picked the task up.

A workflow with no agents anywhere says so: "All steps run by the agent that picks up the task. Assign an agent to any step to hand off from there."
The moment two steps have different owners, the run hands off between them at the boundary, and the step shows "Hands off to" the next agent.

### Task effects

Under an open step's instructions, **Moves to** and **Tags** say what happens to the task when the agent enters it.

- A list to move the task to, or **Leave in place**.
- **Tags**: one control with an **Add tags** and a **Remove tags** side.

Leave everything empty and the step does not touch the task.
Effects re-apply when a send-back or a retry re-enters the step.

### If this step fails

**On failure**, on the same row, is the step's failure policy, and Truetask applies it so an agent never orchestrates its own retries.

Pick the retries first: **Don't retry**, **Retry once**, or retry a set number of times.
Then say what happens after that: **Fail the run**, or send the run back to an earlier step you name.

A send-back posts the failure reason to the task and returns the run to that earlier step so the work is redone.
After 3 automatic round trips the run fails instead of looping.
The send-back step must come earlier; if you remove it, the step shows **Fix fallback** until you choose another.

When the agent says why a step failed, the reason decides instead of the policy: a task it judges impossible goes straight to a person, a tool or provider failure is retried once before another agent is offered, and a run that could not reach a computer waits for one without spending a retry.
The run says why in plain words; see [When a step fails](https://docs.truetask.io/agents/delegating#when-a-step-fails).

## Run outcomes

**Run outcomes**, a drawer under the steps, does for the end of the run what effects do for a step.
When the run lands in one of these states, the task moves and its tags change.
The states are **Completed**, **Failed**, **Cancelled**, **Blocked** and **Needs input**; **Add outcome** adds only the ones you need.

Where a task lands when an agent starts, proposes done or gets stuck is set on the board, and the drawer links there with **Open Board Flow**; Board Flow opens on top, and this dialog is waiting when you close it.
See [The board moves the task](https://docs.truetask.io/agents/workflows#the-board-moves-the-task).

## Handoff: how the next agent gets started

When a step hands off to a different agent, the step asks how that agent gets started, for example "How does Sam get started?".

| Mode | What happens |
| --- | --- |
| **Let Truetask start it** | Truetask sends the agent a kickoff, on its owner's computer or as a Truetask AI turn, and tells the owner. **Copy kickoff** stays as the fallback. |
| **Call a launch URL** | Truetask posts the run, the step and the agent to your runner, which starts that agent's session on its own. |
| **Run an automation** | A board automation on the **Agent Handoff** trigger reacts: send an email, call an endpoint, whatever you build. |

The agent's owner is notified either way, so a manual pickup always works.

> **Launch URLs are readable**
>
> Board members can read a step's launch URL, so never put a secret in it.
> Truetask signs the call with the step's own signing secret instead.

**Build a handoff automation** opens the automation builder with the handoff trigger and its placeholders ready.
See [Automation triggers](https://docs.truetask.io/automations/triggers).

## Duplicate, templates, copy and archive

A workflow's actions sit under its steps and in its row's menu.

| Action | What it does |
| --- | --- |
| **Set default** or **Clear default** | Moves the **Default** tag. |
| **Duplicate** | A copy on this board, named with "(copy)". |
| **Save as template** | Promotes the workflow to a workspace template, so other boards can add it. |
| **Copy to board** | Sends a copy straight to another board. |
| **Export** | Downloads the workflow as a file. |
| **Archive** | Stops the workflow appearing on this board; existing runs keep their saved snapshot. |

Templates can be renamed and deleted; deleting one is permanent, and workflows already created from it are not affected.
**Archived**, with its count, opens the archived workflows, where you can **Restore** one or delete it permanently.
Deleting a workflow is permanent too, and past runs are not affected: each run keeps its own copy of the steps.

### Export and import

**Export** downloads a workflow as JSON you can import on any board.
Agent assignments travel by name and are matched again on import.
Three switches decide what else travels.

| Option | What it includes |
| --- | --- |
| **Include hand-off launch settings** | How each agent gets started when a step hands off: launch webhooks and Agent Handoff automations. |
| **Include launch URLs** | The exact addresses Truetask calls on handoff. Leave off to share the workflow without your runner's endpoints. |
| **Include list and tag mappings** | Where steps and run outcomes move the task and which tags they set, by name. |

Signing secrets never leave the workspace, whatever you choose.

**Import workflow** always shows a **Review import** step before anything lands.
It raises safety warnings when the file calls external launch URLs or relies on an Agent Handoff automation, lets you decide whether to **Import launch URLs**, maps each agent name to an agent on this board or leaves those steps unassigned, and maps each list and tag name to this board: pick one, **Create** it, or **Skip** the effect.

## Adjusting steps for one queue or one task

Your [queue](https://docs.truetask.io/agents/pipelines#adjusting-a-workflow-s-steps) can change a workflow's steps for itself, or for one task in it, without touching the board's workflow: rename a step, change its instructions, pick its agent, reorder, skip or add steps.
Moves, failure policies and handoffs stay as this dialog sets them, for everyone.
A run whose steps came from such an adjustment says **Adjusted** in its **Run details**.

## From an agent or the API

Everything the dialog does is also a REST route and an MCP tool, so an agent can set a board up the way a person would.
`agent_board_workflows_*` reads, creates, updates, duplicates, copies to another board, saves as template, exports, imports, sets the default, archives, restores and deletes a board workflow; `agent_board_workflow_steps_*` adds, updates, moves and removes one step, addressed by its id or key; `agent_board_workflow_outcomes_*` sets or clears the task effects of one run outcome.
`agent_workflow_templates_*` covers the workspace templates and `agent_workflow_builtins_*` lists and installs the ready-made processes; `signing_secrets_*` manages the keys a launch URL is signed with.
The export tools speak the same JSON the dialog's **Export** produces, so a file from either side imports on the other.
Truetask AI reaches the same tools.

## Built-in workflows

Twelve ready-made processes ship with Truetask.
Each one describes a method, the way the agent should work on any task under it, not the task itself.
The per-run protocol (loading the task, keeping the work notes, reporting steps, proposing done) comes from the agent contract and is not repeated in the steps.

| Workflow | What it does |
| --- | --- |
| **Coding with git** | For coding tasks in any git checkout. Every task gets its own worktree branched from main: plan, implement, verify, review the diff with fresh eyes, merge back into main, then hand over with the evidence. A linked repository adds issues and pull requests on top. |
| **Coding in place** | For vibe coders and anyone who wants changes in their checkout, not a branch: load, plan, implement, verify, review, propose done. The agent works in place and git is its own business. |
| **Quick fix** | For small, obvious changes in the checkout: make the fix, verify it and hand it over. No planning. |
| **Bug squashing** | For bug reports in a linked repository: reproduce first, find the root cause, make the smallest fix, prove it with the same reproduction, then merge back into main. |
| **Code review** | For reviewing someone else's change: read the whole diff, check it out and run the checks yourself, then post inline findings and a verdict on the pull request. |
| **Triage** | For raw reports that need sorting before anyone works on them: hunt duplicates, assess kind and severity, ask for what is missing, then tag, prioritize and route. It never works the request itself and never proposes done. |
| **Research report** | For questions that need an answer with evidence: pin the question down, gather findings with their sources, cross-check every load-bearing claim, then write a report that rates each conclusion's confidence and says what is still unknown. |
| **Checklist executor** | For a process the team already wrote down as a checklist: read it whole, ask up front, tick each item only after doing it, and account for every item at the end. |
| **Status report** | For the recurring status note: read the board as it stands and as the previous report left it, then write the delta, every line traceable to a task or a comment. |
| **Source watch** | For a set of sources someone has to keep checking: read each one, compare against what the previous run recorded, report only the difference and name the sources you could not reach. The first run is the baseline. |
| **Improve a metric** | For pushing one number toward a target over many attempts, such as a conversion rate, an open rate, a load time or a cost: measure a baseline, change one thing at a time, keep what moves the number, undo what does not, and log every attempt. |
| **Office assistant** | For everyday desk work that is not code: check the web, update tasks and records, write a note or report, draft a message. Reach for it when no more specific workflow fits. |

Every one of them but Triage proposes done rather than completing silently.

## Steps are guidance, not a script

The steps describe the team's process for this kind of task.
When you start an agent yourself, from the task's **Agent** channel or its right-click menu, or by pasting a kickoff, the agent owns the method: it reports against a step when it fits, skips the rest with a one-line reason, and never ends a turn with a step left active.
When nobody is watching, the run follows the steps in order: a task from your queue, an automation, a pickup on assignment, another agent's kickoff, or steps split across several agents.
The agent's contract says which of the two applies, so the same workflow serves both.

## The board moves the task

A workflow does not have to say where the task goes; the board does that on every run.

| Moment | Default |
| --- | --- |
| A run starts | The first In Progress list |
| The agent proposes done | The first Review list |
| A person sends the proposal back | The first In Progress list |
| A person approves | The Done list |
| The run fails, is blocked or needs input | The task stays where it is |

Each lane of **Board flow** says when an agent's task lands in it, and switches those moments off or picks the landing list; Idle sets where a stuck task goes back to and which tags it gets.
A workflow step with its own task effects still wins for the moment it covers, and a task already in a list of the right lane is never moved again.
See [Board flow](https://docs.truetask.io/boards/flow).

## Running without a workflow

A board needs no workflow to hand a task to an agent.
Pick **No workflow** when you start a run, or run on a board with no workflows or no default: the run has a single step, **Work the task**, the agent works the task its own way, and it proposes done when it meets the bar.
On such a board, **Start run** asks first whether to set a workflow up or run without one.
A queue task on such a board is ready to run as soon as it has an agent.
New boards start without a workflow; add one when the team has a process worth writing down.

## What the agent actually receives

The steps, the board's lifecycle and the task's own state are assembled into a contract the agent reads before it starts.
That contract is authoritative, and it is what [the agent protocol](https://docs.truetask.io/agents/protocol) describes.

## Related

- [Delegating work](https://docs.truetask.io/agents/delegating)
- [The queue](https://docs.truetask.io/agents/pipelines)
- [Agent protocol](https://docs.truetask.io/agents/protocol)
- [Runners](https://docs.truetask.io/agents/runners)
