chart-pie-simple-circle-currencyAgent Flows

Automate complex business processes and workflows in AINexLayer using visual workflow builders, custom logic, and integration capabilities.

Overview

Agent Flow in AINexLayer enables you to create sophisticated, automated processes that can handle complex business logic, integrate with external systems, and execute multi-step operations without manual intervention.

Workflow Concepts

What is a Workflow?

  • Automated Process: Series of automated steps and decisions

  • Business Logic: Encodes business rules and processes

  • Integration Points: Connects with external systems and APIs

  • Error Handling: Manages errors and exceptions

  • Monitoring: Tracks workflow execution and performance

Workflow Types

  • Document Processing: Automated document analysis and processing

  • Customer Onboarding: Automated customer setup processes

  • Content Management: Automated content creation and management

  • Data Processing: Automated data transformation and analysis

  • Notification Workflows: Automated communication and alerts

Workflow Builder

Visual Workflow Designer

  • Drag-and-Drop Interface: Visual workflow creation

  • Pre-built Components: Ready-to-use workflow components

  • Custom Logic: Add custom business logic

  • Testing Environment: Test workflows before deployment

  • Version Control: Track workflow changes and versions

Workflow Components

Input Components

  • Document Input: Process uploaded documents

  • User Input: Collect user information

  • API Input: Receive data from external APIs

  • Scheduled Input: Trigger workflows on schedule

  • Event Input: Respond to system events

Processing Components

  • AI Analysis: Use AI for content analysis

  • Data Transformation: Transform and process data

  • Conditional Logic: Make decisions based on conditions

  • Loop Processing: Repeat operations

  • Parallel Processing: Execute multiple operations simultaneously

Output Components

  • Document Generation: Create new documents

  • Notification: Send emails, messages, or alerts

  • API Calls: Send data to external systems

  • Database Updates: Update databases

  • File Operations: Create, update, or delete files

Creating Agent Flow

Step 1: Open the Agent Builder

  1. Go to Settings → Agents on your deployed server.

  2. Click on “Create Flow” or “Open Builder” under the Agent Flows section.

  3. This will open the Agent Builder interface.

Step 2: Understand the Builder Layout

When the builder opens, you’ll see three default blocks:

  • Flow Information – Add the name and description of your flow.

  • Flow Variables (Start) – Define variables to store and share data across blocks.

  • Flow Complete (Finish) – Marks the end of the flow.

Step 3: Add New Blocks

Click the “+” button between blocks to add actions. You can choose from these block types:

  • API Call – Connect to external APIs.

  • LLM Instruction – Send data to the AI for processing.

  • Web Scraping – Extract text or HTML from web pages.

Step 4: Configure Each Block

For API Call Block:

  • Enter the API URL.

  • Select the method (GET, POST, PUT, DELETE).

  • Add headers or body parameters if needed.

  • Specify a response variable to store the output.

For LLM Instruction Block:

  • Write a clear instruction or prompt.

  • Set a result variable to save the AI’s response.

  • Choose whether to display the result directly.

For Web Scraping Block:

  • Enter the website URL.

  • Choose whether to capture as Text or HTML.

  • Add a CSS selector if you want specific content.

  • Set a result variable for storing the data.

Step 5: Arrange the Flow

  • Drag blocks to change their order.

  • Expand or collapse them for better view.

  • Remove unnecessary blocks anytime.

Step 6: Save the Flow

  1. Click Save on the top-right corner.

  2. Make sure:

    • The flow has a name and description.

    • All required fields are filled correctly.

  3. After saving, a success message appears and the flow gets a unique ID.

Step 7: Manage and Reuse Flows

  • Use the dropdown at the top to view all saved flows.

  • Click any flow name to open and edit it.

  • Use New Flow to start a fresh one.

Step 8: Best Practices

  • Keep flow names clear and meaningful.

  • Use variables like {{api_result}} to pass data between blocks.

  • Test each block one by one before finalizing.

  • Always handle errors in API or scraping steps


⚙️ Agent flow streamlines complex business processes and reduces manual work. Create sophisticated workflows that integrate with your existing systems and automate repetitive tasks.

Last updated