Skip to main content

Custom Agent Edit

User Documentation for Edit Agent Screen

Overview

The Edit Agent screen allows you to modify the settings and configuration of an existing custom agent. This includes updating the agent's name, description, method, URL, headers, parameters, and JSONata expressions for requests and responses.

The Edit Agent screen allows you to modify the settings and configuration of an existing custom agent. This includes updating the agent's name, description, method, URL, headers, parameters, and JSONata expressions for requests and responses.

Screen Elements

  1. Fields:

    • Name:
      • Description: The name of the agent.
      • Input: Text field.
    • Description:
      • Description: A brief description of the agent’s purpose.
      • Input: Text area.
    • Method:
      • Description: The HTTP method used for the agent’s request (e.g., GET, POST).
      • Input: Dropdown menu.
    • URL:
      • Description: The endpoint URL that the agent will call.
      • Input: Text field.
    • Handle Response:
      • Description: The response from the Agent is JSON. Should it be returned to the Reasoning Engine for processing, or should it be passed directly to the client to process the JSON and skip the LLM?
      • Input: The default is for the LLM to process the data. If using an external microservice to create a dynamic form, set it to "Form.", where the client will use the form model to render the form. As more client controls are developed, such as a carousel, this dropdown will expand to include those options.
    • Headers:
      • Description: Any headers required for the API call.
      • Input: Expandable section to add key-value pairs.
  2. Parameters:

    • Description: Query parameters for the API request.
    • Table Columns:
      • Property: The name of the parameter.
      • Type: The data type of the parameter (e.g., string).
      • Property (mapping): How the parameter is used in the query (e.g., as a query parameter).
      • Action: Options to add, edit, or delete parameters.
  3. JSONata Request:

    • Description: JSONata expression for modifying the request payload.
    • Input: Text area.
  4. JSONata Response:

    • Description: JSONata expression for transforming the response data.
    • Input: Text area.
  5. Action Buttons:

    • Test:
      • Function: Allows you to test the agent with the current configuration.
    • Cancel:
      • Function: Discards changes and returns to the previous screen.
    • Save:
      • Function: Saves the changes made to the agent.

How to Use

  1. Editing Agent Details:

    • Name: Enter the desired name for the agent in the Name field.
    • Description: Provide a brief description of what the agent does in the Description field.
  2. Setting the Request Method and URL:

    • Select the appropriate HTTP method from the Method dropdown.
    • Enter the API endpoint URL in the URL field.
  3. Adding Headers:

    • Click on the "+" icon next to Headers to add a new header.
    • Enter the header name and value.
  4. Configuring Parameters:

    • Under Parameters, click "Add Property" to include a new parameter.
    • Fill in the Property name, Type, and how it should be used in the query.
  5. Using JSONata:

    • JSONata Request: Input the JSONata expression for the request transformation. Note Generate JSONata button will only appear if you have body Param Type fiels, that you are doing a POST
    • JSONata Response: Input the JSONata expression for the response transformation.
  6. Testing the Agent:

    • Click the "Test" button to test the agent with the current settings.
  7. Saving Changes:

    • Click the "Save" button to save the changes.
    • If you wish to discard the changes, click the "Cancel" button.

Notes

  • Ensure all required fields are filled out correctly before saving.
  • Test the agent after making changes to verify the configuration is correct.
  • Use JSONata expressions to customize the request and response data formats as needed.

This documentation should help you effectively use the Edit Agent screen to update and configure your custom agents. If you have any further questions or need assistance, please refer to the help section or contact support.