Workflows
Starter Templates
25 production-ready workflow templates across 5 categories and 3 tiers.
AutoFlow ships with 25 starter templates in workflows/starter_templates/. These serve as few-shot references for the generator and as ready-to-use starting points in the catalog. All templates are stored as real Ask Sage v1 exports (nodes, edges, agent_config at the top level, plus an optional metadata block for catalog discovery). See Schema Validation for details.
Template Tiers
| Tier | Complexity | Description |
|---|---|---|
| Tier 0 | Beginner | Simple 2-3 node workflows for common tasks |
| Tier 1 | Intermediate | 4-6 node workflows with conditionals or loops |
| Tier 2 | Advanced | 6+ node workflows with decision trees, transforms, and multi-branch routing |
Templates by Category
Document Processing
| Template | Tier | Pattern | Description |
|---|---|---|---|
parse_then_summarize | 0 | multi_step | Read a document and produce a summary |
meeting_notes | 1 | extract_format | Extract action items and decisions from meeting transcripts |
contract_review | 2 | multi_step | Analyze contracts for key clauses, risks, and obligations |
Intelligence
| Template | Tier | Pattern | Description |
|---|---|---|---|
classify_then_route | 1 | classification | Classify input and route to specialized handlers |
classification | 1 | classification | Multi-category classification with confidence scoring |
sitrep_generator | 2 | multi_step | Generate situation reports from multiple intelligence sources |
threat_intel_digest | 2 | multi_step | Process threat intelligence feeds into actionable digests |
aar_generator | 2 | multi_step | Generate After Action Reports from event data |
Data Analysis
| Template | Tier | Pattern | Description |
|---|---|---|---|
json_extract | 0 | extract_format | Extract structured data from JSON documents |
excel_schema | 1 | extract_format | Analyze Excel files and extract schema information |
extract_then_format | 1 | extract_format | Extract data and reformat into a target structure |
batch_processing | 1 | batch_processing | Process multiple items with iteration |
data_validator | 1 | conditional | Validate data against rules with pass/fail routing |
report_generator | 2 | multi_step | Generate comprehensive reports from multiple data sources |
Communication
| Template | Tier | Pattern | Description |
|---|---|---|---|
ppt_outline | 0 | simple_qa | Generate presentation outlines from a topic |
email_draft | 0 | simple_qa | Draft professional emails from bullet points |
ppt_with_template | 1 | multi_step | Generate presentations following a specific template format |
faq_generator | 1 | extract_format | Generate FAQ documents from source material |
General
| Template | Tier | Pattern | Description |
|---|---|---|---|
text_summary | 0 | simple_qa | Summarize text input concisely |
self_review_writer | 2 | self_improving | Generate, evaluate, and iteratively improve written content |
variable_transform_demo | 1 | transform_chain | Demonstrate the four variable_transform operations end-to-end |
pdf_brief_generator | 2 | multi_step | Produce a polished PDF brief from a source document |
pptx_code_generator | 2 | multi_step | Generate a PowerPoint deck from outline input |
xlsx_workbook_generator | 2 | multi_step | Build an Excel workbook (e.g. dashboard) from tabular input |
mermaid_diagram_generator | 2 | multi_step | Generate a Mermaid diagram from textual requirements |
Bundled Examples
Each starter template can reference sample inputs and outputs through metadata.examples.{inputs,outputs} arrays. The shared bundle lives in workflows/_examples/:
inputs/—facilities.csv,source_brief.md,ticket.json,metrics.csv,diagram_requirements.mdoutputs/—brief.md,brief.pdf,deck.pptx,dashboard.xlsx,enriched_facilities.csv,ticket_summary.json,workflow_diagram.mmd,workflow_diagram.png,answer.txt
View the examples bundled with a specific template:
python -m autoflow --show-examples pdf_brief_generatorUsing Templates
Browse the catalog
python -m autoflow --catalog
python -m autoflow --catalog --filter-category intelligence
python -m autoflow --catalog --filter-tier 2
python -m autoflow --search "classification"View a template card
python -m autoflow --card classificationFork and customize
python -m autoflow --fork classification --fork-as my_classifier
python -m autoflow --modify-slug my_classifier --modify-node intake --set-temperature 0.0See the Catalog section for full details on browsing, forking, and customizing templates.