Testing a voice agent without production PII is the practice of running pre-production functional, adversarial, and load tests with synthetic callers, synthetic or masked data fixtures, and sandboxed tool integrations, so no real customer record enters the testing vendor's systems. The test proves the agent's behavior. The data proving it belongs to no one.
We wrote this guide for privacy and security reviewers approving a voice agent testing vendor, and for the engineering teams who have to design the test program those reviewers will sign off. An internal prototype with no customer data behind it doesn't need this structure. An agent fronting a CRM, an EHR, a payment system, or an account database does, because the test program decides what data flows to whom before the first real caller ever dials in.
The trap is a false choice. Teams assume realistic testing requires real customer data, so a production database extract goes to a test environment, and the security review later finds customer records sitting in a vendor's logs, a tester's laptop, and a staging CRM nobody listed in the data map. The opposite failure happens just as often. A privacy team bans all vendor testing, the agent launches on manual spot checks, and the first adversarial caller finds what a simulated one would have found for free.
TL;DR: You can test a voice agent pre-production without sending any production PII to a vendor. Synthetic callers exercise the conversation. Synthetic account fixtures exercise the data path. Masked fixtures, built with documented de-identification techniques, cover the cases where structure matters. Sandboxed tool calls keep tests out of production systems entirely. Review the vendor's data residency during inference separately from residency in storage, and set retention per evidence class. Production data enters a test program only by exception, with per-copy authorization, masking before movement, and verified deletion.
Methodology Note: This guide is based on Hamming's analysis of data flows, pre-production test programs, and privacy review workflows across 10K+ voice agents (2025-2026). We've tested agents built on LiveKit, Pipecat, ElevenLabs, Retell, Vapi, and custom-built solutions.Use the patterns here only for testing systems you own or are authorized to assess, and calibrate the controls to your data classes, regulators, and deployment model.
Last Updated: November 2026
Related Guides:
- Voice Agent Security - the hub for threats, tests, and controls
- Voice Agent Security Review Questions - the 30 questions to ask the vendor itself
- PII Redaction for Voice Agents - the redaction pipeline for when production data must flow
- Voice Agent Sandbox Testing - tool-call isolation mechanics
- Voice Agent Log Retention Compliance Checklist - retention and deletion decisions for call evidence
- Voice Agent Prompt Injection Testing - the adversarial test plan these fixtures feed
- Voice Agent Red Teaming Guide - the campaign the adversarial phase runs on synthetic data
What is PII-free voice agent testing?
Definition: PII-free voice agent testing proves an agent's behavior with data that identifies no real person: synthetic callers speaking to the agent, synthetic or de-identified records behind its tools, and sandboxed integrations standing in for production systems. The agent under test is real. The people in the test are not.
This is data minimisation, applied to testing. GDPR Article 5(1)(c) requires personal data to be "adequate, relevant and limited to what is necessary in relation to the purposes for which they are processed", and Recital 39 adds that personal data should be processed only if the purpose could not reasonably be fulfilled by other means. For most voice agent testing purposes, it can be. The UK ICO's product design lifecycle guidance names protecting personal information in development environments as a development-stage concern, and removing test data before go-live as a launch-stage check. NIST SP 800-188 goes further: it treats generating synthetic data from models as one of the standard de-identification techniques (alongside removing identifiers and transforming quasi-identifiers) and covers test data as a use case in its own right.
Notice the question a reviewer should ask. It isn't "does the vendor protect our PII?" That's the vendor security review, and it still matters. The prior question is whether any PII needs to reach the vendor at all for this phase of testing. For pre-production testing, the answer is no.
Synthetic test data covers most of what pre-production testing has to prove
A pre-production test has three jobs. Prove the conversation works. Prove the data path works. Prove the agent resists attack. Synthetic data does all three, because what each test measures is the agent's behavior, not the caller's biography.
| What the test proves | Synthetic substitute | What the substitute must get right |
|---|---|---|
| Conversation flows, intents, edge cases | Simulated callers generated from the agent's prompt and scenario library | Accents, interruptions, background noise, DTMF, multi-turn pressure |
| Identity and verification flows | Invented caller personas with known verification states | A persona per state: verified, not yet verified, mismatched, locked out |
| Account lookups and reads | Synthetic account fixtures with realistic formats | Field formats, record relationships, empty and conflicting states |
| Tool actions: booking, refund, transfer, update | Sandboxed tools over fixture data | Authorization states, preconditions, failure and timeout responses |
| Adversarial behavior: injection, social engineering, data extraction | Red-team scenarios targeting the fixture data | Planted canary records that prove a leak without exposing anyone |
| Load and concurrency | Thousands of concurrent simulated calls | Realistic call length, audio conditions, and tool latency |
Two of these rows do work real data can't. Synthetic fixtures give you coverage no production extract contains: the account with a negative balance, the caller whose name fails to parse, the record stuck mid-migration. A production sample is a biased sample of normal. And planted canary records turn leakage testing into a clean signal. Seed the fixture CRM with an invented patient or account holder, run sensitive-data extraction scenarios against the agent, then search every transcript for the canary values. A hit is a confirmed leak path with zero real-person exposure. Run that same test with production data and every hit is itself a disclosure incident.
There's a consent benefit too. Recording real customer calls for test replay raises recording-consent and purpose-limitation questions in most jurisdictions. A simulated caller has no rights to manage.
Masked fixtures handle the cases where structure matters and invention fails
Some behavior only shows up against the shape of real data. The CRM with fifteen years of inconsistent formats. Duplicate records from a migration. Free-text notes that confuse retrieval. Fully invented fixtures miss that mess, and the answer is still not shipping raw production data. It's a masked fixture: a production-shaped dataset passed through documented de-identification before it leaves your boundary.
NIST SP 800-188 describes the technique families and their trade-offs. Applied to voice agent fixtures:
| Technique | What it keeps | What it removes | Fixture use |
|---|---|---|---|
| Identifier removal | Record structure and non-identifying fields | Names, phone numbers, emails, account and government IDs | Baseline for every masked fixture |
| Substitution of quasi-identifiers | Field formats and distributions | Real values of dates, ZIP codes, employers | Verification flows that check field logic |
| Number and date variance | Plausible arithmetic relationships | Exact balances, dates of birth, visit dates | Balance disputes, scheduling, eligibility logic |
| Model-generated synthetic data | Statistical shape of the whole dataset | Nothing by guarantee: generation methods differ and some leak source records, so assess leakage and re-identification risk before transferring generated fixtures | Load tests and retrieval over large corpora |
Two limits, stated flat. Pseudonymised data is still personal data under GDPR, so a fixture that swaps names for tokens while keeping a re-identification key hasn't left the regulation's scope. And masking quality is an empirical property, not a label (NIST SP 800-188 is explicit that tools which merely mask personal information do not necessarily provide sufficient de-identification). So test the fixture before you trust it: search the masked output for a sample of known production values, and treat any hit as a masking pipeline bug with the same severity as a leak.
Who runs the masking matters as much as how. The pipeline runs inside your boundary, under your keys, before anything moves. A vendor asking for raw production data "so we can mask it for you" has moved the exposure, not removed it.
Sandboxed tool calls decide what data a test can touch
The conversation is only half the data path. A voice agent with tools reads from and writes to the systems behind it, so an unsandboxed test call against production integrations moves real records no matter how synthetic the caller is. That makes sandboxing a data-exposure control, not only a side-effect control.
| Tool class | Data exposure if unsandboxed | Sandboxed setup |
|---|---|---|
| CRM and account reads | Real customer records returned into test transcripts and vendor logs | Fixture CRM with synthetic and canary records |
| Scheduling and booking | Real calendars, provider names, patient appointments | Mock calendar with deterministic availability |
| Payments and refunds | Card references and transaction history enter test evidence | Payment-provider sandbox with test tokens |
| Messaging and notifications | Test content sent to real customers | Captured outbox; nothing leaves the sandbox |
| Transfers and handoffs | Over-shared caller context reaches real queues | Test queues with inspectable handoff payloads |
| Webhooks and exports | Test traffic delivers data to real external endpoints | Signed test endpoints; real destinations blocked |
The mechanics of building these sandboxes live in the sandbox testing guide. For the privacy reviewer, the acceptance test fits in one sentence: list every system a test call can reach, and confirm none of them holds a production record. Once that holds, the transcripts, tool traces, and recordings the vendor stores as test evidence contain fabricated people by construction. The evidence-handling review shrinks from a PII review to a confidentiality review.
The data-exposure control table by testing phase
Data exposure isn't one decision. Each phase of a voice agent testing program moves different data, so review each phase on its own row. Fill this table in with your vendor before the POC starts.
| Testing phase | Data that enters the vendor | Production PII required? | Controls that hold | Evidence to keep |
|---|---|---|---|---|
| Scenario design | Your agent's prompt, policies, intent list | No | Treat prompts as confidential IP; no customer records in prompt or examples | Scenario library with data-class annotations |
| Functional simulation | Synthetic call audio, transcripts, scores | No | Synthetic callers and fixture accounts only | Fixture manifest; run results |
| Adversarial red-teaming | Synthetic attack calls, canary-seeded fixtures | No | Canary records, sandboxed tools, defensive-shape payload handling | Leak search results against canary values |
| Tool and workflow testing | Tool traces against fixture systems | No | Sandbox boundary; production endpoints blocked | Reachable-systems list; tool trace samples |
| Load testing | High-volume synthetic calls | No | Synthetic data at scale; rate isolation from production telephony | Concurrency results; no-production-path confirmation |
| Masked-fixture testing | De-identified production-shaped records | No raw PII; masked data per your assessment | Masking inside your boundary; fixture leak-tested before transfer | Masking method, test results, re-identification assessment |
| Production call replay | Real call recordings and transcripts | Yes, unless redacted at ingestion | Redaction at ingestion, access controls, audit logging, BAA or DPA in place | Redaction config; access and audit logs |
| Production monitoring | Live call evidence, sampled or complete | Yes | Full vendor security review before this phase starts | The 30-question review, completed |
The table carries the argument of this whole guide: five of eight phases need no production data of any kind, and a sixth needs only de-identified records under your own masking assessment. It also fixes the POC sequencing problem. Run the first six phases while the vendor security review for the last two is still in flight, and the pilot produces real findings before a single customer record moves. A vendor that needs your production data to show you value in week one is telling you something about its test-generation capability.
Residency during inference is not residency in storage
"Where is my data stored?" is the question every questionnaire asks, and it's half the question. During a test call, audio and text transit a processing path (telephony, speech-to-text, the LLM, text-to-speech, evaluation models), and each hop is a processor with its own region and its own retention behavior. Data can transit a region during inference that it never rests in. A vendor can store all evidence in the EU while routing transcript text to a model endpoint in another region on every call. Both facts matter. Only one shows up under "storage".
Ask the two questions separately:
| Question | Inference path | Storage |
|---|---|---|
| Which systems touch the data? | Telephony carrier, STT, LLM, TTS, evaluator models | Evidence store, analytics, backups, exports |
| Which regions? | Region per model endpoint and carrier, per call | Region of the evidence store and its backups |
| Who are the subprocessors? | Model and telephony providers on the call path | Storage and analytics providers |
| Is data retained at that hop? | Provider-side logging and training-use terms per endpoint | Retention policy per evidence class |
| What do you need in writing? | Subprocessor list with regions and data-use terms | Residency commitment and deletion SLA |
When tests run on synthetic data, both answers are low-stakes. That's the point. The moment masked fixtures or production replay enter the picture, both answers become contractual.
For Hamming's own posture, the public commitments are on hamming.ai and Why Hamming: SOC 2 Type II and HIPAA-aligned workflows with BAA support, plus a GDPR DPA available. Data stored in the United States by default, with EU clusters available and single-tenant deployments provisioned in a preferred region with customer-managed encryption keys. PII and PHI redaction options at ingestion, role-based access control per workspace, and an audit trail exportable to your SIEM. No sale of customer data, and no training on it. Hold any vendor (Hamming included) to the inference-versus-storage distinction in writing.
Retention: test evidence has a shelf life, and shorter than you think
Test evidence is the artifact privacy reviews forget. Recordings, transcripts, tool traces, and scored results pile up in the vendor's store, and whatever data class went in is the data class sitting there a year later. Set retention per evidence class before the POC. Not at renewal.
| Evidence class | Contains | Retention decision |
|---|---|---|
| Synthetic call recordings and transcripts | No personal data | Retain for regression value; confidentiality of prompts still applies |
| Masked-fixture evidence | De-identified data, residual risk per your assessment | Fixed term tied to the test cycle; delete the fixture with it |
| Canary leak evidence | Fabricated records only | Retain; it is your regression proof that the leak stays fixed |
| Production replay evidence | Real customer data unless redacted at ingestion | Shortest term that covers the fix-and-retest loop; deletion verified |
| Aggregate metrics and scores | No record-level data if built correctly | Retain; confirm aggregates cannot be reversed to records |
Three rules make the table operational. Retention follows the data class, not the storage bucket: a "test environment" label grants no exemption, and ISO/IEC 27001:2022 makes this a named control (A.8.33, test information, with implementation guidance in ISO/IEC 27002:2022). Deletion is an event with evidence, not a policy sentence, so ask for deletion confirmation that covers primary storage, analytics, and backups. And the ICO's launch-stage check applies to vendors too: test data comes out before go-live, including fixture accounts that would otherwise ride into the production workspace. Hamming's published default is 90-day retention for test recordings and transcripts, configurable per workspace from 7 days to unlimited. Whatever vendor you use, the configurability is the requirement.
When production data is justified, control the copy
Two phases legitimately use production data: replaying real production calls as regression tests, and production monitoring itself. A failed real call is the best regression test you'll ever get. It encodes caller behavior no scenario writer invents, and the goal is not to ban that. The goal is to make production data the priced exception rather than the default, with four controls on every copy:
- Authorize per copy. A named approver, a stated purpose, a defined scope, and an expiry. "The team has access to production calls" is not an authorization; it is the absence of one.
- Redact before it moves. Run redaction at ingestion so card numbers, government IDs, and health details are removed before the evidence reaches the vendor store, across transcript, audio, logs, and traces.
- Protect the destination to production standard. The copy inherits the sensitivity of its source. Access control, audit logging, and encryption apply to test evidence exactly as they apply to the production record.
- Delete on schedule and verify. The expiry from step 1 triggers a deletion with confirmation, and the regression value survives as a synthetic reconstruction: rebuild the failing scenario with fabricated data, confirm it still fails against the old build, and retire the real recording.
Step 4 is what makes the whole program converge. Every production failure becomes a synthetic regression test, so the permanent suite grows while the stock of retained real data doesn't. Continuous red-teaming then runs forever on data that identifies no one.
The evidence packet for the privacy reviewer
Built this way, the privacy sign-off should take an afternoon. Hand the reviewer one packet:
- Data-flow statement per phase. The control table above, filled in, with the no-PII phases marked and the exceptions named.
- Fixture manifest. What synthetic and masked datasets exist, how the masked ones were produced, and the leak-test results on each.
- Reachable-systems list. Every endpoint a test call can touch, each marked sandbox or production.
- Residency answers, twice. Inference-path subprocessors and regions; storage regions and backup scope.
- Retention schedule per evidence class. With the deletion verification method named.
- Exception log. Every production-data copy: approver, purpose, redaction applied, expiry, deletion confirmation.
This packet is audit-ready evidence for security, risk, and model governance reviews. It's also the artifact that separates "we tested it" from "we can show you what the test touched." A vendor that has seen this packet before fills in its half without being asked, and that's a signal worth as much as any certification.