> For the complete documentation index, see [llms.txt](https://api.docs.blockbrain.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://api.docs.blockbrain.ai/concepts/workflows.md).

# Workflows

**Workflows** standardize how complex tasks are performed—from data collection and enrichment to analysis, drafting, review, and publishing—while enforcing policies and capturing provenance. They encode proven processes so outcomes are consistent and auditable.

<figure><img src="/files/DklC4dNJvt9FnP6LxTw8" alt=""><figcaption></figcaption></figure>

### Core Concepts

* **Workflow**: A named, versioned process definition describing steps, transitions, and policies.
* **Step**: A unit of work (human or automated) that transforms inputs into outputs.
* **Context**: The execution state containing conversation/data-room references, documents, insights, and parameters.

### Workflow Execution Mode

There are 2 modes for workflows: `run_all_step` and `step_by_step`, corresponding to `Autopilot` and `Human in the Loop` mode respectively.

**For API Access, it is recommened to use `run_all_step` mode for easier integration.**

### Best Practices

* Start with a minimal viable path; add branches and gates incrementally.
* Encapsulate reusable steps and evaluation criteria for consistency.
* Prefer parallelism for independent tasks; guard with resource limits.


---

# 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 dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://api.docs.blockbrain.ai/concepts/workflows.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
