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โ
- Basic Operations - Simple workflows demonstrating core concepts
- AI Workflows - OpenAI integration, prompt engineering, and AI-powered analysis
- Data Processing - File handling, transformation, and validation patterns
- Custom Components - Building reusable components in Python and other languages
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!