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

# Workflow builder

> Build Ravenna workflows on the visual canvas: add a trigger and actions from the action picker, connect and converge steps, and reorder, duplicate, or delete them.

Build a workflow on the visual canvas. Pick a trigger, add actions from the action picker, and connect them into the order they should run.

## Workflow graph model

A workflow is a directed acyclic graph with one root trigger node. Action nodes connect to the trigger or to other actions through directed edges. Edges are either unconditioned (always followed) or carry a condition (followed when it matches). The graph must have no cycles, no orphaned nodes, and every action must be reachable from the trigger. Goto jumps back to an earlier step without adding an edge, so the graph itself stays acyclic.

**Placeholder nodes:** a step whose action hasn't been chosen yet is a placeholder, shown as **Select action event**. Placeholders are ordinary graph nodes: they accept child steps and can be branched from, so a graph can be laid out before its actions are picked. They can't be dragged to reorder, and they fail validation until an action is selected.

**Editing lock:** while Ravenna Assistant is editing a workflow, the web builder is read-only for everyone viewing it.

**Publishing:** Ravenna Assistant can validate and publish a workflow, but only when the user explicitly asks. When republishing a workflow that has runs in progress, ask the user whether those runs should finish on the previous version or be stopped.

***

## Connection patterns

**Sequential:** Trigger, then A, then B, then C. Use for straightforward automations where each step depends on the previous one.

**Conditional branching:** Trigger, then If / Else, then a True path and a False path. If / Else is a gate: only the matching path runs. Conditional does not branch. It records its result as Is Success, never blocks, and lets a later action decide with its own filters. Use If / Else to do different things per outcome; use Conditionals when several checks should lead to one action. See [Conditions and branching](https://docs.ravenna.ai/documentation/workflows/conditions-branching.md).

**Parallel execution:** Trigger connects to several actions that start together. Use when actions are independent (for example, notify Slack, create a Jira issue, and send an email).

**Parallel with convergence:** Trigger connects to actions A and B in parallel, and both connect to action C. C runs at most once, using the outputs of the parents that completed. Use when parallel paths share a next step.

**Approval gate:** Trigger, then Add Approval Round or Apply Approval Template, then Wait for Approval, then the On Approved, On Declined, and On Timeout paths. See [Approvals in workflows](https://docs.ravenna.ai/documentation/workflows/approvals.md).

**Wait-and-branch:** Trigger, then an action, then Wait for Message, then If / Else on its Is Success result (true when a message arrived, false on timeout). See [Waits, loops, and Goto](https://docs.ravenna.ai/documentation/workflows/waits-loops.md).

**Error-handling branch:** A step whose only parent failed does not run, so recovery logic can't hang directly off a failing step. Use an action that reports failure in its output instead, such as HTTP Request with **Fail on error** disabled, then route on its Is Success result with an If / Else, or give the recovery step its own filters.

### Converging branch behavior

* **Conditioned edges must all pass.** True, False, On Approved, On Declined, On Timeout, Approved, and Declined edges carry a condition. A step runs only if every incoming edge with a condition evaluates to true. Edges without one, shown as "Always" or unlabeled, are ignored by this check. Several If / Else True edges into one step therefore mean "all", never "any".
* **Skipped parents stop their path.** Children run only from parents that completed or failed. Nothing runs from a skipped parent.
* **Failed parents:** if every immediate parent failed, the step does not run. Otherwise it runs with data from the completed paths only. References to fields on failed or skipped parents resolve to empty values, so guard them when needed.
* **Run once:** a converging step that already completed is not run again when another parent finishes.

Partial failure in a parallel branch does not cancel its siblings. For "run one action if any of several checks match", use one Conditional per check connected to that action, and OR their Is Success results in the action's own filters.

***

## Step management operations

### Duplication

* **Duplicate node:** copies one step and inserts it directly below the original, between the original and its child steps. The copy has the same configuration.
* **Duplicate tree:** copies the selected step and all of its downstream steps, keeping the branch structure and configuration.

Constraints:

* Trigger nodes can't be duplicated.
* Steps inside loops can't be duplicated.
* Duplicated steps are independent copies. Changing the original doesn't change the copy.

### Deletion

Steps can be removed from the graph. Steps that other nodes depend on, such as steps referenced by dynamic values downstream, may be protected from deletion. Remove the dependent references first.

***

## Common workflow recipes

**Notification on ticket creation:**
Trigger: Ticket Created (filtered by channel or priority). Then Send Message to the team's Slack channel. Then Add Tags for tracking.

**Conditional routing:**
Trigger: Ticket Created. Then If / Else (check priority). True path: assign to the senior team, then notify the manager. False path: Add Assignee with Round Robin.

**Approval gate with provisioning:**
Trigger: Form Submitted (access request form). Then Add Approval Round (the requester's manager). Then Wait for Approval. On Approved: provision the Okta group, then send a confirmation. On Declined: notify the requester (Ravenna posts the decline reason on the ticket). On Timeout: escalate or close.

**External system sync with link-back:**
Trigger: Ticket Created (filtered by category). Then Create Jira Issue from the ticket fields. Then Link Ticket to attach the Jira URL. Then Send Message with the Jira link.

**Escalation after inactivity:**
Trigger: Ticket Created. Then Wait for Inactivity (2 hours, messages from the assignee). It continues only once 2 hours pass with no matching message. Then Add Assignee (escalation team), then Send Message to notify the manager.

**Parallel provisioning:**
Trigger: Form Submitted (onboarding form). Then parallel paths: create the Okta account, add to Google Workspace, invite to Slack channels. Converge, then send a summary to the requester.

**Task follow-up:**
Trigger: Task Item Completed, filtered to one task in a task template. Then Send Message on the ticket, or Add Assignee to hand the ticket to the next owner.

**Round-robin assignment with notification:**
Trigger: Ticket Created. Then Add Assignee (team group, Round Robin). Then send a Slack DM to the assignee with the ticket details.

**Bulk stale ticket reminder (Loop):**
Trigger: Cron (daily). Then Search Tickets (open, not updated in 7 days). Then Loop over the results (up to 50 items). Inside the loop: Send Message on each ticket asking the assignee to update or resolve it.

**Scheduled access expiry (Wait Until):**
Trigger: Form Submitted (access request form). Then provision access (add to an Okta group). Then Wait Until the expiry date from the form. Then remove from the Okta group. Then Send Message telling the user their access has expired.

***

## Validation rules

Before publishing, the engine checks:

* **One trigger:** exactly one trigger node exists.
* **Reachability:** every action node is reachable from the trigger.
* **No cycles:** the graph is acyclic. Goto jumps don't count, because they don't add edges.
* **No orphans:** no disconnected action nodes.
* **Required fields:** every required field on every node is filled in, and no placeholder steps remain.
* **Integration status:** actions that need an integration have it connected.
* **Valid references:** dynamic values point to existing upstream steps and valid fields.

***

## Integration requirements

Actions that work with external systems (Jira, Okta, Linear, Slack, Google Workspace, PagerDuty, and others) need a connected integration. An action can be unavailable because the integration isn't connected, because a setting on the integration turns the action off, or because the integration is restricted from the workspace. A disconnected integration or expired credentials make the action fail at run time even if the workflow passed validation.

Prefer native integration actions over HTTP Request. Native actions handle authentication, errors, and output parsing. Use HTTP Request only when no native action exists. Foundry custom actions appear alongside native actions in the picker.


## Related topics

- [Workflows](https://docs.ravenna.ai/documentation/workflows/overview.md)
- [Slack Workflow Builder](https://docs.ravenna.ai/integrations/slack/workflow-builder.md)
- [Test a workflow](https://docs.ravenna.ai/documentation/workflows/test.md)


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