Basata scales healthcare voice agent testing 6x faster with Hamming

Basata uses AI to remove administrative overhead for healthcare providers, automating patient communication so clinicians can focus on care. Its voice agents handle scheduling, patient outreach, and practice communication across specialties like cardiology.
Basata
Location
United States
Industry
Healthcare AI
Stage
Private
Website
basata.ai
Use cases
  • Pre-deployment voice agent testing
  • Automated test case generation via API
  • Accessibility and persona testing
  • Agentic prompt optimization
“What a testing platform should do, no matter what kind of testing you're doing, is enable you to scale. And Hamming does that well.”
Blake Jones
AI Engineer, Basata

About Basata

Healthcare practices are old institutions with older technology and processes, and patients rely on the phone as their main way to reach their practice. Basata's agents bridge that gap, but the stakes are high: in cardiology, patients are dealing with heart problems, and missed communications have real consequences.

Every new customer brings its own configurations, conversation flows, and guardrails, and manual testing could not keep pace. Basata needed a way to validate agent behavior programmatically. With Hamming, the team can:

  • Cut testing time from 90 minutes to 15 minutes per cycle
  • Run all customer agent tests concurrently instead of one at a time
  • Auto-generate test cases from agent configuration via API
  • Close the feedback loop with agentic prompt optimization

The challenge: manual testing doesn't scale in high-stakes healthcare

Basata's voice agents handle patient communication for healthcare practices where urgency is the norm. A missed appointment in cardiology isn't an inconvenience; it means a patient isn't getting care. Every agent deployment needs rigorous validation to confirm it behaves correctly, follows guardrails, and doesn't make promises the practice can't keep.

Each practice also needs deep customization. Older institutions with established processes need AI that fits their workflows, not the other way around, so every customer agent has its own conversation flows, scheduling rules, and edge cases. Testing every path meant individual phone calls, one at a time, for an hour and a half per cycle. And because LLM responses are nondeterministic, the same test had to run several times for confidence.

The core challenge in summary

  • 1.5 hours of manual phone calls per test cycle, growing with every new customer
  • One person, one call at a time, with no parallelism
  • No way to simulate diverse patient accents, demographics, or speech patterns
  • Socially exhausting calls that spent cognitive energy on calling instead of building
  • A high-stakes healthcare context where failures mean patients don't get care

The impact

Faster testing cycles than manual calls
6x
Reduction in manual testing time
83%
Full test suite run, down from 90 minutes
15 min

Before and after Hamming

MetricBefore HammingWith Hamming
Test execution timeBefore Hamming1.5 hours of manual phone callsWith Hamming15 minutes, all tests concurrent
Test parallelismBefore HammingOne person, one call at a timeWith HammingEntire test suite runs at once
Persona coverageBefore HammingTeam cannot simulate diverse accents or demographicsWith HammingFull persona library with regional voices and speech patterns
Prompt optimizationBefore HammingManual trial-and-error prompt engineeringWith HammingAutomated agentic feedback loop from evaluator results
Scaling with customersBefore HammingTesting effort grows linearly with each customerWith HammingProgrammatic generation scales automatically

The solution: API-first testing that scales with every customer

  • 01

    Programmatic test case generation via API

    Basata's agents are configured per practice, each with its own conversation flows, scheduling rules, and guardrails. Writing and maintaining test cases by hand for every configuration was not sustainable.

    With Hamming's API, the team defines agent behavior in YAML and converts it into test cases programmatically. That lets them auto-generate test cases from configured agent functionality, manage state across multi-step conversations (for example, checking that an appointment was actually booked), inject scenario-specific test data into each run, and keep tests in sync with configuration changes.

    The programmatic layer removes the need to create or update test cases by hand in a UI.

  • 02

    Concurrent test execution across all customers

    Every practice Basata serves has its own agent with unique conversation flows and conditionals. Testing every path by hand took individual phone calls, one at a time, with one person on each.

    With Hamming, the whole suite runs concurrently, so the team starts every test at once instead of placing serial calls. Concurrency matters because each agent has its own conditionals, LLMs are stochastic so tests must run several times for confidence, and the number of tests grows with each new customer.

    That frees the team to focus on building rather than testing.

  • 03

    Diverse persona testing for patient accessibility

    Basata serves a diverse patient population. The team has seen regional differences in voice and communication style change how patients respond to the agent, with some combinations causing immediate hang-ups.

    Hamming's persona library covers demographics the team cannot replicate by hand. Switching genders, accents, and speaking speeds doesn't scale with a human team, but the platform has it built in: accents and regional speech patterns, speaking speeds and communication styles, voice and gender combinations that trigger different patient responses, and demographics that match real patient populations.

    Next, the team plans to A/B test voice and persona combinations in production, using Hamming's data to find which configurations work best for different patient demographics and regions. That moves them from reactive fixes to proactive optimization based on real data.

  • 04

    Agentic feedback loops for prompt optimization

    Basata's most sophisticated use of Hamming goes beyond testing. The team feeds the descriptions from Hamming's LLM judge evaluators back into a local agent that tunes system prompts, model selection, and agent configuration automatically.

    The loop runs the test suite through the Hamming API, collects evaluator descriptions and failure analysis, passes the results to a local agent that updates the system prompt, then re-runs the tests to confirm the improvement.

    To the team, manual prompt engineering felt less like engineering and more like trial and error. The loop replaces that guesswork with data and lets the agents improve themselves.

Why Basata chose Hamming

Basata evaluated its options and chose Hamming for its programmatic, API-first approach. Defining, running, and managing tests entirely in code was the deciding factor in the switch.

The team is realistic about what AI can and cannot do. It engineers the product around auditing AI behavior, validating outputs, and fitting into existing healthcare workflows, and Hamming fits that approach.

  • API-first: define tests in YAML, run them via API, no click-ops
  • Composable state management for multi-step conversations, such as appointment verification
  • A diverse persona library the team cannot replicate by hand
  • LLM judge evaluator descriptions that power agentic prompt optimization
  • A responsive team with a strong core platform
“I find talking to the agents completely socially exhausting. The platform offers all of these different personas that the team is not able to replicate. We want to make sure that our diverse customer base is represented in the agents themselves.”
Blake Jones
AI Engineer, Basata

The results

Validation that once took hours of exhausting manual calls now runs automatically, so the team spends more time building better agents and serving more healthcare practices.

The impact grows with every customer. Each new practice adds configurations that would have multiplied the manual testing burden. With Hamming, the testing infrastructure scales automatically.

What changed

  • 01

    6x faster testing cycles

    Testing dropped from 90 minutes of manual phone calls to 15 minutes of automated concurrent runs. The team starts every test at once and reviews the results, and the time saved compounds with every new customer deployment.

  • 02

    Tighter development feedback loops

    Before Hamming, every development iteration needed another round of manual calls, and the social and cognitive drain of talking to agents took energy from engineering. Now the team makes a change, runs the suite, reviews results, and repeats, without picking up a phone.

  • 03

    Automated prompt optimization

    The agentic feedback loop turns Hamming's evaluator descriptions into agent configuration changes automatically, improving agent quality while cutting human effort to near zero.

“It's been such a relief to be able to start shifting a lot of this stuff off our plates so we can go focus on more of the interesting problems.”
Blake Jones
AI Engineer, Basata