> ## 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

> Security analysis you define once and run on demand, on events, or on a schedule.

A workflow chains agents into steps. It takes an input, such as a repository or a finding, and saves its results as findings.

Enclave ships with [built-in workflows](https://docs.enclave.ai/workflows/built-in.md) for PR review, repository learning, and security hunts. You can also [create your own](https://docs.enclave.ai/workflows/create.md) by describing it in Research.

![The Workflows page listing built-in and custom workflows with their triggers and agents](https://mintcdn.com/enclave/bhnFMg4ldiTYrwZX/images/product/workflows.png?fit=max\&auto=format\&n=bhnFMg4ldiTYrwZX\&q=85\&s=e14d57d1cbc26ac43e3b015f7a0fb4cb)

## When to use a workflow

Use a workflow when the same analysis should run more than once: on every new finding or pull request, on a schedule, or across many repositories. For a one-off question, use [Research](https://docs.enclave.ai/research/sessions.md).

## Parts of a workflow

* **Inputs:** what it runs on, such as a repository, a finding, or attack surfaces.
* **Steps:** the ordered work. A step can run one agent, run one agent per record in parallel, filter records, or save findings.
* **Agents:** each step's model, prompt, and tools. Use a saved [agent](https://docs.enclave.ai/workflows/agents.md) or define one inline.
* **Triggers:** what starts a run automatically. See [Triggers](https://docs.enclave.ai/workflows/triggers.md).
* **Budget:** each run has a budget between 20 and 2,000 credits (default 80 credits). A run you start pauses when it hits its budget, so you can [resume it](https://docs.enclave.ai/workflows/runs.md#pause-and-resume) with a larger one.

## The Workflows page

Click **Workflows** in the sidebar. Each row shows when the workflow starts, its agents, its **Triggers** switch, and its recent runs.

Open a workflow to see its **Flow**, **Runs**, and **History**. The **Flow** tab is read-only.

## Access

Members can view workflows and runs. Owners and admins can create, run, and change them. See [Roles and permissions](https://docs.enclave.ai/admin/roles.md).


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