Skip to main content
The By Value metric validates agent adherence to customer-specific information — such as interest rates, account balances, and service values — by extracting spoken or written values using LLM-powered entity recognition and comparing them against trusted backend systems via API. It combines advanced extraction logic with configurable business rules to verify the accuracy of financial and service-related information mentioned during agent-customer interactions.

Why Use This Metric

  • Automates manual QA by verifying agent-mentioned customer data without reviewing transcripts.
  • Validates agent statements against CRM or trusted systems in real-time.
  • Detects compliance violations across all interactions with instant alerts.
  • Supports complex business rules including tolerance ranges, negotiation clauses, and multi-language.
  • Provides full transparency with audit logs of API calls, extraction confidence, and rule evaluations.
  • Enables real-time agent feedback through GenAI and co-pilot integration.

Use Cases

  • Interest Rate Adherence
  • Balance Verification
  • Fee Disclosure

Prerequisites

The By Value metric requires the following GenAI features to be enabled and published via Manage > Generative AI > GenAI Features:
  • By Value Adherence Validation for Quality AI
  • By Value Metric Extraction for Quality AI
![By Value GenAI Features](/ai-for-service/quality-ai/configure/evaluation-criteria/metrics-measurement-types/images/by-value-genAI features.png)
The By Value measurement type only appears in the metric creation dropdown when these GenAI features are enabled. All languages used in the metric must be valid and properly configured.

Configure By Value Metric

  1. Navigate to Quality AI > Configure > Evaluation Forms > Evaluation Metrics.
  2. Select + New Evaluation Metric.
  3. From the Evaluation Metrics Measurement Type dropdown, select By Value. By Value Dropdown
  4. Enter a descriptive Name (for example, “Discount Rate Verification” or “Interest Rate Adherence Check”).
  5. Enter an evaluation Question for manual evaluation reference.
  6. Select the required Language(s).
    You can select multiple languages. The system applies an AND condition — if a metric does not support all selected languages, it does not appear in the dropdown.

Adherence Type

  1. Select an Adherence Type:
    TypeWhen it evaluates
    StaticEvery conversation, regardless of triggers
    DynamicOnly when a configured trigger is detected
    For Dynamic, the metric scores only when the trigger is detected. If no trigger appears, the metric is marked Not Applicable (NA). Adherence Type

Trigger Configuration (Dynamic Adherence Only)

  1. Choose the Trigger Utterance source:
    SourceUse when
    Customer UtteranceCustomer action triggers the check (for example, customer asks about interest rates)
    Agent UtteranceAgent action triggers the check (for example, agent proposes a credit card plan)

Trigger Detection Method

  1. Choose the detection method:
    MethodDescription
    Gen AI-BasedUses LLMs to detect trigger intent contextually. No training required (zero-shot). Enter a text Description of the trigger intent.
    DeterministicUses exact pattern matching. Provide specific utterance examples. Best for compliance keywords or exact terminology.

API Request Parameter Configuration

The API setup enables calls to your backend systems (CRM, databases) to retrieve ground-truth data for validating agent-mentioned values. Choose how the request parameter is sourced:

Context Variable

Use when a customer identifier (phone number, customer ID, email) is mentioned in the conversation.
  1. Select Context Variable. Context Variable Setup
  2. Choose who provides the identifier — Customer or Agent.
  3. Configure the Entity Type:
    • Entity Name — descriptive name for the data type (for example, “Customer ID”).
    • Entity TypeString (text/alphanumeric) or Number (numeric identifiers).
    • Description — instructions for the AI to identify and extract this entity from the conversation.
  4. Configure Service Request Authorization — authentication profiles that secure API calls to backend systems.
  5. Select + Define Request and configure:
    FieldDescription
    Request NameUnique descriptive identifier
    HTTP MethodGET or POST
    AuthAuthorization profile from Dev Tools
    HeadersCustom HTTP headers (if required)
    ResponseAPI response parameter as JSON object or path
    For POST: define the Body using the context variable (for example, {"userId": "{{context.user_id}}"}). Optionally add a Post Process Script to extract or transform the response.
    Test Request is enabled for Context Variable configurations. For Conversation ID-based configurations, it is disabled.
  6. Select Save.

Conversation ID

Use when customer identifiers are missing and SFTP integration is in place. The custom conversation ID from CSV metadata triggers sequential API calls.
The Conversation ID option is only available when a connector is configured for Quality AI Express. System-generated and CCAI system-generated conversation IDs are not supported. Use only conversation IDs sourced from metadata delivered via SFTP.
  1. Map the custom Conversation ID from the CSV upload metadata.
  2. Configure Script Definition:
    • Select an Auth profile (must be consistent across all APIs in the function).
    • Set request-specific Headers.
    • Map the API Response (JSON object or path).
    • For POST: define the Body using the conversation ID (for example, {"conversationId": "abc123-xyz"}).
    • Optionally configure a Post Process Script for nested or chained API calls.
  3. Select Save. Post Process Script

Agent Answer Configuration

Defines how the system identifies and extracts values mentioned by the agent during the conversation (for example, an interest rate percentage), then compares them against backend references.
FieldDescription
Entity NameDescriptive label for the extracted value (for example, “Interest Rate”)
Entity TypeString (alphanumeric) or Number (numeric values)
DescriptionInstructions for the AI to identify the agent-mentioned value (for example, “Extract the interest rate percentage mentioned by the agent when discussing loan terms, formatted as a decimal such as 4.5 for 4.5%“)
Agent Answer

Business Rules

Business Rules guide the AI when selecting the correct agent-mentioned value, especially in negotiation scenarios where multiple values are discussed.
RuleWhen to UseExample
First ValueFirst mention is the official valueAgent says 4.5%, then 4.7%, then 5.0% — system uses 4.5%
Last ValueLast mention represents the official quoteAgent says 4.5%, 4.7%, 5.0% — system uses 5.0%
Negotiated ValueAgreed-upon value after negotiationAgent and customer agree on 4.8% — system uses 4.8%
Strict Source System ValueZero tolerance for deviation from system dataSystem shows 7.9%, agent says 7.5% — marked non-adherent
Custom Business RuleComplex or organization-specific selection logicUse the value mentioned after the customer accepts terms
Business Rules

Score Logic and Adherence Criteria

Gen AI-Based Adherence

Uses LLMs to evaluate whether the agent communicated the expected value correctly.
OutcomeMeaning
PassThe expected value is mentioned per the configured rule
Metric FailureValue is missing or incorrect
Not Applicable (NA)Trigger condition not met; metric skipped

Custom Script-Based Adherence

Uses rule-based logic to enforce specific validation. Suitable for deterministic or compliance-critical scenarios.
OutcomeMeaning
Metric FailureRequired value is missing, mismatched, or does not match backend data
Not ApplicableValue is not relevant for the conversation; metric is skipped
When Custom Script is selected, the system applies the defined logic to validate all mentioned values and selects the most relevant one (for example, final or negotiated value).
  1. Select Create to save the metric.

Edit or Delete By Value Metric

  1. Select the By Value metric and click the ellipsis (⋮). Edit Evaluation Metrics
  2. Choose Edit to modify or Delete to remove.
  3. Select Update to save changes.

Language Dependency Warnings

  • You cannot remove a language currently used by any evaluation form.
  • Remove the language from all associated forms before modifying.
Modification Warning

Delete Warnings

Before deleting a metric:
  1. Remove it from all associated evaluation forms.
  2. Resolve all dependencies.
  3. The system allows deletion only after dependencies are cleared.
Delete Warning