A caller gives three details, pauses, then corrects one. A voice agent has to retain the useful values, repair the changed field, and know whether it has enough information to continue. Slot filling gives developers a way to make those decisions explicit, from the first question through final confirmation.
What is slot filling?
Slot filling is the process of collecting structured values needed to fulfill a request. A slot is a named field, such as service_type, delivery_address, or preferred_date. The agent extracts values already supplied, asks for missing information, and updates the fields as the conversation changes.
For a voice agent, a filled field needs more than a string in memory. The application needs to know whether the value is unambiguous, valid for the business, and confirmed when confirmation is required. The next workflow step depends on those conditions.
Three related concepts have different jobs:
| Concept | Question it answers | Example |
|---|---|---|
| Intent detection | What does the caller want? | Arrange a service appointment |
| Entity extraction | Which values appear in the utterance? | “Oil change,” “Loop location,” “June 17” |
| Slot filling | Which required fields are usable, and what is still missing? | Service and location are known; the date still needs resolution |
A large language model (LLM) can help interpret an answer. Application rules should decide whether that answer satisfies a required field. Fluent conversation alone cannot establish completion.
We provide a managed voice runtime and webhook-backed tool integrations through Dasha. Your team defines the field requirements and business validation. Our voice-agent build guide places that work within the wider production architecture. These collection rules apply whether you use Dasha or an owned stack.
Define what each stage actually requires
Start with the information needed for the next useful step. Requiring every eventual field at the start makes callers complete an entire form before learning whether their request is possible.
An appointment workflow can search for availability before it has everything needed to reserve an appointment. Here, “slot” means a conversational field; an available appointment is a separate business object.
| Field | Required before | Acceptance rule |
|---|---|---|
service_type | Availability search | Resolves to a supported service |
location_id | Availability search | Resolves to one service location |
preferred_date | Availability search | Exact local date within the scheduling window |
time_preference | Search, only if supplied | Interpretable constraint, such as after 3 p.m. |
selected_appointment_id | Reservation request | Matches an eligible appointment returned for the current search |
contact_number | Reservation, if required by the business | Meets the contact policy; a usable number alone does not prove identity |
Give each field a type, allowed sources, validation rules, a clarification question, and a correction policy. Mark optional fields explicitly. An optional note should never block progress. A conditionally required field, such as an address for a mobile service visit, becomes mandatory only on that branch.
Keep business-required fields separate from a tool schema's required properties. In JSON Schema's object rules, required establishes property presence. Other constraints establish the allowed values. Neither establishes that a caller approved a business action.
Track acceptance separately from the captured value
A single filled: true flag hides the reason a field can or cannot be used. A practical record distinguishes:
- Missing: no usable candidate has been supplied.
- Unresolved: a candidate exists, but its meaning or eligibility is undetermined.
- Invalid: the candidate fails a defined rule.
- Valid: the normalized value passes the applicable rules.
Store confirmation separately, including which value or group of values it covered. A valid value may still await a readback. A previously confirmed value may become invalid when a related field changes.
For example, the application could retain this field record:
{ "name": "preferred_date", "raw_value": "June seventeenth, twenty twenty-seven", "value": "2027-06-17", "status": "valid", "revision": 3, "source_turn": 8, "confirmed_revision": null }
This is an application-level example, not a Dasha API payload. The raw value explains the interpretation; the normalized value supports business logic. The revision identifies the accepted version. Confirmation must refer to that version, rather than a permanent Boolean that survives later corrections.
Retain only the evidence needed for the workflow and debugging, under your data-retention and access policies. Full transcripts and sensitive values do not belong in every diagnostic log. Broader persistence and recovery responsibilities sit with the agent runtime.
Collect all supplied fields, then ask one focused question
The agent should process every relevant value in a completed caller turn, including information outside the field it just requested. Partial transcripts remain tentative: “Tuesday, sorry, Thursday” must resolve before a downstream step uses the date.
Caller: I'd like an oil change at your Loop location on June 17, 2027, after three in the afternoon.
Agent: After 3 p.m. at the Loop location. Let me look for an opening.
The caller supplied a service, location, date, and time preference. Asking “Which service do you need?” would discard progress. The agent can advance to availability search once those values meet that stage's rules.
When a value is missing or ambiguous, ask the smallest question that resolves the blocker:
| Problem | Focused question |
|---|---|
| Two locations match “downtown” | “Do you mean the Loop or River North location?” |
| “The 17th” lacks a month | “Which month is that?” |
| “At three” could mean morning or afternoon | “Do you mean 3 p.m.?” |
| A reference contains an unclear character | “Was the character after B a five or an S?” |
Prefer one question at a time for speech, while accepting multiple answers at once. Choose the next question from unresolved requirements and dependencies, rather than a fixed script position.
Distinguish a tentative preference from a selection. “Maybe Thursday” can remain a candidate; “Either location is fine” can become an explicit no-preference constraint if the business supports it. Neither needs an invented exact value.
Validate meaning, format, and business eligibility
Validation has three layers:
- Interpretation: Does the value have one intended meaning? “Next Friday” needs a date-resolution policy and the relevant local date. An unclear interpretation needs clarification.
- Format and domain: Is it a real date, an allowed service, or a reference in the expected format? Normalize synonyms to stable values without changing the caller's request.
- Business eligibility: Does that location provide the service? Is the date inside the booking window? Does the selected appointment belong to the current offer set?
External records decide changing business facts. A model should not infer availability from a familiar-looking time or turn a plausible customer reference into a matched account.
Keep uncertainty separate from invalidity. “I couldn't tell whether you said fifteen or fifty” needs a recognition repair. “That service is unavailable at this location” needs a different choice. “The scheduling service isn't responding” is a system failure and should not cause the caller's valid date to be erased.
Dates and times deserve explicit context. Resolve a relative date using the applicable timezone and reference date. Preserve the original phrase for traceability. For an in-person appointment, use the location's timezone in the spoken offer. A caller's current location does not automatically determine the appointment's timezone.
Speech-recognition confidence and a model's self-reported confidence are signals for clarification, not substitutes for these rules. A clearly heard value can still be wrong for the business.
Use confirmation in proportion to the consequence
Confirmation has two scopes:
- Field confirmation establishes that the agent understood a value: “Did you say apartment fifteen?”
- Action confirmation establishes that the caller wants the proposed action: “Shall I reserve Thursday, June 17, at 3:30 p.m. Chicago time at the Loop location?”
For a low-risk preference, an implicit readback can acknowledge the value while continuing: “An oil change at the Loop location. Which day works?” Explicit yes-or-no confirmation is more appropriate for ambiguous identifiers and consequential actions. Repeating every field as a separate question adds turns without necessarily resolving more risk.
Bind an action confirmation to the exact proposal: the relevant fields, their revisions, and any business resource version or expiry. Track its response as pending, accepted, or rejected. A “yes” is meaningful only in the context of the pending question. It cannot become reusable permission for the rest of the call.
Process the entire reply before accepting it. “Yes, but make it River North” is a correction to the proposal. “Yes, that's my number” confirms the number, not an appointment. If the caller interrupts the readback before its essential details are delivered, the application should not record approval of the incomplete proposal.
Repair corrections without restarting the conversation
An explicit correction replaces the affected value. It does not require collecting every field again.
Agent: Shall I reserve June 17 at 3:30 p.m. at the Loop location?
Caller: Actually, River North. Same day.
Agent: River North on June 17. I'll look for an opening there.
The service and date survive. The location changes. The old appointment selection and its confirmation no longer apply because they depended on the Loop search.
Define those dependencies in application logic:
| Changed value | What needs to be reopened |
|---|---|
| Service | Location eligibility, availability, appointment selection, action confirmation |
| Location | Local scheduling context, availability, appointment selection, action confirmation |
| Preferred date or time constraint | Availability, appointment selection, action confirmation |
| Contact number | Number validation and any confirmation or proposal that included it |
Preserve independent valid fields. Mark dependent results stale and re-evaluate them. A delayed result from the old search must not populate the corrected request. Correlate each result with the input revisions that produced it.
Also distinguish correction from rejection. “No” after a multi-field readback rejects the proposal but may not identify the wrong field. “Which detail should I change?” is safer than choosing one or repeating the same confirmation. Keep that proposal rejected while the intended change is unresolved. A resolved correction creates a revised proposal that needs the applicable validation and confirmation. A caller who says “never mind” needs a cancellation or exit path, rather than another missing-field question.
Make advancement a decision in application code
The conversation should advance only when the current stage's requirements are satisfied. The model can propose extracted values and questions; the application owns the gate.
This provider-neutral pseudocode captures the collection decision:
after a completed caller turn: interpret supplied values, corrections, and confirmation scope if caller cancelled: return EXIT_COLLECTION record acceptance or rejection against the referenced proposal apply resolved corrections as a revised proposal with pending confirmation increment affected field revisions invalidate dependent results and affected confirmations normalize and validate the current candidates if current proposal is rejected: if the applicable repair or conversation budget is exhausted: return FALLBACK return CLARIFY_REJECTION if any required field is missing, invalid, or unresolved: if the applicable repair or conversation budget is exhausted: return FALLBACK return ASK_FOR_OR_REPAIR_FIELD if confirmation is required and (acceptance is missing or stale): if the applicable repair or conversation budget is exhausted: return FALLBACK return ASK_FOR_CONFIRMATION return READY_FOR_NEXT_STAGE
READY_FOR_NEXT_STAGE has a narrow meaning. With valid search inputs, it permits the workflow to request availability. With a selected appointment and current confirmation, it permits a reservation request to reach the execution boundary. It does not prove authorization or a successful booking.
The execution layer still enforces permissions, current business preconditions, and safe handling of failures. Our LLM tool-calling guide covers that boundary, including duplicate prevention and uncertain outcomes.
Give repair a bounded exit
Use separate counters for no input, unrecognized input, and business-invalid values. A caller asking “What services do you offer?” has asked a question; that turn is not automatically a failed attempt to supply a date.
The first repair can narrow the question. A later repair can change the input method, such as spelling a reference or using keypad input where supported. If another clarification or confirmation question is needed after the applicable repair or conversation budget ends, offer an available alternative channel or human handoff. If neither exists, end with an explicit incomplete outcome. Never insert a placeholder just to pass the gate.
An exhausted question budget prevents another elicitation turn. A final allowed response that supplies valid fields and any required current acceptance can still reach readiness. The next stage remains subject to its own execution deadlines and permissions.
Failure cases that reveal a broken collection policy
Happy-path field accuracy misses failures across turns. A useful regression set includes the caller's utterance and the expected state transition, as well as the next spoken response.
| Conversation case | Required decision |
|---|---|
| Caller supplies all required search fields at once | Retain them and skip redundant questions |
| Caller supplies an optional field early | Retain it without making it mandatory |
| Caller corrects one of two dates | Update the intended date; clarify if the target is ambiguous |
| Caller says “yes, but a different location” | Apply the correction; withhold action approval |
| Caller says “no” to a multi-field proposal without a correction | Keep the proposal rejected; clarify what should change instead of repeating confirmation |
| Caller says “no, never mind” | Exit collection without another confirmation prompt |
| Acceptance is missing or stale when the question budget ends | Use fallback instead of asking for confirmation again |
| The final allowed response completes all requirements | Reach readiness without another question; enforce the next stage's execution rules separately |
| Caller interrupts a confirmation | Listen and resolve the interruption before advancement |
| Old availability arrives after a date change | Leave the current selection unfilled |
| Validation service is unavailable | Preserve captured values; treat eligibility as unresolved |
| Caller refuses a required field | Explain the limit or use a permitted alternative; do not fabricate it |
Track task completion alongside redundant-question rate, repair turns, stale-confirmation acceptance, and premature advancement. A short call that proceeds with the wrong date is a failed collection workflow.
Put the field policy into a real voice workflow
Slot filling works when values, validation, confirmation, and progression remain distinct. The agent can accept information in any order while the application keeps a precise account of what is usable now.
We connect voice conversations to your application through schema-defined tools and webhooks. The field policy, dependency rules, and advancement gate remain your business logic. Start with our Dasha integration guide to connect a narrow workflow with explicit required fields and confirmation rules.



