requestMeta-based metadata propagation for the Execute API request. The system maps configured custom fields to key-value pairs and sends them in the Execute API request, with conversationId included by default.
By AI Agent is available in two versions, By AI Agent V1 and By AI Agent V2 (Artemis). Both use the same parent and sub-metric model; they differ only in how they connect to the Agent Platform. You choose the version when you create the metric.
When to Use This Metric
Use this metric type for evaluation scenarios that require:Prerequisites
Before creating a By AI Agent metric, confirm:- You have access to both Quality AI and Agent Platform.
- The same workspace is available across both platforms.
- You have permissions to view and deploy agentic applications.
- The By AI Agent Metric feature is enabled for your workspace account.
- You have configured at least one agentic app on the Agent Platform with the required response structure.
- Custom fields exist in the Quality AI custom field registry to enable request metadata mapping.
- For By AI Agent V2 (Artemis): you have access to Agent Platform V2 (Artemis) in the same workspace, and a deployed project with its Project Key, Project ID, Deployment ID, and Channel ID available.
If no agentic app is configured, the Agent App dropdown remains empty. If the agentic app response doesn’t match the required contract, Test Connection fails and blocks configuration.
Choose a Version: V1 or V2
When you add a By AI Agent metric, select the version that matches your Agent Platform integration.- By AI Agent V1: Connect using the existing Agent Platform V1 integration with your current configuration settings.
- By AI Agent V2 (Artemis): Connect using Artemis/Agent Platform V2 with project-based authentication and advanced API configuration.
Configure By AI Agent Metric
Step 1: Navigate to Metric Configuration
- Navigate to Quality AI > Configure > Evaluation Forms > Evaluation Metrics.
- Select + New Evaluation Metric.
- From the Evaluation Metrics Measurement Type dropdown, select By AI Agent.
- Select the version, By AI Agent V1 or By AI Agent V2 (Artemis).
Step 2: Create the Parent Metric
- Enter a descriptive Name (for example, Compliance Disclosure).
- Select the Language for the AI Agent’s evaluation.
- The Question field is defined later under sub-metrics.
Step 3: Connect to the Agent Platform
Provide the connection details for the version you selected.By AI Agent V1
- In the Agent App dropdown, choose from available apps in your workspace.
- Select the Environment (for example, Draft, Version 1, Version 2).
By AI Agent V2 (Artemis)
Enter the details of the Artemis project to evaluate against: By AI Agent V2 uses project-key-based authentication. The system creates the authentication token from the Project Key, refreshes it periodically, and sets the required origin header on the run API automatically, no manual token management is needed.
Step 4: Test Connection and Fetch Sub-Metrics
- Select Test Connection.
- The system sends a test call to the selected app and retrieves available sub-metrics for configuration.
- On success, the panel confirms the connection and shows how many sub-metrics the agent application includes.
Test Connection behaves the same for V1 and V2. If the agentic app response doesn’t match the required contract, Test Connection fails and blocks configuration.
Step 5: Configure Sub-Metrics
Upon successful connection, the system displays all sub-metrics returned by the agentic app with their reference names. Select Edit next to the Weightage field to open the sub-metric configuration panel, where you can define the following: Sub-metric weightages must add up to 100%, they split the score within the parent metric’s total.
Step 6: Configure Custom Field Propagation
Optionally configure custom fields to send to the Agent Platform as metadata for conversation-metadata-dependent evaluation. These fields populate therequestMeta object of the Execute API request.
- Select a conversation-level Custom Field.
- Define Header Name as the key in
requestMeta. - Add multiple mappings using + Add Custom Field.
customConversationId is automatically included in requestMeta.
When all details are configured, select Create to save the metric for AI Agent evaluation.
Setting up Response Format
Make sure that the Agent Platform response follows the required JSON contract for sub-metric evaluation.- Navigate to your AI Agent configuration in the Agent Platform.
- Locate the Description field.
- Follow the Response format specification.
Example Use Case: UDAP Compliance
For financial services compliance, a single parent metric can evaluate multiple aspects in one API call:
Each sub-metric is evaluated independently with a single API call, providing detailed justifications for each aspect.
Evaluation Flow
The system sends a single evaluation request that includes:- Conversation data (transcripts and sub-metrics).
requestMeta(conversationIdand configured custom fields).
Request Metadata in Execute API
The system sends metadata in therequestMeta object of the Execute API.
The requestMeta object includes:
-
Contents: The
conversationId(always included for Agent AI and Express sources) and custom fields configured for the metric, represented as key-value pairs. - Custom Field Mapping Rules: The system derives keys from Header Names and sources values from conversation-level custom fields. It supports configuration of multiple custom fields per metric.
This metadata is used only during evaluation execution and isn’t stored in the results.
Response Format for Sub-metrics
The Agent Platform must return responses in this JSON format for Quality AI to process sub-metric results:Sample Response
The Agent Platform contract strictly defines the response format, and no one can modify it. Quality AI only consumes and maps the response.
Audit Logs (By AI Agent V2)
For By AI Agent V2 (Artemis) metrics, the Audit Screen records an audit log for each evaluation so you can review and debug agent calls. The log lists one entry per sub-metric evaluation:Managing Evaluation Metrics
Edit and Delete Evaluation Metrics
Steps to edit and delete existing Evaluation Metrics:- Select an AI Agent metric.
- Select Edit to update the required metric details and fields.
When you update a By AI Agent V2 connection field (Project Key, Project ID, Deployment ID, or Channel ID), the system records a change log entry, for example: “Project ID was updated from {old value} to {new value} for metric {metric name} of type By AI Agent.”
Delete Evaluation Metrics
Before deleting a metric:- Remove it from all associated evaluation forms (for example, Chat Form – COMMON, New Points Based).
- Reassign any linked attributes (for example, Agent AI Metric Attribute-1) to a different metric.