Entity extraction for voice AI: capture names, IDs and dates

Caller speaking into a phone beside name, identifier and calendar tokens
Caller speaking into a phone beside name, identifier and calendar tokens

A voice agent can understand a request and still capture the wrong name, record code or appointment date. For technical teams, reliable entity extraction means turning spoken details into typed fields without hiding uncertainty. The engineering work is in preserving what the caller said, resolving ambiguous values and deciding when each field is safe to accept.

What entity extraction means in a voice agent

Entity extraction identifies specific details in unstructured language and assigns them a type. In a voice agent, it turns a caller's words into fields such as caller_name, record_code and visit_date.

Reliable capture preserves three things separately: the source wording, the interpreted value and the evidence needed to accept it. A well-formed date can still be the wrong date. A correctly captured identifier can still belong to someone else.

The practical sequence is:

  1. Define the fields and their allowed meanings.
  2. Extract candidates from finalized speech-recognition text.
  3. Preserve source spans and uncertainty signals.
  4. Resolve ambiguity, then normalize the value.
  5. Obtain the required spoken confirmation.
  6. Apply field and business validation before handing values to the action layer.

At Dasha, we help technical teams build and run production voice agents through a managed runtime. These capture rules remain an application-level contract: they define what a caller-provided value means and what evidence makes it acceptable.

1. Define a field contract before choosing an extractor

Start with the fields the workflow actually needs. Each field needs a type, a normalization policy and an explicit representation for missing or unresolved information.

FieldStored typeAcceptance concern
Caller nameStringSpelling and intended person
Record codeStringExact characters and format
Visit dateCalendar dateResolved day, month and year

A general person-name label cannot tell you whether a name belongs to the caller, a colleague or the person receiving the service. Include that role in the field definition. For example: “Extract the caller's stated name; a name mentioned as another person is not the caller's name.”

Keep identifiers as strings, including identifiers made entirely of digits. Converting 0048 to an integer destroys information. A date-only visit request also needs a date type, rather than an invented midnight timestamp.

Represent an absent value as null with a reason such as not_mentioned or unresolved. An empty string, a guessed year or a plausible replacement name hides the reason capture failed.

Rules work well for fixed-format codes. A text extractor or large language model can handle contextual roles and varied phrasing. Either approach needs the same output contract. A schema-conforming response proves that the output has the expected shape; it does not prove that the caller said it.

2. Extract from finalized text and retain the source span

Automatic speech recognition (ASR) converts speech into text. Streaming recognizers can revise partial results. Use finalized transcript segments for consequential field candidates, while remembering that finalization does not establish correctness. Our real-time transcription guide explains the transcript-state boundary.

Bind each candidate to the exact transcript revision used for extraction. Record a turn or segment identifier, speaker or channel, and character offsets into that immutable text. Define the offset convention, including whether positions count bytes, Unicode code points or UTF-16 code units. Where available, attach the recognizer's word timestamps for audio review.

This synthetic example uses the transcript:

I'm Nina Park. My demo visit is June fourth, 2027.

An illustrative field object, independent of any vendor API, is:

JSON
{ "field": "visit_date", "type": "date", "raw": "June fourth, 2027", "normalized": "2027-06-04", "source": { "turn_id": "demo-turn-1", "transcript_revision": 1, "speaker": "caller", "char_start": 32, "char_end": 49 }, "signals": { "asr_score": null, "extraction_score": null }, "interpretation": "unambiguous", "validation": { "format": "pass", "business": "not_evaluated" }, "confirmation": "pending" }

Here, offsets are zero-based Unicode code-point positions with an exclusive end. The slice from 32 to 49 is exactly June fourth, 2027. The null scores mean no score was supplied. They do not mean zero confidence.

Keep raw unchanged when normalization produces 2027-06-04. If a caller spells a surname as well as saying it, preserve both supporting spans. A derived value may need several pieces of evidence.

Validate span boundaries and the source-text match in application code. A model-generated quotation or offset is still a candidate until it matches the referenced transcript. If the transcript changes, stale offsets must not silently point at different words. Apply the workflow's access and retention rules to this evidence because it contains caller information.

The text-first path makes extraction inspectable, but accuracy also depends on the architecture. A spoken-entity extraction study found direct speech-to-entity extraction outperformed a two-step transcription pipeline in its enterprise virtual-agent setting. That result supports evaluating alternatives; it does not establish a universal winner.

3. Treat confidence as evidence, not permission

Keep recognition confidence separate from extraction confidence:

  • ASR confidence concerns the recognized wording, where the recognizer supplies a score.
  • Extraction confidence concerns the mapping from that wording to a particular field, where the extractor supplies a meaningful signal.
  • Validation results concern explicit constraints, such as a real calendar date or a matching record format.
  • Caller confirmation records agreement with a particular read-back.

A recognizer can be confident about “June fourth” while the extractor assigns it to the wrong field. An extractor can also confidently interpret a transcription error.

A score of 0.82 is not automatically an 82% probability of correctness. Speech-confidence calibration research treats calibration as a separate adaptation step and identifies application-dependent word distributions as relevant. Thresholds need evidence from the field types, audio conditions and models used by the application.

Avoid averaging confidence across the whole utterance to approve a short identifier. Strong scores on “my record code is” can hide uncertainty in its final character. Preserve available word-level signals for the relevant span. Any aggregation, including taking the lowest word score, is a heuristic until evaluated for that purpose.

When a provider supplies no score, retain that absence. A large language model's self-reported certainty is not a substitute for measured reliability. Acceptance policy can instead require exact format checks, an unambiguous interpretation and a targeted read-back for critical fields.

4. Resolve ambiguity before normalizing

Normalization converts a resolved interpretation into a consistent representation. It must preserve the distinctions the business field requires.

Names: preserve spelling and the intended role

Do not replace an unfamiliar name with a more common one. Preserve diacritics, meaningful punctuation and the caller's stated spelling. Avoid forcing every personal name into a first-name/last-name pair when the workflow only needs a display name.

If the transcript supports “Nina” and “Mina,” ask about that difference. If pronunciation is clear but spelling matters, ask for spelling. Repeating a pronunciation cannot establish which spelling the caller intended.

Name normalization and record matching are different operations. A search-friendly representation may help locate candidates, but it should not overwrite the caller's stated name.

Identifiers: preserve every meaningful character

Treat “letter O” and “zero” as different possibilities until the intended character is resolved. Preserve leading zeros. Remove spaces or separators only when the identifier's specification defines them as formatting.

For a fictional code such as DEMO-0048, the prefix and leading zeros are part of the example value. “Forty-eight” is not a safe normalized replacement. A narrow clarification such as “Were those two zeros before four eight?” resolves a specific ambiguity without asking the caller to restart the entire request.

Dates: make the reference context explicit

Normalize an explicit date such as “June fourth, 2027” to 2027-06-04. Keep “June fourth” unresolved if the year is required and the workflow has no justified year rule.

Relative phrases need reference context. “Tomorrow” depends on a reference date and the relevant local time zone. “Next Friday” can require clarification even when both are known. Preserve the phrase and record the context used to interpret it.

If the field includes an appointment time, store the local date, local time and time zone needed to resolve an instant. Ambiguous or nonexistent local times around daylight-saving changes need an explicit resolution. A server's default time zone is not evidence of the caller's intended time zone.

5. Confirm the value in speech the caller can judge

Read back the resolved value in a form that exposes likely errors:

  • Date: “For the demo visit, I heard June 4, 2027. Is that correct?”
  • Spelling: “I have the surname spelled P, A, R, K. Is that correct?”
  • Code: “The demo code is D, E, M, O, followed by zero, zero, four, eight. Is that correct?”

These are synthetic examples. Identifier read-backs must follow the workflow's approved handling policy; full audible repetition is inappropriate for some sensitive fields.

Avoid “Is all that right?” after a long summary containing several critical values. A targeted question makes the caller's agreement attributable to the field that needs confirmation. If several fields are read back together, record exactly which values that confirmation covered.

Store the confirmed value or its version along with the response evidence. A correction invalidates confirmation of the previous value. A “yes” to the visit date says nothing about the record code, and agreement with an agent's read-back must not replace the original extraction evidence.

Confirmation can reveal a capture error, but it is one gate among several. A caller can confirm a date that is unavailable or a code that fails business validation.

6. Validate fields before handing them to the action layer

Keep these gates independently visible:

  1. Type and syntax: The value parses as the required type and satisfies its format. June 31 fails calendar validation even if every word was recognized correctly.
  2. Business validity: The value satisfies authoritative constraints. A record code may need to exist; a visit date may need to fall within the allowed scheduling window. Re-evaluate constraints that can change before an action.
  3. Confirmation: The required read-back covers the current value, with no unresolved correction.
  4. Identity and authorization, where required: The responsible identity and business systems establish whether this caller may perform the requested operation.

An extracted name or identifier is a claim supplied by the caller. Neither format validation nor a spoken “yes” authenticates that caller. NIST's authentication guidance defines authentication around establishing control of authenticators associated with an identity.

A field can therefore be syntactically valid, unambiguous and confirmed while the business or authorization gate remains unsatisfied. Return that status explicitly rather than flattening every check into valid: true.

The handoff contains the current typed values, their evidence references and the outcomes of the required gates. Tool permissions, execution and recovery belong to the separate LLM tool-calling boundary. An accepted field does not prove that a booking or other business action succeeded.

Measure capture quality by field and failure mode

A readable transcript can still contain one consequential error. Evaluate the final field values and their acceptance decisions, alongside transcript quality. Our voice-agent testing guide places critical-entity capture within the wider testing workflow.

Include cases that isolate different failures:

  • A name is recognized correctly but assigned to the wrong person.
  • One character in a code has weak or missing recognition evidence.
  • Leading zeros disappear during normalization.
  • A date has two plausible interpretations.
  • A source span fails to match its transcript revision.
  • A corrected value still carries confirmation of the previous value.
  • A well-formed value fails an authoritative business constraint.

Use two complementary test sets. Finalized text with labeled spans isolates extraction and normalization. Audio with labeled intended values exposes recognition errors that a clean-text test cannot reproduce.

Report exact normalized-value accuracy separately for names, codes and dates. Define permitted equivalences in advance, such as date formatting or specification-approved code separators. Also measure incorrect acceptance: among fields accepted by the capture policy, how many had the wrong value? Track unnecessary clarification separately so a policy that asks about everything does not appear successful solely because it rarely accepts an uncertain candidate.

Build on a runtime, keep the field contract explicit

We provide a managed production platform for conversational AI products, with a voice runtime, REST APIs, telephony and call inspection. Your application still defines the field schema, normalization rules, confirmation requirements and authoritative business constraints. The illustrative field object here is an application design, not a Dasha API response.

Start a Dasha technical evaluation through our voice-agent documentation with one capture workflow and explicit acceptance rules for its critical fields.

Share

Subscribe

Sign up to our e-mail list to get the best of the Dasha blog sent directly to your inbox.

We use cookies for functional and analytical purposes. Please refer to our Privacy Policy for details.