Skip to main content

Examples Overview

This section provides comprehensive examples of StepFlow workflows, from simple operations to complex AI-powered applications. Each example includes complete workflow definitions, explanations, and best practices.

Example Categoriesโ€‹

๐Ÿš€ Getting Started Examplesโ€‹

How to Use These Examplesโ€‹

Running Examplesโ€‹

All examples can be run from the StepFlow repository:

# Clone the repository
git clone https://github.com/riptano/stepflow.git
cd stepflow/stepflow-rs

# Run a basic example
cargo run -- run --flow=examples/basic/workflow.yaml --input=examples/basic/input1.json

# Run with test cases
cargo run -- test examples/basic/workflow.yaml

Example Structureโ€‹

Each example includes:

  • ๐Ÿ“„ Workflow Definition: Complete YAML workflow file
  • ๐Ÿ“ Step-by-Step Explanation: How each part works
  • ๐Ÿงช Test Cases: Sample inputs and expected outputs
  • โš™๏ธ Configuration: Required plugins and settings
  • ๐Ÿ’ก Variations: Alternative approaches and extensions

Ready to dive in? Start with Basic Operations to learn the fundamentals, or jump to a specific example that interests you!