Composability
Learn how to break down and compose Compozy workflows into reusable pieces.
Overview
Break Down Workflows
Split large workflows into smaller, focused pieces for better maintainability and reuse
Reference Workflows
Use workflows from other workflows to create modular automation
Share Patterns
Create common workflow patterns that can be reused across your organization
Create Libraries
Build workflow libraries to standardize processes and reduce duplication
Workflow References
Reference other workflows to create modular, reusable automation:
Input Mapping
When referencing workflows, map inputs using the with
property:
Workflow Libraries
Create reusable workflow libraries to share common patterns:
Reference workflows from libraries:
Shared Context
Share context between composed workflows through:
- Input/Output Mapping
- Environment Variables
Best Practices
-
Workflow Organization
- Keep workflows focused and single-purpose
- Use clear, descriptive names
- Maintain a consistent directory structure
- Document requirements
- Version your workflow libraries
-
Input/Output
- Define clear input contracts
- Document expected formats
- Handle optional parameters
- Maintain consistent output structures
-
Error Handling
- Implement consistent error handling
- Provide clear error messages
- Clean up resources properly