# 概览

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

名称、 触发器、 步骤和它们之间的边缘。 可以在检查的所有东西都会在保存时被检查, 因为工作流量在无人观看的地方失败 。

Status: 30 steps · 23 types · validated on save

```javascript
{
  name: "Weekly digest",
  trigger: { type: "cron", cron: "0 8 * * 1" },
  steps: [
    { id: "read",  type: "storage.query",  config: { … } },
    { id: "write", type: "model.generate", config: { … } },
  ],
  edges: [
    { from: "__trigger", to: "read" },
    { from: "read", to: "write" },
  ],
}
```

| Name | Type | Requirement | Description |
| --- | --- | --- | --- |
| `name` | string | 必填 | 所谓的它是什么。 |
| `trigger` | object | 必填 | `manual` · `cron` · `webhook` · `mail`. |
| `steps` | array | 必填 | 一到三十步 开始 |
| `edges` | array |  | 图图. 缺席系指 `steps` 链是链。 |

## 单步标识符 {#ids}

字母、字母、数字、下划线或划线、最多40个字符、工作流程中独有的。它们就是模板和边边的名称,因此值得选择: `draft`, `approve`, `send`.

## 模板 {#templates}

| 书面 | 读读 |
| --- | --- |
| `{{input.since}}` | 跑步的输入。 |
| `{{steps.read.output.result}}` | 上游一步的输出。 |

提及工作流程不支持的一步,或提及 **上游**,当工作流程被保存时拒绝拒绝 。 [错误错误](/zh/sdk/workflows/errors).

## 三个步骤类型需要人性的一步 {#approval}

> **mail.send, hosting.deploy 和 domain.records**
>
> 每一个人都行动在账户之外,没有人可以要求逃跑。 人类一步必须走在通往账户的道路上,而没有定义的定义在你们拯救时被拒绝。

## 本分支的其余部分 {#pages}

- [连线与分支](/zh/sdk/workflows/edges): 图表,以及每个形状需要什么。
- [模板](/zh/sdk/workflows/templates): 阅读投入和上游产出。
- [错误](/zh/sdk/workflows/errors): 每一个拒绝,它意味着什么。

- [工作流步骤](/zh/sdk/workflows/steps): 全部 23 种类型。
- [警告](/zh/sdk/workflows/warnings): 一步一步说不失败。

```python
{
    "name": "Weekly digest",
    "trigger": {"type": "cron", "cron": "0 8 * * 1"},
    "steps": [
        {"id": "read", "type": "storage.query", "config": {}},
        {"id": "write", "type": "model.generate", "config": {}},
    ],
    "edges": [
        {"from": "__trigger", "to": "read"},
        {"from": "read", "to": "write"},
    ],
}
```
