Catalog
Import & Export
Export workflows as portable JSON and import from external files.
AutoFlow supports exporting workflows as self-contained portable JSON envelopes and importing workflows from external files.
Export
Export any catalog or custom workflow to a portable JSON file:
python -m autoflow --export classificationThis produces a file with a wrapper envelope:
{
"export_format": "autoflow_workflow_v1",
"exported_at": "2025-01-15T10:30:00Z",
"source_slug": "classification",
"workflow": {
"nodes": [...],
"edges": [...],
"metadata": {...}
}
}The envelope includes format versioning and provenance so the workflow can be shared and re-imported reliably.
Import
Import a workflow from a portable JSON file:
python -m autoflow --import-workflow /path/to/exported.jsonThe imported workflow is saved to workflows/custom_workflows/ and becomes available in the catalog alongside built-in templates.
Import validates:
- The envelope format and version
- The contained workflow against the Agent Builder schema
- Structural rules (node IDs, edges, orphans, variables)
Sharing Workflows
The export/import cycle makes it straightforward to share workflows between teams:
- Author develops and tests a workflow using the catalog and customization tools
- Author exports:
python -m autoflow --export my_workflow - Recipient imports:
python -m autoflow --import-workflow shared_workflow.json - Recipient can further customize:
python -m autoflow --fork my_workflow --fork-as team_version
Programmatic Access
from autoflow.catalog.customizer import WorkflowCustomizer
customizer = WorkflowCustomizer()
# Export
customizer.export_workflow("classification", "/tmp/classification.json")
# Import
customizer.import_workflow("/tmp/classification.json")