Repository Structure
Your workflow repository can be organized in any way you prefer. Here’s a simple example:Manifest File
Themanifest.yaml defines your workflow’s metadata, dependencies, and configuration:
Workflow Definition
The main workflow file defines the actual workflow logic. This can be placed anywhere in your repository, just make sure to reference it in themain property of your manifest:
Component Imports
As any other component, shared workflows can import and use various components from other files or packages:- Task Types - Basic, Parallel, Decision, etc.
- Agents - AI-powered automation components
- Tools - Utility functions and integrations
- Shared Workflows - Reusable workflow components
Publishing
To publish your workflow to the Compozy registry:Prepare Your Repository
- Initialize a GitHub repository
- Set up CI/CD workflows
- Include comprehensive documentation in README.md
Version and Release
- Use semantic versioning (MAJOR.MINOR.PATCH)
- Create GitHub releases with detailed changelogs
- Tag releases (e.g.,
v1.0.0)
Make sure your workflow follows these best practices:
- Use semantic versioning for your workflow versions
- Include comprehensive documentation in README.md
- Test your workflow thoroughly before publishing
- Use environment variables for sensitive configuration
- Implement proper error handling and retry policies