Form ID: (ML202000)
You use this form to create, configure, and test an AI Automation agent. An agent can retrieve the current record, update the record and its detail lines, and retrieve supporting data from published generic inquiries. After you test the agent, you select the Active check box and save your changes. The system adds the corresponding command to the More menu of the target form. When a user clicks this command, the agent executes the task described in its instructions.
This form is available only if the AI Automation feature is enabled on the Enable/Disable Features (CS100000) form.
Form Toolbar
The form toolbar has only standard buttons.
For a predefined agent, the Clipboard menu can contain the Reset to Default command. This command restores the predefined instruction text, name, and default settings and discards the changes made to the agent.
Agent Definition Tab
On this tab, you specify the general settings of the agent, test the agent, enter instructions, and review the test results.
| Element | Description |
|---|---|
| Agent ID |
Required. The internal name of the agent. |
| Active |
A check box that you select to make the agent active and to add the agent command to the target form. (By default, it’s cleared for a new agent.) If you need to remove the generated agent command from the form, you clear this check box. For the predefined Expense Receipt Recognition agent, selecting this check box makes the agent available in the mobile app. It does not add a command to the target form in the website. |
| Agent Name |
Required. The display name of the agent. This name is also used for the command (and button) if the Button Name box is left blank. |
| Agent LLM Connection |
The name of the connection to be used for the agent. An agent LLM connection is defined on the Agent LLM Connections (ML201000) form. You can create the agent without a connection; however, you need a connection to test and use the agent. The lookup table for this box displays only connections that have been tested—that is, connections with the Active status. |
| Target Form |
Required. The form for which the command should be created. Attention: Only data entry forms are available for
selection.
When you select the form, the system adds the For the predefined Expense Receipt Recognition agent, the system specifies the Expense Receipt (EP301020) form; this value cannot be changed. |
| Button Name |
The name of the command on the target form’s More menu that the system generates for the agent. (This name will also be used for a button on the form toolbar if a user selects the command as a favorite.) When a user clicks the command or button, the system executes the generated action. |
| Element | Description |
|---|---|
| Example Record |
The record that’s used to test the agent. The lookup table displays records that are available to the user who is testing the agent. Select a record that can be updated manually on the target form. The test does not change the selected record in the database. For the predefined Expense Receipt Recognition agent, this box is not displayed. |
| Upload Area |
The area where you drag a receipt file or click to select one for agent testing. You can upload one PDF, JPG, or JPEG file at a time. The maximum file size is 5 MB. No preview of the uploaded file is available. This area is displayed only if the predefined Expense Receipt Recognition agent is selected. Important: Make sure that these file
types have been added on the File Upload Preferences (SM202550)
form.
|
| Last Tested On |
The date and time when the agent was last tested. |
|
The section also contains the following button. |
|
| Test Agent |
Runs the agent for the selected example record or uploaded file and displays information about the run on the Result and Processing Log tabs. If the test input is an example record, testing does not save changes to the record in the database. For the predefined Expense Receipt Recognition agent, testing does not create or update an expense receipt. This button is available if a connection is selected in the Agent LLM Connection box. |
Instructions Section
In this section, you review system instructions and enter business instructions for the LLM. System instructions provide general rules for tool calling. Business instructions describe the purpose, constraints, and execution steps of this agent.
The tab contains the following elements.
| Element | Description |
|---|---|
| Business Instructions |
The instructions that describe the agent’s business purpose, the data to retrieve, the actions to perform, the tools to use, and the fields to update. You insert the tool and field names by using the Insert Data Field command. Attention: Keep the business instructions
consistent with the system instructions and tool descriptions. Conflicting
instructions can cause processing errors.
|
| System Instructions |
The system instructions attached to the agent. Each instruction appears in a collapsible block. The system sends these instructions to the LLM before the business instructions. New agents include predefined system instructions. The system adds them after you select the target form The attached instructions are copies, so you can edit or remove them without changing the source instructions on the Agent System Instructions (ML203000) form. |
|
The section contains the following buttons. |
|
| Insert Instructions |
Opens the Insert Instructions dialog box, where you can select one or more active system instructions to be added to the agent. You create system instructions on the Agent System Instructions (ML203000) form. |
| Insert Data Field |
Displays commands you can use to insert an exact field or tool name in the business instructions:
|
| Element | Description |
|---|---|
|
Table with system instructions has the following columns |
|
| Instruction Name |
The name of the set of system instructions. |
| Description |
The description of the set of system instructions. |
| Area with instructions |
Read-only. The text of the system instruction selected in the table. |
|
The dialog box has the following buttons. |
|
| Insert |
Adds the selected sets of system instructions to the agent and closes the dialog box. |
| Cancel |
Closes the dialog box without adding any sets of system instructions to the agent. |
Tools Tab
On this tab, you add tools to the agent and specify the settings of each tool.
| Column | Description |
|---|---|
| Tool Type |
Required. The type of the tool. You can select one of the following options:
|
| Tool Name |
Required. The unique name of the tool. You can enter lowercase Latin letters and underscores. Spaces are not allowed. |
| Active |
A check box that indicates (if selected) that the tool is available to the LLM. |
| Element | Description |
|---|---|
| Tool Name |
Required. The unique name of the tool selected in the table. |
| Tool Description |
Required. The description that tells the LLM what the tool does and when to use it. You can modify the description. |
| Element | Description |
|---|---|
| Endpoint Name |
Required. The name of the web service endpoint through which the tool retrieves data. You can select an endpoint that contains the entity of the target form. |
| Version |
Required. The version of the endpoint. You can select a version of the endpoint selected in the Endpoint Name box. |
| Entity |
Required. The entity from which the tool retrieves data. You can select an entity included in the selected endpoint version. |
| Masked Fields |
The fields whose values the system masks before sending the data to the LLM. You can select one or more fields at the lowest level of the hierarchy of the entity selected in the Entity box. Tip: When you add a masked field, the system
automatically adds the Data-Masking system instructions to the
Instructions tab.
|
| Element | Description |
|---|---|
| Endpoint Name |
Required. The name of the web service endpoint through which the tool updates data. You can select an endpoint that contains the entity of the target form. |
| Version |
Required. The version of the endpoint. You can select a version of the endpoint selected in the Endpoint Name box. |
| Entity |
Required. The entity that the tool updates. You can select an entity included in the selected endpoint version. |
| Element | Description |
|---|---|
| Generic Inquiry |
Required. The generic inquiry from which the tool retrieves data. You can select a published generic inquiry that has a screen ID. |
| Shared Filter to Apply |
The shared filter that the tool applies to the generic inquiry. You can select a shared filter of the selected generic inquiry or All Records to apply no shared filter. By default, the All Records value is used. |
Result Tab (Bottom Right Pane)
This tab displays the result of the most recent test. For an agent that updates a record, the tab identifies the affected entity and shows the differences between the values before and after the intended update. Changes to detail lines are grouped by line, and records that would be created are labeled as added.
For the predefined Expense Receipt Recognition agent, this tab displays the field names and values extracted from the uploaded receipt file.
When you test an agent that contains masked fields and the LLM sends the processed data back to Acumatica ERP, the system replaces the masked content with the actual data.
The tab contains the following button.
| Button | Description |
|---|---|
| Preview HTML (Generated) |
Opens the Preview HTML dialog box, in which you can view the rendered view of the generated text. |
Processing Log Tab (Bottom Right Pane)
This tab displays the processing details of the most recent test, including the data sent to the LLM, tool schemas and descriptions, tool calls and responses, errors, step duration, and token consumption.
The log includes the following sections:
- Agent Processing Started: The first request sent to the LLM, including the agent instructions, tool schemas, and tool descriptions.
- Tool-calling steps: The tools called by the LLM, the order of the calls, and the messages exchanged during processing.
- Agent Processing Completed: The complete message thread and the token totals for the execution.
Individual request sections show the token counts calculated by the system. The Agent Processing Completed section shows totals calculated by the system and totals reported by the LLM provider. For details, see Integration with LLM Providers: Collection of Statistics