Testing Voice Agents Without Sending Production PII to a Vendor

Sumanyu Sharma
Sumanyu Sharma
Founder & CEOAn industry expert reviewed this article for accuracy and quality., Voice AI QA Pioneer

Hamming protects 10K+ voice agents in production.

· Updated · 16 min read

Testing Voice Agents Without Sending Production PII to a Vendor

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:

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 provesSynthetic substituteWhat the substitute must get right
Conversation flows, intents, edge casesSimulated callers generated from the agent's prompt and scenario libraryAccents, interruptions, background noise, DTMF, multi-turn pressure
Identity and verification flowsInvented caller personas with known verification statesA persona per state: verified, not yet verified, mismatched, locked out
Account lookups and readsSynthetic account fixtures with realistic formatsField formats, record relationships, empty and conflicting states
Tool actions: booking, refund, transfer, updateSandboxed tools over fixture dataAuthorization states, preconditions, failure and timeout responses
Adversarial behavior: injection, social engineering, data extractionRed-team scenarios targeting the fixture dataPlanted canary records that prove a leak without exposing anyone
Load and concurrencyThousands of concurrent simulated callsRealistic 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:

TechniqueWhat it keepsWhat it removesFixture use
Identifier removalRecord structure and non-identifying fieldsNames, phone numbers, emails, account and government IDsBaseline for every masked fixture
Substitution of quasi-identifiersField formats and distributionsReal values of dates, ZIP codes, employersVerification flows that check field logic
Number and date variancePlausible arithmetic relationshipsExact balances, dates of birth, visit datesBalance disputes, scheduling, eligibility logic
Model-generated synthetic dataStatistical shape of the whole datasetNothing by guarantee: generation methods differ and some leak source records, so assess leakage and re-identification risk before transferring generated fixturesLoad 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 classData exposure if unsandboxedSandboxed setup
CRM and account readsReal customer records returned into test transcripts and vendor logsFixture CRM with synthetic and canary records
Scheduling and bookingReal calendars, provider names, patient appointmentsMock calendar with deterministic availability
Payments and refundsCard references and transaction history enter test evidencePayment-provider sandbox with test tokens
Messaging and notificationsTest content sent to real customersCaptured outbox; nothing leaves the sandbox
Transfers and handoffsOver-shared caller context reaches real queuesTest queues with inspectable handoff payloads
Webhooks and exportsTest traffic delivers data to real external endpointsSigned 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 phaseData that enters the vendorProduction PII required?Controls that holdEvidence to keep
Scenario designYour agent's prompt, policies, intent listNoTreat prompts as confidential IP; no customer records in prompt or examplesScenario library with data-class annotations
Functional simulationSynthetic call audio, transcripts, scoresNoSynthetic callers and fixture accounts onlyFixture manifest; run results
Adversarial red-teamingSynthetic attack calls, canary-seeded fixturesNoCanary records, sandboxed tools, defensive-shape payload handlingLeak search results against canary values
Tool and workflow testingTool traces against fixture systemsNoSandbox boundary; production endpoints blockedReachable-systems list; tool trace samples
Load testingHigh-volume synthetic callsNoSynthetic data at scale; rate isolation from production telephonyConcurrency results; no-production-path confirmation
Masked-fixture testingDe-identified production-shaped recordsNo raw PII; masked data per your assessmentMasking inside your boundary; fixture leak-tested before transferMasking method, test results, re-identification assessment
Production call replayReal call recordings and transcriptsYes, unless redacted at ingestionRedaction at ingestion, access controls, audit logging, BAA or DPA in placeRedaction config; access and audit logs
Production monitoringLive call evidence, sampled or completeYesFull vendor security review before this phase startsThe 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:

QuestionInference pathStorage
Which systems touch the data?Telephony carrier, STT, LLM, TTS, evaluator modelsEvidence store, analytics, backups, exports
Which regions?Region per model endpoint and carrier, per callRegion of the evidence store and its backups
Who are the subprocessors?Model and telephony providers on the call pathStorage and analytics providers
Is data retained at that hop?Provider-side logging and training-use terms per endpointRetention policy per evidence class
What do you need in writing?Subprocessor list with regions and data-use termsResidency 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 classContainsRetention decision
Synthetic call recordings and transcriptsNo personal dataRetain for regression value; confidentiality of prompts still applies
Masked-fixture evidenceDe-identified data, residual risk per your assessmentFixed term tied to the test cycle; delete the fixture with it
Canary leak evidenceFabricated records onlyRetain; it is your regression proof that the leak stays fixed
Production replay evidenceReal customer data unless redacted at ingestionShortest term that covers the fix-and-retest loop; deletion verified
Aggregate metrics and scoresNo record-level data if built correctlyRetain; 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:

  1. 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.
  2. 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.
  3. 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.
  4. 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.

Frequently asked questions

Yes. Functional, adversarial, and load testing all run on synthetic callers, synthetic account fixtures, and sandboxed tool integrations, with no real customer record entering the vendor's systems. Hamming recommends seeding fixtures with canary records, so a leakage test produces a confirmed signal with zero real-person exposure.

Yes. Of the eight phases in a voice agent testing program, five (scenario design through load testing) need no production data at all and masked-fixture testing needs only de-identified records; only production call replay and production monitoring require identifiable production data, and redaction at ingestion narrows even those. Hamming recommends running the no-PII phases while the full vendor security review for the production phases is still in flight.

PII-free voice agent testing proves an agent's behavior with data that identifies no real person: simulated callers, synthetic or de-identified records behind the agent's tools, and sandboxed integrations standing in for production systems. It's GDPR-style data minimisation applied to the test program itself, and NIST SP 800-188 documents the de-identification techniques, model-generated synthetic data included.

When behavior depends on the shape of real data: legacy format inconsistencies, migration duplicates, messy free-text fields that invented data misses. Build masked fixtures inside your own boundary with documented de-identification techniques, then leak-test the output against known production values before anything transfers. Hamming recommends treating any hit as a masking pipeline bug with leak-level severity.

A test call against production integrations moves real records no matter how synthetic the caller is, which makes sandboxing a data-exposure control, not only a side-effect control. Point every read and write at fixture systems, block real endpoints, and confirm that no system a test call can reach holds a production record. Hamming recommends keeping that reachable-systems list as reviewer evidence.

Ask twice: where data transits during inference (telephony, speech-to-text, LLM, text-to-speech, and evaluator endpoints, each with its own region and data-use terms) and where evidence rests in storage, backups included. A vendor can store evidence in one region while routing transcript text through model endpoints in another on every call. Hamming recommends getting the subprocessor list with regions for both paths in writing.

Set retention per evidence class, not per storage bucket. Keep synthetic and canary evidence for regression value, give masked-fixture evidence a fixed term tied to the test cycle, and hold production replay evidence for the shortest term that covers the fix-and-retest loop, with verified deletion. Hamming's published default is 90-day retention for test recordings and transcripts, configurable per workspace from 7 days to unlimited.

For two things: replaying real failed calls as regression tests, and production monitoring itself, as the priced exception rather than the default. Every copy gets four controls: per-copy authorization with expiry, redaction at ingestion before the data moves, production-grade protection at the destination, and verified deletion. Hamming recommends then rebuilding each failed call as a synthetic regression test, so the suite grows while retained real data does not.