> ## Documentation Index
> Fetch the complete documentation index at: https://docs.enclave.ai/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> Enclave in these docs is the code and cloud security platform at enclave.ai. It is not Open Enclave, Intel SGX or other hardware enclaves, or enclave.gg.
> People use Enclave in the web app at https://app.enclave.ai or the desktop app. These docs describe no public Enclave API or CLI, so don't invent endpoints, commands, or config files.
> Connecting an integration needs a person to sign in and approve access in a browser. Tell the user the exact step to take instead of saying you completed it.

# Workflows

> 只需定义一次，即可按需、在事件发生时或按计划运行的安全分析。

工作流将智能体串联成多个步骤。它接收一个输入（例如一个仓库或一个发现项），并将结果保存为发现项。

Enclave 自带用于 PR 审查、仓库学习和安全狩猎的[内置工作流](https://docs.enclave.ai/zh/workflows/built-in.md)。你也可以在 Research 中描述需求，[创建自己的工作流](https://docs.enclave.ai/zh/workflows/create.md)。

![Workflows 页面，列出内置和自定义工作流及其触发器和智能体](https://mintcdn.com/enclave/bhnFMg4ldiTYrwZX/images/product/workflows.png?fit=max\&auto=format\&n=bhnFMg4ldiTYrwZX\&q=85\&s=e14d57d1cbc26ac43e3b015f7a0fb4cb)

## 何时使用工作流

当同样的分析需要运行不止一次时，请使用工作流：针对每个新发现项或拉取请求、按计划，或跨多个仓库。对于一次性问题，请使用 [Research](https://docs.enclave.ai/zh/research/sessions.md)。

## 工作流的组成

* **输入：** 运行对象，例如一个仓库、一个发现项或若干攻击面。
* **步骤：** 按顺序执行的工作。一个步骤可以运行一个智能体、为每条记录并行运行一个智能体、筛选记录或保存发现项。
* **智能体：** 每个步骤的模型、提示词和工具。可以使用已保存的[智能体](https://docs.enclave.ai/zh/workflows/agents.md)，也可以内联定义一个。
* **触发器：** 自动启动运行的条件。请参阅[触发器](https://docs.enclave.ai/zh/workflows/triggers.md)。
* **预算：** 每次运行的预算介于 20 到 2,000 积分之间（默认 80 积分）。你手动启动的运行在达到预算时会暂停，以便你用更大的预算[恢复它](https://docs.enclave.ai/zh/workflows/runs.md#%E6%9A%82%E5%81%9C%E5%92%8C%E6%81%A2%E5%A4%8D)。

## Workflows 页面

点击侧边栏中的 **Workflows**。每一行都会显示该工作流何时启动、它的智能体、**Triggers** 开关以及最近的运行。

打开工作流可查看其 **Flow**、**Runs** 和 **History**。**Flow** 标签页是只读的。

## 访问权限

成员可以查看工作流和运行。所有者和管理员可以创建、运行和更改它们。请参阅[角色与权限](https://docs.enclave.ai/zh/admin/roles.md)。


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.