# Overview

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

Chains of steps the platform runs on its own: a model call, an agent, a web fetch, an HTTP request, a human approval, mail, storage, a deploy. They outlive your process.

Status: 5 methods · 23 step types · 4 triggers

The difference from an agent is not what it can do but **who is there**. An agent runs while your process runs and asks you before anything irreversible. A workflow runs with nobody watching — so what it may do is decided when it is saved, not while it runs.

| Call | Does |
| --- | --- |
| [create(definition)](/sdk/ref/workflows/create) | Validates and saves it. Returns a [Workflow](/sdk/ref/workflow). |
| [list()](/sdk/ref/workflows/list) | Every workflow of the account. |
| [get(id)](/sdk/ref/workflows/get) | One of them. |
| [getRun(runId)](/sdk/ref/workflows/get-run) | A run, from its identifier alone. |

```javascript
const workflow = await api.workflows.create({
  name: "Weekly digest",
  trigger: { type: "cron", cron: "0 8 * * 1" },
  steps: [
    { id: "read",  type: "storage.query", config: { storage: "…", action: "find", collection: "posts" } },
    { id: "write", type: "model.generate", config: { model: "gemini-3.5-flash",
        prompt: "Summarise these in five lines: {{steps.read.output.result}}" } },
  ],
});

const run = await workflow.run({ input: { since: "2026-10-01" } });
await run.wait();
console.log(run.data.status);
```

## A graph, not a list {#graph}

`edges` connects the steps — branches, parallel fan-outs, merges. Without it the order of `steps` is the chain, which is the simple case and stays supported.

## What acts outside the account needs approval in the graph {#approval}

> **Sending, publishing and writing DNS require a human step upstream**
>
> In a conversation those three are asked every time and no mode opens them. A workflow has nobody to ask — so the approval is required in the graph, and a definition without it is refused when you save it, where you can still read the message.

## A run outlives everything {#runs}

Starting one returns its identifier and the run continues on the platform. Your process can exit; [getRun()](/sdk/ref/workflows/get-run) picks it up later.

## The bounds {#bounds}

| Thing | Bound |
| --- | --- |
| Steps per workflow | 30 |
| Loop iterations | 500 |
| Loop concurrency | 10 |
| A wait | 86 400 seconds — one day |
| Mail recipients | 5 |

- [Workflow definition](/sdk/workflows): What a definition holds, and what is refused.
- [Workflow steps](/sdk/workflows/steps): The 23 types.
- [Workflow](/sdk/ref/workflow): Running, updating, testing a step.

```python
workflow = api.workflows.create({
    "name": "Weekly digest",
    "trigger": {"type": "cron", "cron": "0 8 * * 1"},
    "steps": [
        {"id": "read", "type": "storage.query", "config": {"storage": "…", "action": "find", "collection": "posts"}},
        {"id": "write", "type": "model.generate", "config": {"model": "gemini-3.5-flash",
            "prompt": "Summarise these in five lines: {{steps.read.output.result}}"}},
    ],
})

run = workflow.run(input={"since": "2026-10-01"})
run.wait()
print(run.data["status"])
```
