Understand the stages

The system receives audio, detects the end of a turn, transcribes speech, decides what information or action is needed, generates a response and plays it. Retrieval and business-system calls may happen between those stages. Each can fail or return late.

Use a state model that identifies the current conversation and turn. Cancel obsolete work and prevent late replies from being spoken after the user has moved on. The text transcript and the audio state should remain consistent.

Separate understanding from authority

A model may interpret a request, but authentication and business rules decide whether it may be fulfilled. Confirm consequential actions using the application’s established process. A spoken “yes” must be associated with the right pending action and account.

Keep read-only retrieval distinct from write operations. Use idempotent business APIs where possible so a retry does not duplicate a booking, payment or record. Show or repeat the relevant details before committing an action.

Design for interruption and uncertainty

Users correct themselves, change their minds and speak over the system. Stop playback promptly and decide whether to cancel, amend or clarify the pending request. Do not let a partial transcript trigger an irreversible action.

When the system cannot understand, ask a concise clarification or offer a human route. Set limits on repeated failures so the user is not trapped in a loop. Keep a usable text or touch path where the product permits it.

Test the full journey

Use realistic noise, accents, silence, poor connectivity and interrupted sessions. Test the authenticated and unauthenticated paths, a failed tool call and a request that needs handover. Measure successful task completion as well as response time.

The deployment plan should name the owners of recognition, model serving, telephony, business APIs and customer escalation. A provider outage is easier to handle when the application already has a defined fallback and clear responsibilities.