Petal Flow Examples
Examples
Section titled “Examples”Petal Flow ships with official examples in the main repository under examples/.
Official Example Set
Section titled “Official Example Set” 01 Hello World Minimal graph runtime flow with function nodes.
02 Iris Integration Use Iris-backed providers inside PetalFlow LLM nodes.
03 Sentiment Router Route execution paths based on classification outcomes.
04 Data Pipeline Transform, validate, and aggregate staged data.
05 RAG Workflow Retrieval + synthesis pipeline with citations and grounding.
06 CLI Workflow Agent/Task + Graph IR examples for `validate`, `compile`, and `run`.
07 MCP Overlay Tool registration and MCP overlay customization.
08 Webhooks Inbound webhook triggers and outbound webhook calls.
Run Locally
Section titled “Run Locally”git clone https://github.com/petal-labs/petalflow.gitcd petalflow
# Validate and run CLI examplepetalflow validate examples/06_cli_workflow/research.agent.yamlpetalflow run examples/06_cli_workflow/greeting.graph.json --input '{"name":"World"}'