liveBook · Manning

Fallback

As explained in Natural Language Processing in Action, Second Edition

A fallback response is a predefined chatbot reply provided when no recognized intent meets the required confidence level.

A fallback response is what a chatbot says when it cannot confidently handle a user’s message. Rather than pretending to understand, it acknowledges the gap and gives the user a way to continue. section 12.2.1 section 12.1.4

An intent recognizer scores the intents a bot has been programmed to recognize. If every score falls below a chosen confidence threshold, the bot can treat the message as unrecognized and use its fallback response. In a conversation diagram, the special `__default__` label specifies the fallback intent for each bot message that requires a user reply. section 12.2.1 section 12.1.3

A useful fallback does more than say “I don’t understand.” It can:

Fallbacks matter for generative chatbots, too. If a generated claim is absent from the bot’s knowledge base, it may be off topic or incorrect; relying on a fallback is safer than presenting it as fact. Monitor when fallbacks occur, much as you would log application errors and warnings, to find gaps in the conversation design and mistakes in generated answers. section 12.4

How Natural Language Processing in Action, Second Edition covers it

How deep it goes
Explains a confidence-threshold rule, conversation-diagram label, and recovery choices without implementing an intent recognizer.
Examples
Uses a math-tutor conversation diagram and recovery options such as suggested functions or a human representative.
What you can do after
Operate/configure it by setting a low-confidence fallback path and giving users a clear next step.
How it connects
Connects fallback responses to intent recognition, conversation design, knowledge bases, and chatbot monitoring.

Also explained in

Compare how 15 books explain fallback →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Natural Language Processing in Action, Second Edition. The section links point to the parts of the book it draws on.