> 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 orchestrate multi-step operations across agents, tools, and knowledge assets to deliver repeatable, governed outcomes

**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="https://4224699095-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FOiaqJSBSlzJUNsPbqkdF%2Fuploads%2FOfyElf2Lzc8x3tdO01Ez%2FBildschirmfoto%202025-10-22%20um%2013.11.10.png?alt=media&amp;token=d50ab723-770b-45da-8dc4-43e99514f9b1" 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 by asking a question.

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

```
GET https://api.docs.blockbrain.ai/concepts/workflows.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.
