Skip to main content
A reporting pipeline that uses an inner data workflow as a step. The inner workflow handles data fetching and cleaning, while the outer workflow generates and delivers the report.

Workflow

pipeline.py

How It Works

  1. data_pipeline (inner workflow) — fetches and aggregates sales data as a single step
  2. analyst — LLM analyzes the aggregated data (waits for data_pipeline)
  3. format_email — combines the LLM analysis and raw data into a report (waits for both data_pipeline and analyst)
The inner workflow’s final output (aggregate’s result) becomes the step output accessible by the outer workflow.

Running

The output will be similar to: