Book Image

Hands-On Chatbot Development with Alexa Skills and Amazon Lex

By : Sam Williams
Book Image

Hands-On Chatbot Development with Alexa Skills and Amazon Lex

By: Sam Williams

Overview of this book

Have you ever wondered how Alexa apps are made, how voice-enabled technologies work, or how chatbots function? And why tech giants such as Amazon and Google are investing in voice technologies? A better question is: why should I start developing on these platforms? Hands-On Chatbot Development with Alexa Skills and Amazon Lex covers all features of the Alexa Skills kit with real-world examples that help you develop skills to integrate Echo and chatbots into Facebook, Slack, and Twilio with the Amazon Lex platform. The book starts with teaching you how to set up your local environment and AWS CLI so that you can automate the process of uploading AWS Lambda from your local machine. You will then learn to develop Alexa Skills and Lex chatbots using Lambda functions to control functionality. Once you’ve come to grips with this, you will learn to create increasingly complex chatbots, integrate Amazon S3, and change the way Alexa talks to the user. In the concluding chapters, we shift our focus to Amazon Lex and messaging chatbots. We will explore Alexa, learn about DynamoDB databases, and add cards to user conversations. By the end of this book, you will have explored a full set of technologies that will enable you to create your own voice and messaging chatbots using Amazon.
Table of Contents (13 chapters)

Connecting a Lex Bot to DynamoDB

After reading the previous chapter, we know how to create a Lex chatbot. Now we can start building a chatbot that takes the user through a more complex flow. Designing and building larger chatbots is closer to what you are likely to be doing, and we'll look at the best ways to approach the design and setup.

We'll be using our chatbot to get data from S3 as well as getting and writing data to DynamoDB tables. This allows us to persist information about the users' choices and progress through the flow.

The following topics will be covered in this chapter:

  • Creating flow diagrams for a larger, more complex chatbot
  • Creating a Lex chatbot to cover all of the intents and flows
  • Retrieving data from an S3 bucket and performing logic upon it
  • Creating a Dynamo table and using it to store and retrieve information