In this chapter, we built the contact assistant, a chatbot that allows the user to search for contact information using a voice or text conversational interface. We built the contact assistant's conversational interface using Amazon Lex. We learned the development paradigm of Amazon Lex to build a custom AI capability, including concepts such as intents, utterances, prompts, and confirmations. The contact assistant supports two intents, LookupPhoneNumberByName and MakePhoneCallByName. The task fulfillment of these intents is implemented using AWS Lambda. We also designed these two intents to be context aware by using Amazon Lex's session attributes; being context aware reduces the cognitive burden of the user and makes the chatbot smarter.
Amazon Lex is the last of the AWS AI services that we will cover in this book. In the next part of the book, we will cover...