Describe Image File

<< Click to Display Table of Contents >>

Navigation:  Low-code Process Automation > Studio Cloud - Authoring environment > Bizagi Studio > AI Hub > AI Agents > AI Agents execution > Execute AI Agents from Form Actions >

Describe Image File

Overview

With the Execute AI Agents in Form Actions feature, you can make use of AI Agents in a Form in a running process.

This feature integrates the use of Artificial Intelligence with the execution of Form Actions so that you can customize the actions needed in your business process.

 

This article explains the step-by-step of how to configure the AI Agent in the form actions through the example of the Agent that describes an image file.

 

Process Model

The following is the example process, which has only a Review Documents activity:

 

AI_agents_from_forms09

 

Data Model

The following data model includes the necessary attributes for the Review Documents activity. The controls that display the Agent's response should be modeled as extended String attributes to view a complete response.

 

AI_agents_from_forms10

 

Configuration of AI Agents in Form Actions

In this process, buttons are implemented as the executors of AI Agent actions. When the files have been loaded and the Agent buttons are clicked, the execution of the file analysis is triggered.

 

Each Form container includes controls that represent the fields where the files are loaded, a button that executes the Agent and finally, a field where the result is printed.

 

To configure the AI Agent in the Form Actions, follow these steps:

1.In the third step of the Process Wizard-Define Forms, select the task where you will create the Form.

 

AI_agents_from_forms02

 

2.Build the File description form, including the necessary controls as shown in the following image:

 

AI_agents_from_forms37

 

3.Once you have created the form, access the Actions and Validations menu and click the Add New Action button.

 

AI_agents_from_forms36

 

In the Actions and Validations window, the necessary conditions for the Agent to be executed are configured in the If section and in the Then section, the configuration of the IA Agent when choosing the Execute Agent option.

 

In the If section, the necessary conditions for the Agent to be executed are the following:

 

AI_agents_from_forms16

Then, in the Then field select the Execute agent option.

 

AI_agents_from_forms01

 

4.Next, select the Value field where you will configure everything related to the AI Agent.

 

AI_agents_from_forms11

 

5.In the AI Agent instance configuration window, three settings need to be made: select the Agent that will perform the action in the Agent Definition step, map the inputs that the Agent receives in the Agents Inputs step, and finally, map the outputs produced by the Agent in the Agent Outputs step.

 

Agent definition: Select the category to which your existing AI Agent belongs. A list of AI Agents you have previously created will appear, along with their respective Name and Description. In the following image we use as an example the Agent that describes an image file.

 

AI_agents_from_forms19

 

Agent Inputs: In this step, the data input parameters that the Agent will receive and with which it can execute its task must be related.

 

AI_agents_from_forms20

 

Agent Outputs: In this step the output data parameters produced by the Agent are related and inserted in the attributes of the data model.

 

AI_agents_from_forms21

 

6.Once you have completed the mapping, configure the Form Action button to update the information and display the Agent's response on the control.

 

AI_agents_from_forms34

 

7.To finalize the configuration of the Form Action, click the Apply button, and in the Actions and Validations window, click the Save button.

 

8.Now you can test the feature in the Work Portal. Once you open a case, load the files in the container and click the button to executes the Agent which displays a result like the following:

 

AI_agents_from_forms30


Last Updated 10/28/2024 3:27:36 PM