The best error message leaves the user with a useful next move.

AI features can fail in several ways: the service may be unavailable, the request may lack information, or a completed answer may be unsuitable. Treating every case as “Something went wrong” makes users repeat work without knowing what to change.

FAILURE TYPES

Distinguish a failed request from a poor result.

A network interruption calls for a different response from an unsupported file. An uncertain answer is different again. Map the states the product can recognize and avoid presenting a technical failure as if the user supplied a bad request.

Also design for cases the system cannot reliably diagnose. Use honest language about what is known. An incorrect explanation of the failure can be more frustrating than a brief message that admits the limit and provides another route.

MESSAGE

State what happened and what can happen next.

Use plain language tied to the task. Explain whether the user’s work is saved, whether any action was completed, and what the available controls will do. Avoid internal model names, opaque codes, or cheerful language that trivializes lost effort.

Keep instructions specific. If a document is unsupported, name supported formats. If the context is incomplete, identify the missing information when the system can do so reliably. Do not ask users to “try again” when nothing has changed.

CONTINUITY

Keep the work the user has already done.

Preserve the prompt, attachments, edits, and accepted portions of a result wherever appropriate. Let people revise the part that caused difficulty instead of rebuilding the whole request. Make cancellation and retry behavior explicit.

For actions that change records or send information, establish whether the previous attempt completed before offering another attempt. Repeating an uncertain action can create duplicates. A status check or confirmation can be more useful than an immediate retry.

ALTERNATIVES

Offer an escape from the failed interaction.

A recovery path might be a simpler input, a manual editor, a source search, or a handoff to another channel. Match the alternative to the underlying goal rather than sending every user to a generic support page.

Google PAIR’s Errors + Graceful Failure chapter treats failure as part of the product experience. Plan alternative routes before launch so a failed AI step does not become a dead end for the task.

VALIDATION

Test the message in the moment of failure.

Include failures in usability sessions and prototypes. Ask users what they think happened, what work remains, and which action they would take. Watch whether the message helps them recover without a moderator explaining the interface.

Review repeated retries, abandoned tasks, duplicate actions, and requests for help after release. These signals need interpretation in context. A low complaint count does not prove the recovery flow works; users may simply have left.

WORKED EXAMPLE

An unavailable summary should not erase the document.

Imagine a report summary timing out. A helpful state preserves the uploaded file and request, states that no summary was created, and offers Retry or Read document.

If only part of the report was processed, identify that boundary. Do not present a partial summary as complete or imply that another retry will necessarily succeed.

CHECKLIST

Before you put this into practice.

  • Separate service failures, input problems, and unsuitable outputs.
  • Explain whether work was saved or an action completed.
  • Provide a specific next step when possible.
  • Preserve useful input and accepted edits.
  • Avoid duplicate actions when retrying.
  • Evaluate recovery with realistic failure scenarios.

Further reading

Google PAIR: Errors + Graceful Failure ↗