In chapter 1, we learned about what AI assistants are and why people use them, and saw some examples of AI assistants that we encounter every day. In this chapter, you will learn how they work, and you will build an assistant from the ground up. We will work through a case study for a retail company looking to build its first conversational AI.
The first thing assistants need to do is recognize what a user’s utterances mean. A conversation starts with a user stating an intent and any related entities. The intent will help the assistant understand what to do next, such as respond with an answer or start a new dialogue flow. First, we will see in detail how the assistant breaks a user utterance into intents and entities.
The simplest response is for the assistant to respond to each intent with a single answer response. We will configure an assistant to recognize a variety of intents and to give a unique response for each. We will further explore how to provide additional information in a response based on the entities detected in the user’s utterance.