The workflow
ensemble.fabro
This workflow requires API keys for all four providers (
ANTHROPIC_API_KEY, GEMINI_API_KEY, OPENAI_API_KEY, INCEPTION_API_KEY). If a provider key is missing, that branch will fail — but the remaining branches still complete.How it works
The workflow has three phases:1. Fan-out to four providers
Thefork node spawns four parallel branches, each assigned to a different provider via the stylesheet:
2. Merge results
Themerge node collects all four responses. It waits for every branch — even if some fail. A missing API key or provider outage doesn’t cancel the entire workflow.
3. Synthesize
Thesynth node receives all four perspectives in its preamble and produces a unified recommendation. It uses reasoning_effort: high because comparing and synthesizing multiple viewpoints is a harder task than generating any single one.
Combining patterns
This workflow combines two patterns from earlier tutorials:- Parallel execution from Parallel Review — fan-out/fan-in with join policies
- Model routing from Multi-Model Routing — stylesheet selectors assigning different providers to each node
When to use ensembles
The ensemble pattern is most valuable when:- Correctness matters more than speed — e.g., security audits, architectural decisions, spec reviews
- You want to detect model-specific blind spots — if three models agree and one disagrees, the disagreement is worth investigating
- You need confidence in a judgment call — consensus across models is stronger than any single model’s opinion
What you’ve learned
- Ensemble workflows fan out the same task to multiple providers
- ID selectors (
#opus,#gemini) assign each branch to a specific model - A synthesis node compares perspectives and produces a unified result
- Combine parallel execution and model routing for diverse, independent analysis
Next
Sub-Workflows
Delegate to reusable child workflows with the supervisor pattern.