Workflows
Workflows Overview
Understanding Kubiya workflows and their components
Workflows Overview
Kubiya workflows are the foundation of intelligent automation. They combine the power of AI generation with the reliability of deterministic execution, all running in containerized environments.
The DAG Revolution
What is a Kubiya Workflow?
A workflow in Kubiya is:
- Directed Acyclic Graph (DAG): Steps with dependencies, no circular references
- Container-Based: Each step runs in its own Docker container
- Language Agnostic: Use Python, Go, Node.js, or any language
- AI-Generated: Created from natural language or defined programmatically
- Deterministic: Same input → Same execution → Same output
Core Components
1. Workflow Definition
2. Steps
Each step is an atomic unit of work:
3. Dependencies
Steps can depend on outputs from other steps:
4. Containers
Every step runs in isolation:
🐳 Any Docker Image
Public or private registries
🔒 Complete Isolation
No shared state between steps
📦 Dependency Freedom
Each step has its own environment
Workflow Execution Model
Key Features
Parallel Execution
Run independent steps simultaneously:
Conditional Logic
Dynamic paths based on results:
Error Handling
Built-in retry mechanisms:
Inline AI Agents
Embed intelligent decision-making:
Workflow vs Other Approaches
Real-World Example
Let’s see a complete workflow that showcases Kubiya’s power:
Visual Workflow Builder
Benefits of Kubiya Workflows
1. Predictability
- Deterministic execution paths
- No agent wandering or infinite loops
- Clear audit trails
2. Flexibility
- Use any programming language
- Integrate any tool or service
- Mix AI and traditional logic
3. Scalability
- Parallel execution by default
- Kubernetes-native scaling
- Efficient resource usage
4. Maintainability
- Version control friendly
- Easy to test and debug
- Clear dependencies
Common Patterns
ETL Pipeline
CI/CD Pipeline
Data Science Pipeline
Next Steps
Ready to build your first workflow?