Lyzr Agent Orchestration (LAO) Workflow
What is LAO?
Lyzr Agent Orchestration (LAO) is a framework to define and execute workflows using Lyzr Agents. Workflows are defined in JSON format and executed through the LAO engine.
JSON Format Structure
Field Descriptions:
- tasks: An array of task objects.
- default_inputs: Input values reused across the workflow.
- flow_name: Name assigned to the workflow.
- run_name: Identifier for the particular execution of the workflow.
Defining a Task
Each task is an object with the following structure:
Task Fields:
- name: A unique identifier for the task.
- tag: (Optional) A readable label for better clarity.
- function: The action to execute. (e.g.,
call_lyzr_agent
,api_call
) - params: The parameters required for the function to execute.
Defining Inputs in params
You can define parameter values in three different ways:
1. Direct Input
2. Input from default_inputs
3. Dependency on Another Task
Example: Calling a Lyzr Agent
Use the call_lyzr_agent
function to call a Lyzr Agent.
Step 1: Define Agent Config in default_inputs
💡 To get
agent_id
,session_id
, anduser_id
, please refer to the API documentation or check under the Inference tab located in the Agent API section of the Agent Dashboard on Lyzr Studio.
Step 2: Task Definition
Step 3: Full Workflow JSON
Example: Calling an External API
Use the api_call
function to make API calls.
Step 1: Define API Config in default_inputs
Step 2: Task Definition
Step 3: Full Workflow JSON
Summary
With Lyzr Agent Orchestration, you can build powerful and intelligent workflows using Lyzr Agents and API integrations. Chain tasks together, reuse inputs efficiently, and automate complex logic in a clean and modular way.