> For the complete documentation index, see [llms.txt](https://docs.docbits.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.docbits.com/chinese/guan-li-yu-she-zhi/workflow/standard-workflow-builder.md).

# 标准工作流

**标准工作流**构建器是一个基于卡片的线性编辑器，用于自动处理文档。一个工作流由三组卡片组成：**When**（触发条件）、**And**（附加条件）和 **Then**（要执行的操作）。当文档符合 When/And 条件时，Then 操作会自动运行。

## 如何访问

打开 **Workflow Dashboard → Workflow List**，然后点击 **New Workflow** 创建新的标准工作流，或点击现有工作流进行编辑。

<figure><img src="https://1870485400-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FlPczlNw8zzYNLfjfispX%2Fuploads%2Fgit-blob-14e68b1c06422900e386b8cbdea466a7a52f99f2%2Fworkflow_list.png?alt=media" alt="Workflow List，显示类型、执行顺序和触发条件"><figcaption><p>Workflow List — 每一行都是一个工作流，你可以打开、启用或停用，也可以进行编辑。</p></figcaption></figure>

## When / And / Then 模型

<figure><img src="https://1870485400-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FlPczlNw8zzYNLfjfispX%2Fuploads%2Fgit-blob-11ce06578b5d0bd3c75de5b078b38ce1a85ef74e%2Fworkflow_designer_cards.png?alt=media" alt="包含 When、And 和 Then 卡片的标准工作流画布"><figcaption><p>标准工作流画布。此示例会在子组织中的发票触发，并将其分配给一位用户。</p></figcaption></figure>

* **When** — 启动工作流的触发条件（例如，*Document type is Invoice*）。
* **And** — 还必须满足的其他条件（例如，*Document is part of sub-organization*）。留空时，只要符合 When 卡片的条件就会运行。
* **Then** — 要执行的操作（例如，将文档分配给用户、创建任务、调用 API 或发送电子邮件）。

## 添加卡片

在任意分组中点击 **Add Card**，打开卡片库。卡片按类别整理，方便你找到所需的构建模块：

<figure><img src="https://1870485400-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FlPczlNw8zzYNLfjfispX%2Fuploads%2Fgit-blob-2ccc7ea4b50902d7a347644f91f61aafcb791464%2Fworkflow_add_card_picker.png?alt=media" alt="按类别分组的 Add Card 卡片库"><figcaption><p><strong>Add Card</strong> 卡片库 — 按类别分组的条件卡片、比较卡片、操作卡片等。</p></figcaption></figure>

点击 **Save Workflow** 保存，或点击 **Save Template** 将布局保存为可重复使用的模板。

## 工作流模板 <a href="#workflow-templates" id="workflow-templates"></a>

工作流工具栏中的 **Templates** 按钮会打开 **Workflow Templates** 库，你可以在其中管理组织中保存的模板：

<figure><img src="https://1870485400-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FlPczlNw8zzYNLfjfispX%2Fuploads%2Fgit-blob-4d29508a22c1ef0e04cc1a3988cb201a4bd013bb%2Fworkflow_templates_dialog.png?alt=media" alt="Workflow Templates 对话框，列出模板及 Name、Updated By、Last Modified On 和 Actions 列，并启用了 Show default Templates 选项"><figcaption><p><strong>Workflow Templates</strong> 对话框 — 显示已保存的模板；启用 <strong>Show default Templates</strong> 后，还会显示内置默认模板。</p></figcaption></figure>

* 列表会显示每个模板的 **Name**、**Updated By** 和 **Last Modified On**。
* 启用 **Show default Templates**，即可在列表中显示内置默认模板。
* 使用所在行的 **Actions** 菜单 **Duplicate** 模板，或 **Delete** 已保存的模板 — 内置默认模板无法删除。
* 点击模板所在行，可在 **Template Designer** 中打开该模板。该设计器使用与标准工作流设计器相同的 When/And/Then 画布。点击 **Save Template** 保存更改。
* 要从模板新建工作流，请在设计器中打开模板，调整卡片，然后点击 **Save Workflow** 将其保存为工作流。

## 后续步骤

* 在 **Cards** 部分了解各卡片的功能。
* 通过 **Workflow Pattern Guides** 将卡片组合为经过验证的解决方案。
* 如需包含并行路径（Wait ALL / Wait ANY / OR）的分支流程，请使用 **Advanced Workflow** 构建器。


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.docbits.com/chinese/guan-li-yu-she-zhi/workflow/standard-workflow-builder.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
