Building an Integrated Bot Experience
Szymon Rozga · Apress eBooks · 2018
So far, we have built a pretty good LUIS app that has been evolving over time. We also utilized the Bot Builder dialog engine that employs our natural language models, extracts the relevant intents and entities from user utterances, and contains conditional logic around many of the different permutations of inputs coming into the bot. But our code does not really do anything. How do we make it do something useful and real? Throughout the book, we’ve been exploring the idea of a calendar bot. This means we need to integrate with some kind of calendar API. For the purposes of this book, we’re going to integrate with Google’s Calendar API. After that is set up, we will explore how to integrate those calls into the bot flow. In this day and age of OAuth, we are not going to spend time collecting a user’s name and password in our chat window. That would not be secure. Instead, we will implement a three-legged OAuth flow using the Google OAuth libraries. We’ll then go ahead and make the changes in our code to support communication with the Google Calendar API. At the end of the chapter, we’ll end up with a bot that we can use to create appointments and view entries in our calendar! These keywords were added by machine and not by the authors. This process is experimental and the keywords may be updated as the learning algorithm improves.