Base structure
Compozy workflows are defined in YAML files that configure AI agents, tools, and data processing. This page covers the key properties of workflow configurations.
Introduction
Compozy uses a declarative YAML-based approach that makes it easy to create, maintain, and share complex automation workflows. Each configuration file follows a consistent structure that defines how components interact and what resources they can access.
Here’s a simple example of a Compozy workflow configuration:
Core components
A Compozy workflow configuration can include the following core components:
Tools
Reusable functions that perform specific operations like API calls, data processing, and external service integrations.
Agents
AI-powered components that can understand instructions, use tools, and make decisions within your workflows.
Tasks
Building blocks that execute specific operations and manage workflow steps with advanced flow control.
MCP Servers
Model Context Protocol servers that maintain context across interactions and handle external service integrations.
Memory
Context management system that maintains state, conversation history, and enables semantic search across interactions.
Workflows
Declarative YAML-based orchestration that combines tasks, agents, and tools into automated processes.
Key Points
Declarative Configuration
Define entire workflows using simple YAML syntax with clear component relationships
Component-Based
Built around core components like tools, agents, and tasks that work together seamlessly
Context-Aware
Maintains state and context across workflow executions through the memory system
Extensible
Easy to add new tools, integrate with external services, and customize behavior
Next Steps
- Follow our step-by-step guide to Create Your First Workflow
- Deep dive into Compozy’s Core Components
- Learn from Real-world Examples
- Connect with other Compozy Developers