> 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/administration-and-setup/workflow/advanced-workflow-builder.md).

# Advanced Workflows

Build, connect, test, save and activate document workflows with alternative routes and merge nodes.

<figure><img src="https://578966019-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FT2n2w4uDCJvv7CJ5zrdk%2Fuploads%2Fgit-blob-18f59b9b96c49117c0c65a497bc08e0bc926dc8e%2Fprior-u034-en.png?alt=media" alt="Advanced workflow builder node menu."><figcaption><p>Advanced workflow builder node menu.</p></figcaption></figure>

An **Advanced Workflow** routes a document through a graph of triggers, conditions and actions. Use it when the next action depends on a result, several checks feed a common action, or an error needs its own handling path. **Connections determine execution order**; placing a card farther to the right does not make it run later.

Use a [Standard Workflow](/administration-and-setup/workflow/standard-workflow-builder.md) for a linear **When → And → Then** automation. Both builders use the same [card catalog](/administration-and-setup/workflow/cards-overview.md). The advanced builder adds explicit connections and control nodes.

## Watch: an invoice routing example

Meet Mike, then follow his explanation and real actions in the English DocBits interface: inspect Workflow List and License, name a workflow, configure an invoice amount check and two actions, arrange the cards, connect both routes and inspect the document and Custom Data test options.

{% embed url="<https://docbits-videos.fra1.cdn.digitaloceanspaces.com/settings-assistant/advanced_workflows_canvas-admin/v7/en.mp4>" %}

[Open video](https://docbits-videos.fra1.cdn.digitaloceanspaces.com/settings-assistant/advanced_workflows_canvas-admin/v7/en.mp4) · [Captions (WebVTT)](https://docbits-videos.fra1.cdn.digitaloceanspaces.com/settings-assistant/advanced_workflows_canvas-admin/v7/en.vtt) · [Transcript (text)](https://docbits-videos.fra1.cdn.digitaloceanspaces.com/settings-assistant/advanced_workflows_canvas-admin/v7/en.txt) · 3:42

The recording shows an unsaved demonstration draft. The fields `total_amount` and `approval_route` are example keys. `Approval` and `Standard` label the routes; configure the actual business actions for your process. This demo account has no Advanced Workflow subscription, so validation is blocked and no test, server save or activation is performed.

| In this film                | Start                                                                                                                             |
| --------------------------- | --------------------------------------------------------------------------------------------------------------------------------- |
| Meet the administrator      | [0:00](https://docbits-videos.fra1.cdn.digitaloceanspaces.com/settings-assistant/advanced_workflows_canvas-admin/v7/en.mp4#t=0)   |
| Check workflow access       | [0:09](https://docbits-videos.fra1.cdn.digitaloceanspaces.com/settings-assistant/advanced_workflows_canvas-admin/v7/en.mp4#t=9)   |
| Name the workflow           | [0:37](https://docbits-videos.fra1.cdn.digitaloceanspaces.com/settings-assistant/advanced_workflows_canvas-admin/v7/en.mp4#t=37)  |
| Configure the amount check  | [0:52](https://docbits-videos.fra1.cdn.digitaloceanspaces.com/settings-assistant/advanced_workflows_canvas-admin/v7/en.mp4#t=52)  |
| Add the Approval action     | [1:16](https://docbits-videos.fra1.cdn.digitaloceanspaces.com/settings-assistant/advanced_workflows_canvas-admin/v7/en.mp4#t=76)  |
| Add the Standard action     | [1:37](https://docbits-videos.fra1.cdn.digitaloceanspaces.com/settings-assistant/advanced_workflows_canvas-admin/v7/en.mp4#t=97)  |
| Arrange the canvas          | [2:00](https://docbits-videos.fra1.cdn.digitaloceanspaces.com/settings-assistant/advanced_workflows_canvas-admin/v7/en.mp4#t=120) |
| Connect the routes          | [2:17](https://docbits-videos.fra1.cdn.digitaloceanspaces.com/settings-assistant/advanced_workflows_canvas-admin/v7/en.mp4#t=137) |
| Prepare test cases          | [2:44](https://docbits-videos.fra1.cdn.digitaloceanspaces.com/settings-assistant/advanced_workflows_canvas-admin/v7/en.mp4#t=164) |
| Validate, save and activate | [3:10](https://docbits-videos.fra1.cdn.digitaloceanspaces.com/settings-assistant/advanced_workflows_canvas-admin/v7/en.mp4#t=190) |

<details>

<summary>Transcript</summary>

**Meet the administrator**

I look after DocBits here. Let me show you how I build an invoice check and connect its two routes.

**Check workflow access**

I start on Workflow Dashboard and open Workflow List. Then I check License. Workflow and Advanced Workflow both need active access. With those enabled, New Workflow offers Advanced Workflow. This documentation account has no active workflow subscription, so this video continues with an unsaved designer preview.

**Name the workflow**

I'm working in the real DocBits designer. First, I give this draft a clear name. We'll check an invoice amount, then use two simple actions to show the possible routes. This demonstration stays unsaved.

**Configure the amount check**

I open Add and choose And. Under Document Field, I select the Docfield condition. I set the field to total amount. Then I choose Greater Than. And enter one thousand. Use your own document field key. Exactly one thousand does not pass this comparison.

**Add the Approval action**

Now I add a Then card from Document Field. The action sets a document field. I use the demonstration key approval route, and enter Approval. This labels the route. A real approval process needs its own business actions.

**Add the Standard action**

I add a second Then card using the same action. The action sets a document field. I use the demonstration key approval route, This time, the demonstration field gets the value Standard. Both cards are configured. They still need connections to define which action runs.

**Arrange the canvas**

I drag the cards into a readable layout. The two actions go on the right. The condition sits in the middle, with Start on the left. Moving cards changes their position. It does not create a connection.

**Connect the routes**

I drag from Start's output to the condition's input. The Success route goes to Approval, with a blue connection. The orange Failed Condition route goes to Standard. Red Error is a separate output for evaluation failures. Here it remains unconnected. In a production workflow, decide how you will handle those failures.

**Prepare test cases**

The toolbar Test button opens Select Test Document. I can select a demonstration document, or prepare complete Custom Data. Test amounts above, below, and exactly at one thousand. Check a missing amount too. This account has no Advanced Workflow subscription. I'm showing test preparation, not an executed result.

**Validate, save and activate**

I locate Validate to check connections and card settings. This account blocks validation because the subscription is unavailable. In an enabled account, I would save explicitly to the server. Then check activation separately. The switch is disabled before the first save. The automatic draft indicator refers to a local browser copy. It does not mean this workflow is saved or enabled.

</details>

Continue with the [five-part video guide](/administration-and-setup/workflow/advanced-workflow-builder/videos.md) for nodes and routes, variables and testing, finding log entries and diagnosing an execution. All chapters on this English page use English narration, caption files and transcripts.

## Open or create an Advanced Workflow

1. Open **Workflow Dashboard → Workflow List**.
2. Select **New Workflow → Advanced Workflow**. Some versions label the button **Add Workflow**.
3. Enter a name in the toolbar. Add a description that explains the business purpose.
4. Use the automatic **Start** node for a manual entry point, or add a **When** card for an event trigger.
5. Add and configure conditions and actions. Connect their appropriate result handles.
6. [Validate and test](/administration-and-setup/workflow/advanced-workflow-builder/validation-and-testing.md), save explicitly and check the enabled state.

The Workflow Builder module and Advanced Workflow option must be enabled for the organization, and the required subscription must be available. If the creation option is missing or an operation is refused, ask your administrator to check both module access and licensing. Opening a designer URL alone does not establish execution or log access.

<figure><img src="https://578966019-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FT2n2w4uDCJvv7CJ5zrdk%2Fuploads%2Fgit-blob-6426a69319ec32bc257216531563039967cb821f%2Fadvanced_workflows_canvas_en.png?alt=media" alt="Advanced Workflow canvas with its automatic Start node and bottom toolbar"><figcaption><p>Start provides the manual entry. The toolbar adds nodes, configures the workflow, validates, tests, saves and activates it.</p></figcaption></figure>

## Building blocks

| Building block               | Purpose                                                                                                 | Details                                                                                                  |
| ---------------------------- | ------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------- |
| **Start / When**             | Start a manual test or respond to an event. Entry nodes have no input.                                  | [Nodes](/administration-and-setup/workflow/advanced-workflow-builder/nodes.md)                           |
| **And**                      | Route success, false condition and error separately.                                                    | [Condition cards](/administration-and-setup/workflow/cards-overview/condition-cards-complete-guide.md)   |
| **Then**                     | Perform an action, such as assigning a task or setting a field. Actions can connect to further actions. | [Action cards](/administration-and-setup/workflow/cards-overview/then.md)                                |
| **Wait ALL / Wait ANY / OR** | Merge incoming routes according to their results.                                                       | [Merge rules](/administration-and-setup/workflow/advanced-workflow-builder/nodes.md#merge-branches)      |
| **Note**                     | Explain the design without executing an operation.                                                      | [Toolbar and canvas](/administration-and-setup/workflow/advanced-workflow-builder/toolbar-and-canvas.md) |
| **Variables**                | Share typed values that compatible cards can read or update.                                            | [Variables and scope](/administration-and-setup/workflow/advanced-workflow-builder/variables.md)         |

<figure><img src="https://578966019-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FT2n2w4uDCJvv7CJ5zrdk%2Fuploads%2Fgit-blob-c5a27c56c6bc7d3b1cf5f876e99187ff6fcc3d35%2Fadvanced_workflows_add_menu_en.png?alt=media" alt="Add menu with When, And, Then, Start, Wait ALL, Wait ANY, OR and Note"><figcaption><p>The available node types. Start is already present and cannot be added a second time from this menu.</p></figcaption></figure>

## Example: route a high-value invoice for approval

1. Choose the appropriate invoice event in a **When** card.
2. Add an **And** card that compares the invoice amount with the threshold. Configure its field, comparison and value.
3. Connect the trigger to the condition's input.
4. Connect **blue success** to a **Then** card that creates or assigns an approval task.
5. Connect **orange failed condition** to the intended normal-processing action.
6. Connect **red error** to a separate handling action if evaluation fails.
7. Test an amount above the threshold, below it, at the exact boundary and with missing or invalid data.

Connections create the behavior. Two unconnected actions do not create alternatives. A false condition is also different from an execution error.

{% hint style="info" %}
An Advanced Workflow can continue through an explicitly connected **Failed Condition** route. The Standard Workflow rule that stops remaining linear cards after a false condition does not apply to the entire advanced graph.
{% endhint %}

## Save, activation and automatic drafts

**Save** writes the workflow to the server. The activation switch changes the enabled state of a saved workflow and is unavailable before the first save. Check the resulting state in **Workflow List**, including after the first save. Saving and checking activation are separate steps.

The automatic-save indicator refers to a **local browser draft**, normally stored every 30 seconds after changes. It does not replace a server save. A draft belongs to that browser and can expire after 24 hours. A restore prompt can appear after a reload; a newer server version can make an old draft stale. Save explicitly before relying on the workflow from another session.

Organization variables persist independently. Discarding a canvas draft does not undo a variable change.

## Complete guide

* [Video guide](/administration-and-setup/workflow/advanced-workflow-builder/videos.md): five narrated chapters in English, with captions and transcripts.
* [Toolbar and canvas](/administration-and-setup/workflow/advanced-workflow-builder/toolbar-and-canvas.md): every control, selection, editing, notes and shortcuts.
* [Nodes and connections](/administration-and-setup/workflow/advanced-workflow-builder/nodes.md): entry points, versions, result handles, merges and connection rules.
* [Variables](/administration-and-setup/workflow/advanced-workflow-builder/variables.md): all four types, organization scope and immediate persistence.
* [Validation and testing](/administration-and-setup/workflow/advanced-workflow-builder/validation-and-testing.md): structural checks, document and custom input, results and regression scenarios.
* [Workflow Logs](/administration-and-setup/workflow/workflow-logs.md): inspect document executions and their messages.


---

# 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/administration-and-setup/workflow/advanced-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.
