# QA Testing

QA Testing in VoiceHub allows you to simulate conversational scenarios and evaluate how well an agent behaves according to its configuration and your business expectations.

### **What it does**

* Automatically simulates text-based conversations
* Uses your evaluation prompt to judge if the agent’s replies are correct, helpful, or aligned
* Produces pass/fail results per test scenario
* Lets you identify weaknesses before deploying to production

### **Why it matters**

This is a critical tool for:

* Continuous testing during development
* Comparing performance across prompt updates or model changes
* Ensuring agents follow business logic and tone
* Running regression tests at scale

Unlike real calls, QA tests are fast, cost-free, and focused entirely on logic accuracy.

### **How to use it**

1. Go to QA Tests in the sidebar
2. Click + Add Test
3. Fill in:
4. * Title (e.g., "Booking – success scenario")
   * Description (optional for internal clarity)
   * Evaluation Prompt – This is what the model uses to assess the response (e.g., "The agent should confirm the booking and provide appointment time")
   * Test Message(s) – Simulated user input(s)
5. Click Save

Run the test anytime, or batch-run all tests after an update.

#### **Example**

Title: Appointment Booking – Success Case Evaluation Prompt:

Evaluate if the agent confirms the booking and restates the appointment time in natural language. The answer must be accurate, clear, and helpful.

Test Message:

Hi, I want to schedule a new appointment next Monday at 3pm.

#### **Result**

* ✅ PASS: Agent confirms the correct date/time with proper tone
* ❌ FAIL: Agent ignores time or responds vaguely

***

VoiceHub’s QA Testing ensures every conversation design is reliable before going live — saving time, cost, and reputation.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://dataqueue.gitbook.io/voicehub-docs/agent-design-and-usage/qa-testing.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
