# human

Canonical URL: https://developers.iagenify.com/sdk/workflows/steps/human/
Language: en

`type: "human"`

The run stops and waits for a person. It is the only way a workflow can do anything that leaves the account.

Status: the run waits · no timeout · its data feeds the chain

```javascript
{ id: "approve", type: "human", config: { title: "Send this digest?" } }
```

## What happens {#waiting}

- The run's status becomes `waiting`, and the step's too.
- Nothing downstream runs.
- [resume(stepId, data)](/sdk/ref/workflow-run/resume) approves it.
- What you pass becomes the step's output, readable by the rest of the chain.

```javascript
await run.resume("approve", { approved: true, recipient: "team@example.com" });

// Downstream
{ id: "send", type: "mail.send", config: {
    box: "ops@example.com",
    to: "{{steps.approve.output.recipient}}",
    subject: "Digest", text: "{{steps.write.output.text}}" } }
```

## Three types require one upstream {#required}

> **mail.send, hosting.deploy and domain.records**
>
> In a conversation those are asked every time and no mode opens them. A run has nobody to ask, so the approval is required in the graph — and a definition without it is refused when you save it.

« Upstream » means on the path that reaches it. A human step on another branch does not cover a step the run can arrive at without passing through it.

## It waits indefinitely {#no-timeout}

There is no expiry. An approval that lapsed on its own would let a chain stall with nobody told — so a run that nobody will approve is closed with [cancel()](/sdk/ref/workflow-run/cancel), and the record says it was cancelled.

## Building an approval inbox {#inbox}

```javascript
const waiting = (await workflow.runs()).filter((r) => r.data.status === "waiting");
```

## It cannot be tested {#not-runnable}

[runStep()](/sdk/ref/workflow/run-step) answers `step_not_executable`: there is nothing to execute, only something to approve.

- [resume()](/sdk/ref/workflow-run/resume): Approving it.
- [mail.send](/sdk/workflows/steps/mail-send): What it usually guards.
- [Workflow steps](/sdk/workflows/steps): The 23 types.

```python
{"id": "approve", "type": "human", "config": {"title": "Send this digest?"}}
```

```python
run.resume("approve", {"approved": True, "recipient": "team@example.com"})

# Downstream
{"id": "send", "type": "mail.send", "config": {
    "box": "ops@example.com",
    "to": "{{steps.approve.output.recipient}}",
    "subject": "Digest", "text": "{{steps.write.output.text}}"}}
```

```python
waiting = [r for r in workflow.runs() if r.data["status"] == "waiting"]
```
