Tutorial
A practical guide to building workflows in Graflow — from your first task to advanced patterns.
This guide teaches you how to define tasks and build workflows through practical examples.
Learning Path
Basics — Start here
- Your First Task —
@taskdecorator and task IDs - Your First Workflow — Workflow context and execution
- Task Composition — Sequential (
>>) and parallel (|) operators - Passing Parameters — Channels and parameter binding
Core Concepts — Master the fundamentals
- Task Instances — Reusing tasks with different parameters
- Channels and Context — Inter-task communication, injection, and prompt management
- Execution Patterns — Getting results and controlling execution
- Complex Workflows — Diamond patterns and multi-instance
Advanced Topics — Dynamic control flow
- Dynamic Task Generation — Runtime task addition and control flow
Looking for a quick syntax reference? See the Cheatsheet.