Overview
Workflows enable you to define complex, multi-step automated processes that orchestrate agents, tools, and external services. Built on Temporal, workflows provide reliable, durable execution with automatic retries and error handling.Workflows
Workflows are declarative definitions of multi-step processes that can:- Execute multiple tasks in sequence or parallel
- Coordinate multiple agents
- Handle errors and retries automatically
- Maintain state across long-running operations
- Integrate with external systems
- Durability: Workflows survive crashes and restarts
- Observability: Track execution state and history
- Scheduling: Run workflows on a schedule or trigger basis
- Versioning: Safely update workflow definitions
Runners
Runners provide the execution infrastructure for workflows and agents. They:- Execute workflow steps in isolated environments
- Provide compute resources for agent execution
- Handle scaling and resource management
- Support different runtime environments (containers, VMs, etc.)
- Kubernetes runners: Execute in Kubernetes pods
- Container runners: Execute in Docker containers
- Cloud runners: Execute in cloud VMs (AWS, GCP, Azure)
Common Workflow Patterns
Sequential Workflow
Parallel Workflow
Event-Driven Workflow
Workflow Management
Create a Workflow
name
Note: Steps are executed sequentially by default
Start Workflow Execution
Best Practices
- Idempotency: Design workflow steps to be safely retried
- Error Handling: Define explicit error handling and compensation logic
- Timeouts: Set appropriate timeouts for each step
- Monitoring: Use workflow history for debugging and auditing
- Versioning: Version workflows to support safe updates