Case Enrichment - FAQ – Assembled

What is Case Enrichment?

Case enrichment is a feature that allows customers to enhance their chat conversations by pulling in external data from APIs to provide richer context and improved responses.


What Can Customers Do with Case Enrichment?

Case enrichment enables customers to:


Key Components of Case Enrichment Setup

1. User Data Mapping

2. API Endpoint Configuration

3. Smart Fields from API Response

The system can extract various data points from API responses, including:

4. Handling Arrays in Smart Fields

You have two main approaches to handle arrays from API responses:

Option 1: Map Entire Array to One Smart Field

Option 2: Map Individual Array Elements to Separate Smart Fields

Example Scenarios for Array Usage:

5. Field Mapping


How to Test Case Enrichment

Key Testing Concepts

Automatic vs Manual Variable Input:

Step-by-Step Testing Process

1. Navigate to the Testing Interface

2. Configure Test User Data

3. Begin Testing

Using the Chat Testing Interface

  1. Access the Testing Panel: Navigate to AI Support > Chat testing in the left sidebar
  2. Select Chat Profile: Choose the chat profile with case enrichment configured
  3. Test with User Data: The system will show if user data was successfully retrieved
  4. Review API Calls: Check the "User data details" panel to see:
    • Request endpoint and method
    • Request body with user data
    • Response status (should be 200 for success)
    • Complete response body with enriched data

Testing Workflow

  1. Configure Test Variables: Set up the user data variables you want to test with
  2. Start a Test Conversation: Use the chat interface to ask questions
  3. Monitor Data Enrichment: Check if user data is successfully pulled
  4. Verify API Responses: Review the detailed request/response information
  5. Test Agent Responses: See how the AI agent uses the enriched data (e.g., "Your Flexscore is 996")
  6. Save Test Cases: Each conversation is recorded and saved for QA review

Why is Testing Important?

Setting up case enrichment can be complex and error-prone, especially when dealing with:

Our new testing panel addresses these challenges by allowing users to:


Do we Always Need to Manually Input Variables for Testing?

For testing purposes: Yes. While in real chat scenarios variables like are gathered automatically from user information (like phone numbers), for testing you need to manually input the variable value. This allows you to:


How Does Variable Gathering Work in Production vs Testing?

Production: Variables are automatically extracted from user information (e.g., phone number lookup, user account data)
Testing: Variables must be manually configured using the "Apply user data" feature to simulate having that information available

How should I handle arrays in my API response?

When your API returns arrays (like multiple receipts, transactions, or records), you have options:

Single Smart Field Approach: Map the entire array to one smart field. The LLM can parse and use the array data directly without needing individual sub-fields.

Individual Smart Field Approach: Create separate smart fields for specific array elements if you need to:

Decision Factors:


How Often Does Case Data Enrichment Occur?

Fresh data for every interaction: Case data enrichment makes a fresh API call for each customer message/copilot button press, not just once per ticket. This ensures that:


What Happens After I Apply User Data?

Once you apply user data with the configured variable:

Technical Requirements

To use case enrichment testing, customers must have:


Troubleshooting Common Issues

User Data Not Successful

API Response Issues


Getting Started with Case Enrichment Testing

Based on feedback from our Solutions team, here's how to get started:

Initial Setup Steps

  1. Navigate to the testing panel: Go to https://app.assembledhq.com/quality/chat-testing
  2. Select your chat profile: Make sure Case data enrichment is enabled in your Chat profile Setup
  3. Validate your API setup: Use the testing interface to confirm your API is returning the expected data structure

Testing Best Practices


Getting Help

If you encounter issues or have questions about case enrichment configuration:


QA Review Process