NLU

NLU is an acronym for natural-language understanding. It is a part of natural-language processing (NLP)Closed Also called NLP, this process understands human speech or text and responds with human-like language. that deals specifically with machine reading comprehension. It is the part of Bot Builder that allows your botClosed A software application that handles customer interactions in place of a live human agent. to understand what your consumers are saying in conversations so it can provide the most helpful response.

The NLU section of Bot Builder allows you to create and manage the configurations that build your bot's NLU capabilities. These are entities and intents. These concepts build your training data and make your bot smarter.

Best Practices for NLU Training Data

  • Always opt for quality over quantity. It's okay to start with a small data set and build it over time as you gather more high-quality examples.
  • Use examples from real-world conversations. This ensures that the data you use is realistic. It comes from things real contacts have said.
  • Don't use tools that auto-generate data and claim to train your botClosed A software application that handles customer interactions in place of a live human agent. faster. They often produce examples that don't reflect what contacts really say. They also can result in a bot that loses its ability to generalize. Over time, the bot reaches a point where it only recognizes phrases it's seen before.
  • Do not use the same training data for more than one intent. If you re-used training data, the bot won't be able to reliably determine the intent in live interactions with contacts.
  • Remain flexible and willing to adjust intents and stories over time. As you review conversation data, you may discover that what you thought was two separate intents are really shades of the same, more general intent. Or you may find that an intent is too broad, and you must break it down into more distinct intents.
  • Add new training examples only if they will help.
    • Do not add new training examples that are very similar to existing examples. If the bot correctly predicts the intent with a high confidence for an utterance, it doesn't help the bot to add additional similar examples.
    • Do add more training examples of utterances the bot has previously predicted incorrectly or with low confidence.