Chatbot Says "Something Went Wrong" and Nothing Else: Generic Error Messages

IssueErrors and RecoveryFrequencyVery CommonCategoryHuman Machine InterfacePublishedView source on GitHub ↗

Frequency: Very Common

Issue: When the assistant fails, it shows “Something went wrong” or “An error occurred”: no cause the user can act on, no word on whether their work is saved, and no next step.

One line: It broke, and the message says nothing the user can use.

ChannelWritten for chat interfaces and assistants (web, app, in-product).
StakesLow to high. A lost long conversation, an unsaved form, or a half-done transaction raises the stakes.
Who is affectedAnyone who hits a failure, which is every user eventually
FrequencyVery common. A usability benchmark found 98% of the e-commerce sites it tested used generic messages for validation errors; I found no count for chat products.
Pattern IDgeneric-error-messages
FamilyErrors and recovery
GoalWhen something goes wrong, the agent says what happened, owns it, fixes it, and does not repeat it.
Primary metricErrors shown with a cause and action. Target: 100% (tune).
MaturityTests written (see the test file; not yet run)
Will a better model fix this?No. Error text comes from the product and its failure handling, not from model quality. (Our judgment, not tested.)
Also searched aserror occurred try again · network error in chat · chat disappeared after error · unhelpful error message · retry loop

1. In plain words

Errors happen: a timeout, a model outage, a tool failure, a message too long. The failure that hurts is the message. “Something went wrong” does not say whether to retry, wait, shorten the message, or give up, and it does not say whether the conversation is safe.

2. What it looks like

Without the fix

User: (sends a long message in a long chat)
Bot:  Something went wrong. Please try again.
User: (retries three times; the same message appears; the chat then vanishes on reload)

With the fix

Bot:  I couldn't send that reply: the service timed out. Your message and this chat are saved.
      Try again in a minute, or send it in two shorter parts. If it keeps failing, contact support and quote code A7K2.
      [Retry] [Copy my message]

The fixed message says what happened, what is safe, what to do, and gives a reference for support.

3. Why it happens

These are our reading of the pattern.

  • One catch-all handler. Every failure maps to one string, so the cause is lost.
  • The cause is technical. Timeouts, rate limits, and tool errors are written for engineers, so teams hide them behind a generic line.
  • No state about what was saved. The interface does not know whether the user’s message or the chat survived, so it cannot say.

4. Why it matters

FindingSourceCaveat
NN/g says error messages should be plainspoken and precise: “Generic messages such as An error occurred lack context”, and merely stating the problem is not enough, so offer constructive advice and preserve the user’s input.Neusesser and Sunwall, Error-Message Guidelines, NN/g, 2023. Opened and read.Guidance for interfaces generally, not chat in particular.
In large-scale checkout testing, in the worst cases participants could not resolve the issue “due solely to vague or generic error messages” and abandoned the process; 98% of the sites in the benchmark did not use messages targeted at the exact problem.Baymard Institute, Improve Validation Errors with Adaptive Messages, Dec. 2023. Opened; the first part of the article read.Practitioner research on checkout forms, not chat. Observed sessions, not a controlled comparison.
A guideline from the German UPA lists heuristics for error messages: constructive, comprehensible, concise, and empathic.German UPA, Guideline for Error Messages. Opened; the contents and foreword read.A design guide, not an experiment.
A user on OpenAI’s developer forum reported in August 2024 that after sending a message in a long chat they received errors (“network error” on PC; “hmm… something seems to have gone wrong” with a retry button on iPhone), retries did nothing, and the conversation vanished after the error.OpenAI Developer Community thread. Opened and read.One user’s report; the thread I read has no OpenAI reply.

I found no controlled study that compares generic with specific error messages in chat products. A search turned up a 2000 conference paper on web error pages that I could not open (a bot check blocked it), so I do not use it.

Public incident. No public incident found for generic error messages as such. My searches found outage coverage and forum reports, which I did not treat as a sourced, dated incident about the message text.

5. The fix

The principle: Every error says what happened, what is safe, and what to do next.

Do this

  1. Say what happened in plain words. “The reply timed out”, “Your message is too long”, “The order system isn’t responding”.
  2. Say what is saved. State whether the user’s message and the conversation survived.
  3. Give the next step. Retry now, wait, shorten the message, use another route, or contact a person, whichever fits the cause.
  4. Preserve the input. Keep the user’s text in the box and offer to copy it (NN/g: preserve the user’s input).
  5. Match the message to the cause. Separate at least: temporary outage, too long, rate limit, permission, and tool failure.
  6. Add a reference code for support. Show a short code the user can quote; keep technical detail behind it.
  7. Don’t blame the user, and don’t joke. Neutral tone; no “invalid” or “illegal” for ordinary input.
  8. Offer a person when retries fail. After a repeat failure, offer a route to a person (cold transfer).

Reference design: error message parts

PartContent
What“I couldn’t send that reply: [cause in plain words].”
Safe“Your message and this chat are saved.” (only if true)
Next“Try again in a minute, or [specific alternative].”
Help“Quote code [A7K2] to support” or a person route
When something fails, tell the user what happened in plain words, whether their message and conversation are saved, and what to do next. Keep their message in the input box.
Use a different message for outage, too-long input, rate limit, permission, and tool failure.
Never show only "Something went wrong". After a repeated failure, offer a person and a reference code.

Moves (see conversation moves; list only the moves that apply, most preferred first)

MoveWhen, in this pattern
Admit uncertainty and show how to checkThe cause is unknown or unclassified: say so, say what is saved only if the product has confirmed it, and give one next step.
Offer choices: 2-4 options plus “Something else”, free text openAfter an error with more than one reasonable next step: “Retry”, “Copy my message”, “Talk to a person”, “Something else”. Do not offer them when only one next step fits the cause (for example, a message over the length limit: say to shorten it), or when the options would replace the plain-words cause.
Hand off to a personAfter two failures of the same kind. Do not hand off if the user asked to stay with the bot.

Don’t over-correct. Do not show stack traces or raw error codes as the message. Do not claim “your work is saved” unless the product has confirmed it. Do not write a paragraph; a short, specific message beats a long one.

Hand-off rule. After two failures of the same kind, offer a person and pass the reference code and the user’s message (talk to a human ignored or looped).

Framework used: none yet.

6. How to test it (short version)

The full test file has 12 scenarios. Results: not yet run.

#ScenarioPass if
1A timeoutCause, saved state, and next step
2A message over the length limitSays it is too long and offers a split
3A failed saveDoes not claim it is saved
4Two failures in a rowOffers a person and a reference code
5A reload after an errorThe user’s text is not lost

7. Metrics: how to spot it in production

Targets are starting points to tune on your own data, unless a source is given.

MetricTargetHow to measureAlert at
Errors shown with a cause and action (primary)100%Log every error render with its cause code and the template usedBelow 95%
Generic fallback usedUnder 5% of errorsCount renders of the catch-all templateOver 10%
Retry success after an errorTrack; set from baselineRetries that succeed within 2 minutesFalling
Conversations lost after an error0Sessions where messages vanish after an error eventAny
Error-to-abandon rateTrack; set from baselineSessions ending within 1 turn of an errorRising two weeks in a row
False “saved” claims (counter-metric)0“Saved” messages with no confirmed writeAny

Detection signals (proposed, not yet calibrated)

Signals in a conversation event log that suggest this failure. Treat them as proposed until checked against human-labeled conversations.

SignalWhere it showsCounter-signal (what it could be instead)
Error render uses the catch-all templateError event with template name and cause code missing or “generic”A rare error with no known cause code yet
User ends the session within 1 turn of an errorSession end event after an error eventUser had already finished their task
User repeats the same request right after an errorSame intent in the next user turnA deliberate retry that succeeds
Earlier messages missing after an errorMessage count drops between turnsA planned session reset the user was told about

Starter rule: every error shown to a user names what failed, whether their work was saved, and one next step.

Guide spec (fixed format for later code; derived from this page, no invented thresholds)

pattern_id: generic-error-messages
runs: pre_send
reads: [error_event.cause_code, error_event.template, session.saved_state]
trigger: an error message is about to be shown
moves: [admit_uncertainty, offer_choices, hand_off]
choices: ["Retry", "Copy my message", "Talk to a person", "Something else"]
on_miss: rewrite
metric: errors shown with a cause and action
counter_metric: false "saved" claims
status: proposed

9. Common questions

What should a chatbot say when it fails?

What happened in plain words, whether the user’s message is saved, and what to do next.

Why does ChatGPT say “something went wrong”?

It is a catch-all message. I found no OpenAI explanation of its causes in the sources I opened.

Should error messages include an error code?

Show a short reference code for support, but keep the message itself in plain words (NN/g says to show codes for technical diagnosis only).

Is “please try again” enough?

Not by itself. It does not say whether trying again will help or whether the work is safe.


Technical section

T1. Solution architecture

failure event -> classifier (outage | too long | rate limit | permission | tool | unknown)
              -> state check (message saved? chat saved?) -> template (what, safe, next, code)
              -> render + log (cause code, template)

T2. Guardrails

RuleEnforced whereHow checked
No render of the catch-all without a cause codeError rendererLog scan
“Saved” only after a confirmed writePersistence layerTest 3
User input preserved on errorClientTest 5

T3. Evals

  • Dataset: 100 injected failures (timeouts, size limits, rate limits, tool failures, permission denials) with expected cause categories.
  • Judge rubric: does the message name the cause class, state what is saved correctly, and give a next step?
  • Metrics and starting thresholds: cause and action 100%; false “saved” 0. Starting points to tune.
  • Release gate: block a deploy if a new failure path renders the catch-all.

T4. Alerts

MetricWarnPageFirst response
Catch-all rendersOver 10% of errorsOver 25%Find the unclassified failure path

T5. Trade-offs

  • Specific messages cost upkeep as failure types change; test them (the German UPA guide notes this).
  • A reference code helps support but should not replace the message.

Deep dive

Related Guide

How to Detect AI Agent Failures in Production

Related Patterns