Skip to main content
YAML workflows let you define Fibonacci workflows in a declarative format, separating workflow structure from application code. This approach is ideal for version control, code review, and non-developer workflow authoring.

Basic Structure

A YAML workflow file defines the complete workflow configuration:

Loading YAML Workflows

From File

From String

From URL

Node Types

LLM Nodes

Tool Nodes

Conditional Nodes

Critic Nodes

Advanced Configuration

Variables and Secrets

Use environment variables and secrets in YAML:

Retry Configuration

Memory Configuration

Timeouts

Workflow Composition

Including Other Workflows

Parallel Execution

Validation

Schema Validation

Fibonacci validates YAML workflows against a JSON Schema:

CLI Validation

Custom Validation Rules

Complete Example

Here’s a full production workflow example:

Best Practices

Store YAML workflows in Git for change tracking, code review, and rollback capabilities.
Use environment variables for configuration that differs between dev/staging/production:
Add descriptions to workflows and nodes:
Always run fibonacci validate in CI/CD pipelines before deploying workflow changes.

Next Steps

CLI Guide

Learn the Fibonacci command-line interface

Best Practices

Production workflow patterns