Human tasks

Pause a workflow for a person to approve, reject, reply, or answer a question, and decide what happens when nobody does.

On this page

A human task pauses a run until a person responds. Use it before anything with real-world effects: sending an email to a customer, changing a CRM record, taking a payment. It is also how a person takes over a conversation from an agent.

Who this is for: people building workflows (to add a human step) and people answering tasks (see Command Center).

What you will do: add an approval step, answer it, and choose what happens after an approval, a rejection, or a timeout.

How a human task works

  1. The run reaches a human step and pauses.
  2. A task appears in Command Center under Needs you, and in the run panel.
  3. A person answers it: approves, rejects, replies, or answers a question.
  4. The run continues, and later steps can read what the person said.

Add an approval step

  1. Add a Human step

    In Workflow Studio, add a Human step after the step that drafts the content, and connect them. The step's type is human.

  2. Say what to review

    The Human step's settings in Studio do not have fields for the reviewer's message. Set it in the step's JSON, under task_payload: a title (a short summary) and a message (background details), so the reviewer can decide without opening anything else. Use templates to include the draft, for example {{steps.draft.result.text}}. To edit it, click JSON in the Studio toolbar (or Edit JSON in the JSON menu), change the step, and apply the change. See JSON editor.

  3. Choose who can answer

    List the people who may answer under Required approvers (user IDs).

    If you leave the list empty, nobody can answer the task unless the step's JSON says otherwise. Studio has no field for this yet, so set it in the step's JSON:

    "approver": { "any_member": true }

    With any_member, anyone who can edit the project may answer, except the person who started the run: someone approving their own request is not a review. Add "allow_initiator": true as well if the person who starts the run should be able to answer, for example while you test a workflow on your own:

    "approver": { "any_member": true, "allow_initiator": true }

    A person you list under Required approvers may always answer, including the person who started the run.

    Note

    Who can approve by default. The Required approvers (user IDs) box is a plain text area where you type IDs, not a picker from your member list. Its placeholder reads Leave empty for open gate (any project editor), and the placeholder disappears once you type. The Human step in the first-run recipe is saved with "approver": { "any_member": true, "allow_initiator": true }, so any workspace member who can edit the project may approve, including the person who started the run. Command Center does not show this policy on the task. If you want a second person to approve, list their user IDs and remove allow_initiator in the step's JSON.

    Workflow Studio with the Approve the reply step selected and its settings on the right: Required approvers (user IDs) with the placeholder Leave empty for open gate (any project editor), Designated agent approvers (agent IDs) with the placeholder agent:supervisor-1, Resolver policy set to Human only (delegation / on-behalf), If no response (timeout policy) set to Keep waiting, When rejected set to Stop this branch with the help text Steps after this approval are skipped, other branches go on and the run completes as rejected, and Gate tags (delegation scope) with the placeholder finance, legal (optional)
    The Approve the reply step in the first-run recipe

    The same settings panel also has Designated agent approvers (agent IDs), Resolver policy, Gate tags (delegation scope), Reject requires direct human, and Delegation may. These control who can answer on someone's behalf. Standing delegations are managed in Settings → Delegation.

    Workflow Studio with the Human step Approve the refund selected, and its settings on the right: Required approvers, Designated agent approvers, Resolver policy, If no response (timeout policy), When rejected, Gate tags and Reject requires direct human
    The settings of a Human step
  4. Choose what happens next

    Set If no response (timeout policy) and When rejected. See below.

  5. Dry-run and run

    Click Dry-run, then Run.

    You should see the run pause at the Human step, and a task in Command Center under Needs you.

Fields on a human step:

FieldDescription
task_typeThe kind of task. approval (default) is an approve/reject decision.
task_payloadWhat the person sees: title, message, and any fields you want to show. Add response for a reply box.
approverWho may answer: user_ids, agent_ids, any_member and allow_initiator. With no user_ids or agent_ids and no any_member, nobody can answer.
timeout_sHow long to wait before the timeout policy applies. Studio's default is 86400 (24 hours).
timeout_policyWhat to do when nobody answers in time
on_rejectWhat to do when the person rejects

A Human step that hands a conversation to staff is open to anyone who can edit the project, so it needs no approver. So are the tasks the platform raises itself: an agent's question, a tool call limit, and a for_each review.

Keep payloads short. Include enough for the reviewer to decide.

Answer a task

In Command Center, the Needs you list shows each task. For an approval, click Approve or Reject. Reject opens an optional Reason box. You can also answer from the run panel in Workflow Studio. The full guide to the inbox is in Command Center.

Click View on a task to see the run behind it before you decide. The side panel shows the task with its own Approve and Reject buttons, and a Recent activity list. It does not show the text you are approving, such as the draft reply. That is in Studio: click Open in Studio, then View next to the approval bar under the canvas.

The run side panel in Command Center with a Needs your approval task showing Approve and Reject buttons, and a Recent activity list
The View panel of a task waiting for approval

What downstream steps receive

When a task is completed, the Human step's result is:

FieldDescription
approvedtrue if approved, false if rejected
Other fieldsAnything the person or API call adds (see below). A reject reason is under comment, an answer to an agent's question under answer, and a reply under the field you name.

The Approve and Reject buttons send only approved. They do not edit your draft. To use the draft, read it from the step that wrote it, for example {{steps.draft.result.text}}.

To pass edited text through, complete the task through the API with an optional result object. It is merged into the step result next to approved:

{
  "approved": true,
  "result": {
    "comment_body": "Edited review text posted to GitHub."
  }
}

A later step can then read {{steps.approve-review.result.comment_body}}.

When someone rejects: on_reject

In Studio this is When rejected.

SettingWhat happens
Stop this branch (default, stop_branch)Steps after the approval are skipped. Other branches carry on. The run then finishes as Success, not as failed or rejected. See the warning below.
Fail the run (fail_run)The run fails with the reviewer's comment.
Run the reject path (reject_path)Steps marked Run only when rejected (run_when: "rejected") run, and the others are skipped. If the task is approved it is the other way round.
Send back for changes (send_back)The reviewer's comment goes back to the drafting step (or the steps in Send back to), which runs again, and then the approval asks again. After Max revisions (default 3) a rejection stops the branch. The button then reads Send back instead of Reject.
Warning

A rejected run ends as Success. With the default Stop this branch, rejecting Approve the reply in the first-run recipe skips Mark it sent and finishes the run as a green Success. The step you rejected shows Skipped, the same label as a step that was never reached, and Analytics counts the run as a success. The help text under When rejected says the run "completes as rejected"; the Console does not currently show that status. If you need a rejection to show as a failure, choose Fail the run.

The reason a reviewer types when rejecting is under comment in the step result. Studio's canvas does not show it.

When nobody answers: timeout_policy

When the step's timeout_s runs out, If no response (timeout policy) decides:

SettingWhat happens
Keep waiting (none)The task expires and the step fails with "human_task timed out". It is listed under Missed.
Auto-approve (approve)The task is approved by the system, but only if the policy also has "allow_auto_approve": true in the step's JSON. Without it, the task expires and the step fails, as with Keep waiting.
Auto-rejectThe task is rejected by the system
Escalate to backup approversThe task goes to the user IDs you list. If you list none, it is rejected.
Hand the conversation back (session workflows) (return)For conversation sessions: the agent takes the chat back.

Tasks closed this way (other than a normal escalation) appear under Missed in Command Center so a person can follow up.

Warning

Do not skip the approval for risky outbound messages, and do not use Auto-approve for them either. A task that nobody answers should not send the message.

Reply tasks

Add a response to task_payload to give the person a reply box instead of Approve / Reject:

"response": { "field": "reply", "label": "Reply to the customer", "placeholder": "Type the message to send" }

The text they write becomes the step result under field: {{steps.<step-id>.result.reply}}. Send completes the task with their reply. Don't reply completes it without one. In a conversation session, the reply is also sent to the customer as the person who wrote it.

A task that has a conversation to return to also shows Hand back to the agent. It completes the step without a reply ({{steps.<step-id>.result.handed_back}} is true), sends nothing to the customer, and gives the conversation back so the agent answers the messages that arrived while the task was open. Don't reply drops those messages. See Hand off to a person.

Questions from agents

An agent that is stuck can ask a person instead of guessing. The question shows in Needs you as Question from the agent, with an answer box (Send answer) and End run. Your answer goes back to the agent, which continues. An agent can also carry on with an assumption and ask you to check it (The agent's assumption: Looks right, Dismiss, Correct it). You control this per agent step with Agent may ask a person, Max questions per run, and Answer within (minutes, optional). See Autonomous episodes.

Patterns

PatternWhen to use it
Approve before sendA model drafts content, a person approves, then a tool step sends it
EscalationA step decides a case is risky and a Human step has skip_when on the safe case, so only risky cases reach a person
Data correctionA person fixes extracted data before it is written somewhere
Conversation hand-offAn agent hands a customer chat to staff, who reply from the task. See Conversation sessions.

API

POST /v1/workflows/{id}/runs/{runID}/tasks/{task_id}/complete

You need project_contributor or higher, and a personal access token needs the matching scope. Body: approved, and optionally result.

WhatRequest
Pending tasks for one runGET /v1/workflows/{id}/runs/{runID}/tasks/pending
Pending tasks, whole workspaceGET /v1/tasks/pending
Missed tasksGET /v1/tasks/missed

Common problems

ProblemWhat to try
The run is paused and nobody sees a taskCheck who is allowed to answer under Required approvers (user IDs).
Approve or Reject is refusedThe step lists no approvers and has no "approver": { "any_member": true }, or you started the run and the step has no "allow_initiator": true. See Choose who can answer.
Auto-approve did not approveAdd "allow_auto_approve": true to the step's timeout_policy.
The step failed with "human_task timed out"The timeout policy is Keep waiting and nobody answered in time. Choose a different policy, or raise the step's Timeout.
Approve did not change the draftExpected. Read the draft from the step that wrote it, or complete the task through the API with a result.

Next steps

Edit this pageagentruntime-io/agentruntime-docs