For AI agents and LLMs: a machine-readable index is available at llms.txt. A plain-Markdown version of any documentation page is available by appending .md to its URL.
Skip to main content

Chat Agent Testing With TestMu AI

The TestMu AI Agent Testing Platform tests a chat agent by holding multi-turn conversations with it through its API, following AI-generated scenarios, and scoring each conversation across quality metrics. It covers text chatbots, virtual assistants, IT helpdesks, and FAQ bots.

You provide the endpoint, the agent's intended behavior, and any requirement documents. The platform generates the scenarios and runs the conversations. No code changes to your agent are required.

Run a Chat Agent Test​


You can test a chat agent three ways. All three run the same evaluation and produce the same scored results.

  • Dashboard: create the agent, upload sources, generate scenarios, and run the evaluation. Follow the steps below.
  • CLI: point testmu-a2a test at your endpoint for a one-command run, or drive scenarios and suites from a config file. See how to test chat agents from the terminal.
  • API integration: configure the endpoint, authentication, and request or response format directly. See how to connect a chat agent over its API.

Run a Chat Agent Test in the Dashboard​

Follow these seven steps in the dashboard. Each step builds on the previous one.

Step 1: Create the agent. In the Agent Testing page, click Create New Agent, then fill in the form:

  • Agent Name (required).
  • Description (optional).
  • Agent Type (required): select Chat Agent.
  • Evaluation Mode (required):
    • Pre-production testing: upload requirements, generate test scenarios, and simulate conversations against your agent.
    • Post-production analysis: upload requirements and production chat transcripts for a grounded evaluation. See Grade Production Chat Transcripts.

Click Create New Agent to confirm. Steps 2 to 7 follow the Pre-production testing flow.

Create New Agent panel with Chat Agent selected and the Pre-production testing and Post-production analysis evaluation modes

Step 2: Upload your sources. Open the Workflows tab. In Upload Sources, add the material that describes your agent:

  • Files: drag and drop, or browse. Supported formats are PDF, DOCX, XLSX, CSV, TXT, MD, images, audio, and video, up to 200 MB per file.
  • Confluence, Jira, or S3 Bucket: switch to these tabs to link sources from those tools instead.
Upload Sources screen in the Workflows tab with file, Confluence, Jira and S3 Bucket options

Step 3: Configure and generate scenarios. Once your file shows Ready, set the generation options:

  • Special Instructions (optional): text that is included in every generated test scenario.
  • Languages (optional): the languages your agent supports. English is used by default if none are selected.
  • Scenario Count (optional): Auto (calculated from document complexity), 25, 50, 100, 200, or Custom.
  • Scenario Types (optional): Happy Path, Negative, Edge Case, Integration, and Red Team. Leave all unselected to generate every type.

Click Generate Scenarios.

Scenario generation settings with languages, scenario count and scenario types selected before clicking Generate Scenarios

Step 4: Review the generated scenarios. The Scenarios tab lists every scenario, with a count on the tab.

  • Each row shows the scenario name, its persona (such as "The Multitasker"), and its language.
  • Use Search scenario or the Scenario Type dropdown to narrow the list. The dropdown filters by all five types: Happy Path, Negative, Edge Case, Red Team, and Integration.
  • Use the pencil icon to edit a scenario, or the trash icon to delete it.
  • Click Create New Suite to group scenarios for a run.
Scenarios tab listing generated test scenarios with persona and language tags

Step 5: Edit a scenario if needed. Click a scenario, or the pencil icon on it, to open the scenario on its own page. The page shows its name, description, validation criteria, and first message, with its persona, interaction mode, maximum conversation turns, and test profile alongside.

  • Change the Scenario Name, Description, or Validation Criteria.
  • Click Save Scenario to keep your changes, or Cancel to discard them. You can also delete the scenario from this page.
Edit Scenario panel showing scenario name, description and validation criteria fields

Step 6: Run the evaluation. Run a suite to open the Run Suite dialog, then add your agent's API request.

  1. Enter your agent's request as a cURL command. If it contains a token, cookie, or API key, use the Move to vault banner to keep that credential in the credentials vault instead of in plaintext. Vault values resolve only at run time.
  2. Click Parse and Evaluate. To run it on a schedule instead, click Schedule Run Evaluation.
  3. In the Confirm Request Details dialog, check the URL, Method, Headers, and Body.
  4. Click Run Evaluation.

For the API URL format and authentication, see how to connect a chat agent over its API.

Confirm Request Details dialog showing the agent URL, method and headers before clicking Run Evaluation

Step 7: Read the results. When the run finishes, open a scenario from the list to see its score and the reasons behind it.

  • Start with the scenarios that failed or scored lowest. On the Turns tab, read the conversation to find the point where your agent went wrong.
  • If a setup step such as a login fails, the scenario is marked Not scored · Setup failed and shows which step failed and why. It does not count against your agent.
  • Use Areas for Improvement and Recommendations to decide what to fix in your agent, and Validation Criteria to see which of the scenario's criteria it missed. If a criterion is wrong rather than the agent, edit the scenario as in Step 5.
  • After you change your agent, click Re-run to run the same scenarios again. Each run is listed separately with its score and time, and re-runs are tagged in the suite results list, so you can compare before and after.
  • To stop a suite that is still running, abort it from the results banner.

See Metrics for what each score measures.

Evaluation results for a scenario showing pass status, overall score, quality metrics and the conversation turns

Grade Production Chat Transcripts​


To grade real conversations instead of simulated ones, create the agent with Post-production analysis as its evaluation mode. Bulk upload your production chat transcripts as .txt or .json files, along with your requirement documents.

The transcripts are graded with the same engine as pre-production suites, using your requirements as the reference. When you click Continue to Conversation Analysis, the platform first analyzes your uploaded requirements. A banner shows while this runs and refreshes on its own, another appears if the analysis fails, and you are prompted if no requirements are uploaded. Uploading and analyzing conversations waits until the requirements analysis is ready, so no conversation is judged before it.

Each conversation is judged against the scope and policies in your requirements, such as refund limits, return windows, verification, handoff, and disclosure. A reply that is out of scope or breaks a policy fails even when the conversation's overall score is high.

How Chat Agent Testing Works​


The platform generates scenarios from your uploaded sources, in the count you choose at generation, then runs each one as a full conversation. Testing agents send multi-turn HTTP or WebSocket messages to your endpoint, read the reply from each response, and decide the next message based on the scenario goal and prior context.

A conversation ends when the goal is met, the maximum turn count is reached, or an unrecoverable error occurs. If your agent errors or refuses connections, each failed turn is recorded with its error, and the run stops after repeated errors. Each completed conversation is then scored. For the request and response mechanics, see how to connect a chat agent over its API.

Chat agents built on Gallup Intelligence are supported. The conversation is kept in a single thread, and table responses are evaluated.

What Chat Testing Evaluates​


Every conversation is scored on the 9 quality metrics, the scenario's validation criteria, and any custom metrics you apply.

Scenarios are drawn from behavioral test categories, including intent recognition, context and memory, multi-turn reasoning, error handling, and compliance.

Red teaming runs a live adversarial attacker against your agent, rather than a single opening probe. It covers seven attack types: business logic, hallucination, hijacking, prompt injection, technical injection, overreliance, and off-topic. The attacker and the grader are separate, so the score is not influenced by how hard the attacker pushed. A run that cannot be judged is reported as inconclusive, not passed. Red team attacks also run against localhost or tunnel targets on polling chat agents, where the attacker keeps pressing instead of stopping after one or two exchanges, and fewer results come back inconclusive.

Chat Agent Testing Features​


The steps above don't cover these features. Data Validation and Metric Thresholds and Custom Metrics have their own sections below.

  • Knowledge base. Your uploaded and linked sources become the project's own isolated knowledge base, used as the ground truth for scenario generation, conversations, and evaluation.
  • Healthcare knowledge packs. Packs return UMLS vocabulary codes (ICD-10-CM, SNOMED CT, LOINC), and the Turns tab shows which pack lookups the simulator used on each turn.
  • Scenario settings. Link a test profile to a scenario to run it with specific test data, and give it its own maximum conversation turns, from 1 to 100 (25 by default), which takes priority over the suite default.
  • Endpoint profiles. If your agent needs more than one request, such as a login or a new session before the chat, connect it with an endpoint profile instead of a single cURL command. Import a Postman collection or define it in JSON, then set up the suite setup, scenario setup, and chat phases. Variables can be static, generated, extracted with JSONPath, secret, or taken from a test profile, with retry, response caching, and timeouts. A credential in an imported collection triggers the Move to vault banner. See how to set up an endpoint profile.
  • Guided profile setup. Import any Postman collection: the import finds the chat request, keeps only the login and lookup requests it needs, and shows you the flow to review before you save, naming gaps such as expired tokens or undefined variables with the fix. REST profiles also have a guided step editor that starts from a Postman collection or a cURL command, or builds the profile step by step.
  • Connection checks. Test connection sends a real chat message and shows the reply, with the request and response of each setup step. A profile that cannot run is caught when you save it, and every problem names the field and the fix.
  • WebSocket chat agents. A WebSocket endpoint profile connects a chat agent that talks over WebSocket, including agents on Genesys Web Messaging. For Genesys Web Messaging, optional profile settings collect split replies until the agent goes quiet, pause between connect messages, and add quick-reply and button labels to the reply text. WebSocket suites also run against localhost or tunnel targets.
  • AWS Signature V4. Test bots behind API Gateway, Lambda URLs, or Bedrock: paste a curl --aws-sigv4 command or fill in the Signing fields, and keep the keys in the vault.
  • Test profiles. Reusable key-value test data with typed fields, a default profile, and JSON import and export, injected at run time for data-driven testing. See Test Suites and Test Profiles.
  • HyperExecute and tunnels. Evaluations run at scale on HyperExecute, with a tunnel for agents behind a firewall, and progress streams live during the run.
  • Go-Live Assessment. A Green, Yellow, or Red verdict on whether your agent is ready for production, with a confidence level, dimension scores, scenario coverage, risk assessment, and AI recommendations. See Go-Live Assessment.
  • Scheduled runs. Besides Schedule Run Evaluation in Step 6, you can select Schedule Run from the dropdown next to a suite's Run button. Schedules run in your local time zone, and you stop one by deleting the scheduled run. To change a schedule without deleting it, open Run Suite on the scheduled suite: it shows the current cadence, pre-selects the endpoint profile and metrics the schedule runs with, and saves your changes to the same schedule. The Edit icon on the Scheduled tab changes only the day and time. See Scheduled Runs.
  • Slack notifications. Chat run outcomes post to Slack, and a technical failure is never posted as a test result.
  • Business reports. Export a suite's results as a PDF or HTML report for business readers, from Export report on the suite results page or a share page. Choose the latest result for each scenario or a date range, pick the scenarios, and choose whether to include transcripts. The report shows a readiness verdict, KPI tiles that each say why they are On track, At risk, or Off track, top issues, changes since the last run, a scorecard, and scenario details, and its Data accuracy tile flags any value that did not match your data. Reports use no credits, and reports exported from share links always mask personal data.

Metrics​


Chat agents are evaluated on 9 quality metrics, each scored on a 0 to 100% scale.

#MetricWhat it measures
1Bias DetectionDetects biased, discriminatory, or unfair responses
2Hallucination DetectionIdentifies false, fabricated, or unsupported information
3CompletenessWhether the agent fully addresses the user's question
4Context AwarenessHow well the agent understands and maintains conversation context
5Response QualityOverall quality, clarity, and helpfulness of responses
6Conversation FlowNatural flow and coherence across multi-turn conversations
7User SatisfactionEstimated end-user satisfaction based on conversation quality
8File Handling QualityQuality of file upload and download interactions, if applicable
9File Generation AccuracyAccuracy of generated files against requirements, if applicable

Every evaluation result includes the overall score, per-metric scores with pass or fail badges, detailed analysis, the full multi-turn transcript, identified strengths, areas for improvement, actionable recommendations, and validation criteria results.

Metric Thresholds and Custom Metrics​

Both are set in the Configs tab, under the Metric Thresholds and Custom Metrics sub-tabs.

  • Metric Thresholds: set a minimum passing score (0 to 100%) for each metric, choose whether higher or lower is better, and save named configurations. Scheduled runs use the active configuration.
  • Custom Metrics: define project-specific checks and apply them to all scenarios or selected ones. Suggest examples drafts metrics from your scenarios. Grades appear under Validation Criteria with an explanation, the evidence turns, and a Pass/Fail override, and each custom metric can gate the overall score, set from Metric Thresholds. Suite insights add a per-metric table that shows, for each custom metric, the number graded, the pass rate, and the average.

Data Validation​


Data Validation checks the facts your agent states during a conversation, such as a price, an order status, or a delivery date, against your own API, and gives each fact a Pass, Fail, or Cannot verify verdict under Validation Criteria. You create a config under Profiles, then Data Validation, and attach it to a workflow under the workflow's Settings.

To write a config, test it, and read the results, see Data Validation.


Help and Support

Related Articles