The LyZR Studio Workflow Builder is a powerful visual interface that empowers you to design, orchestrate, and manage complex AI-powered applications by chaining together various functional components. This intuitive drag-and-drop environment allows you to define intricate logical flows, enabling your AI agents to interact dynamically, make decisions, and respond intelligently based on user input and predefined conditions.
The core of the Workflow Builder is the Workflow Canvas. This expansive area is where you visually construct your AI application. You can drag components from the “Drag Components” panel onto this canvas, connect them to define the flow of information and control, and arrange them logically to represent your application’s behavior.
The “Drag Components” panel, located on the left side of the Workflow Builder interface, provides a library of pre-built modules that you can incorporate into your workflow. Each component offers distinct functionality, acting as a specialized building block for your AI application.
The Agent component is fundamental for bringing your Lyzr Agents into a workflow. A Lyzr Agent is a self-contained AI model, fine-tuned or custom-built, designed to perform specific tasks. This could range from answering complex queries, generating creative content, summarizing documents, or executing external actions via tools.
How to Use:
Node Configuration: Agent
The Conditional component introduces powerful branching logic into your workflow. It allows your AI application to make decisions based on specific criteria, directing the flow of execution down different paths (a “True” path or a “False” path). This is crucial for creating adaptive and responsive AI experiences.
How to Use:
Node Configuration: Conditional
true
or false
. This expression can be based on user input, the output of a previous agent, or predefined system variables.
is_user_angry_or_frustrated?
(as shown in the image)user_query.length > 100
sentiment_score > 0.5
user_request == "reset password"
The Router component is designed for multi-path routing, enabling your workflow to intelligently direct incoming queries or data to the most appropriate subsequent component. This is particularly useful when you have multiple specialized agents or sub-workflows, and you need to determine which one should handle a given input. The Router uses an underlying intelligent model (like a GPT Router) to analyze input and match it to predefined routes.
How to Use:
Configure Router Routes
Routes List: This section provides an overview of all the routes you have defined for this router. Each route represents a specific type of query or intent that the router can handle.
Fallback Route: This is a critical setting. The “Fallback Route” defines the default path the workflow will take if the incoming query does not sufficiently match any of the explicitly defined routes in your “Routes List.” This ensures your workflow always has a graceful way to handle unexpected or unclassifiable inputs. You can select an Agent or another workflow component as the fallback.
Add Route: Click this button to define a new routing rule. This will open a detailed configuration dialog for the new route:
The Default Inputs component serves as an entry point for defining and managing parameters or initial data that your workflow will utilize. Think of it as providing global variables or configuration settings that can be accessed and consumed by various agents and conditional logic throughout your workflow.
How to Use:
Node Configuration: Default Inputs
inputs_x9ha
). While you generally don’t need to change this, it can be useful for advanced debugging or programmatic interaction.user_query
, context_data
). This “key” is how other nodes in your workflow will reference and access this input’s value.By leveraging Default Inputs, you can create flexible and reusable workflows that adapt to different scenarios simply by changing the input parameters at runtime. This avoids hardcoding values and makes your AI applications more dynamic.