What are Tasks?

Tasks in Compozy are powerful, configurable units that combine both execution and flow control capabilities. Each task can represent a specific operation (like calling an API or processing data) or control the flow of your automation (like parallel processing or decision making).

tasks:
  - id: fetch_data
    type: basic
    use: tool(http-request)
    with:
      url: "{{ env.API_URL }}"
      method: GET

Task Types

Key Features

Flexible Integration

Connect with tools, MCP servers, and custom implementations seamlessly

Flow Control

Built-in support for parallel execution, loops, and conditional branching

Schema Validation

Define input schemas for reliable data validation

Environment Control

Task-specific environment variables and configuration

Error Handling

Built-in error management and recovery mechanisms

Component Outputs

Access outputs from executed tools, agents, and MCPs

Next Steps