Test Tool-Failure Fallbacks Before a Voice Assistant Goes Live
Test unavailable services, delayed results and uncertain writes so a voice assistant explains failures honestly and avoids duplicate or invented actions.
Table of Contents▼
Voice assistant tool failure testing answers a practical question: what does the caller hear when the system the assistant depends on cannot give a reliable result? A normal demonstration rarely answers it because the lookup or action succeeds immediately. Real operations need a useful response when it does not.
A tool might retrieve information, save a request or change something outside the conversation. Those operations have different failure consequences. A failed information lookup should not become a guessed answer. An uncertain write should not automatically be repeated as though nothing happened.
Define the failure states separately
Prepare at least four cases: an explicit rejection, a temporary unavailability response, a slow result and an unknown outcome after the connection ends. Keep an empty successful result separate from a failed request. “No matching record” and “I could not search” mean different things to the caller.
LiveKit supports external function tools, but the application must decide what their results mean to the workflow. Its tool-use documentation describes the mechanism; it does not supply your business's fallback policy.
Write that policy before testing. Decide which operations may retry, which require status verification and which should stop for human review. Make the policy specific enough that two reviewers reach the same conclusion.
Use controlled failures first
Start with a test environment or mocked dependency so you can reproduce the same condition without disrupting customers. LiveKit's unit testing guide includes ways to test tools and their outputs. A simulated failure proves conversation behaviour under that condition; it does not prove the production provider will return an identical error.
Then verify the relevant production contract through appropriately bounded acceptance. Keep the two evidence types labelled. Do not create real customer actions simply to manufacture an error path.
A hypothetical example is an equipment-status lookup that times out. The assistant should say it could not retrieve the current status, avoid inventing a completion date and offer a supported next step. A saved follow-up request is only a valid fallback if that separate action actually succeeds.
Inspect what was said and what happened
For each case, record the tool input, observed result, caller-facing response and final external state where available. Check whether the assistant claimed success before the result arrived. Also check whether a later result causes it to speak after the conversation has moved on.
If a caller changes a detail while the tool is waiting, the old result may no longer answer the current request. The assistant needs a truthful continuation, not an enthusiastic confirmation based on obsolete information.
Test repeated caller requests too. “Did that work?” should prompt a status explanation or verification. It should not necessarily trigger another write. Keep the logical business action distinct from repeated questions about it.
Also test the return to normal service. A fallback should not permanently trap later requests in an error state after the dependency recovers. Keep that recovery case separate from the original failure verdict.
Make failure language useful
Good fallback speech identifies the practical limitation and the next available step. “I couldn't retrieve that information just now” is more accurate than “There are no records.” “I can't confirm the request completed yet” is more accurate than either an unsupported success or a definite failure when the outcome is unknown.
Avoid reading raw provider errors aloud. The operator may need an error code; the caller usually needs clarity and a safe way forward. Capture detailed evidence privately in the appropriate operational record.
Set a release decision
Mark any case that falsely claims completion, repeats a consequential action or loses a required correction as a release blocker for that workflow. Less severe problems, such as awkward wording, can receive a separate improvement priority.
Burki's production-safe learning guide provides a useful model for reviewed changes. Add failure cases to the voice testing process and rerun them when permissions, integrations or prompts change. A dependable assistant earns trust by stating the limits of its knowledge precisely when a dependency fails.
Ready to try Burki?
Create an assistant and check your available browser practice allowance.
Start Free TrialTrial eligibility and available practice are shown in your workspace.