Skip to main content
Vizra ADK is in maintenance mode. It continues to work and receives compatibility fixes, but no new features are planned. For evaluating AI agents — now built on the official Laravel AI SDK — check out Vizra Evals, its successor for the evaluation use-case. Coming from ADK? See the migration guide.
Agent Orchestration Made Simple - Workflows are special agents that conduct other agents like a symphony! They orchestrate multiple agents in sequential, parallel, conditional, or loop patterns - all without requiring LLM control for the workflow logic itself. Think of them as your agent choreographer!

Understanding Workflows

Workflows are the conductors of your agent orchestra! They’re special agent types that bring order to complexity:

Built on Solid Foundation

Extend BaseWorkflowAgent which extends BaseAgent

No LLM Overhead

Orchestrate agents without using LLMs for flow control

Multiple Patterns

Support sequential, parallel, conditional, and loop execution

Smart Data Flow

Pass results between steps automatically

Workflow Patterns

Sequential

Steps execute one after another in perfect order

Parallel

Multiple agents work simultaneously

Conditional

Choose paths based on conditions

Loops

Repeat operations with while, times, or forEach

Creating Your First Workflow

Let’s build your first workflow! It’s as easy as chaining methods together.

Using the Workflow Facade

app/Workflows/DataProcessingWorkflow.php

Sequential Workflow Class

Workflow Types in Action

Parallel Workflows

Need to notify multiple channels at once? Run data processing in parallel? This is your power tool!

Conditional Workflows

Make smart decisions in your workflow! Route to different agents based on conditions.

Loop Workflows

Process lists, retry until success, or repeat operations - loops make it easy!

Running Your Workflows

Basic Execution

Understanding Workflow Results

Each workflow type returns structured results so you always know what happened!

Advanced Workflow Features

Take your workflows to the next level with advanced error handling, callbacks, and dynamic parameters!

Error Handling and Retries

Callbacks for Workflow Events

Dynamic Parameters

Pass data between steps dynamically based on results and context!

Workflow State Management

Access results from any step and manage state throughout your workflow!

Creating Workflows from Arrays

Define workflows using simple arrays - perfect for dynamic or configuration-based workflows!

Array Definition

Complex Array Definitions

Workflow Best Practices

Design Tips

  • Remember the Foundation - Workflows are agents - they extend BaseWorkflowAgent
  • Choose the Right Pattern - Use the appropriate workflow type for your use case
  • Set Smart Limits - Configure reasonable timeouts and retry limits

Development Tips

  • Monitor Everything - Leverage callbacks for monitoring and debugging
  • Smart Data Flow - Pass results between steps using closures
  • Test Thoroughly - Test workflows with various input scenarios

Next: Vector & RAG

Learn about vector memory and retrieval augmented generation!

Workflow API Reference

Deep dive into workflow class documentation