Table Of ContentHands-On Chatbots and
Conversational UI Development
Build chatbots and voice user interfaces with Chatfuel,
Dialogflow, Microsoft Bot Framework, Twilio, and Alexa Skills
Srini Janarthanam
BIRMINGHAM - MUMBAI
Hands-On Chatbots and Conversational UI
Development
Copyright © 2017 Packt Publishing
All rights reserved. No part of this book may be reproduced, stored in a retrieval system, or
transmitted in any form or by any means, without the prior written permission of the
publisher, except in the case of brief quotations embedded in critical articles or reviews.
Every effort has been made in the preparation of this book to ensure the accuracy of the
information presented. However, the information contained in this book is sold without
warranty, either express or implied. Neither the author, nor Packt Publishing, and its
dealers and distributors will be held liable for any damages caused or alleged to be caused
directly or indirectly by this book.
Packt Publishing has endeavored to provide trademark information about all of the
companies and products mentioned in this book by the appropriate use of capitals.
However, Packt Publishing cannot guarantee the accuracy of this information.
First published: December 2017
Production reference: 1261217
Published by Packt Publishing Ltd.
Livery Place
35 Livery Street
Birmingham
B3 2PB, UK.
ISBN 978-1-78829-466-9
www.packtpub.com
Credits
Author Copy Editor
Srini Janarthanam Safis Editing
Reviewer Project Coordinator
Vamsi Venigalla Sheejal Shah
Commissioning Editor Proofreader
Kunal Chaudhari Safis Editing
Acquisition Editor Indexer
Siddharth Mandal Pratik Shirodkar
Content Development Editor Production Coordinator
Arun Nadar Melwyn D'sa
Technical Editor
Prajakta Mhatre
About the Author
Srini Janarthanam is an expert in conversational systems and has been working in the field
for over 15 years. He has led and worked on several projects, building conversational
systems for a variety of domains including tourism, healthcare, and education. He obtained
doctorate in Philosophy (PhD) from the University of Edinburgh for his work in Artificial
Intelligence and Natural Language Processing.
He is currently the co-founder and director of Chatomate, a UK brand building tailored
chatbots, AI, and automation solutions for businesses. Previously, he worked as a research
associate at Heriot-Watt University and the University of Edinburgh. He has published over
50 articles and papers in online chatbot magazines, journals, and international research
conferences.
I am eternally grateful to everyone who supported me on this incredible journey. I thank
my wife, Jayanthi, my son, Advaith, my parents, and everyone in the family for their
encouragement, support, and help in this project. I want to thank my friends, Priyanka,
Anup, Thiru, Suresh, Jaya, Nara, Diwakar, and many others, for encouraging me to take
up this project and for keeping an eye on its progress throughout.
I want to thank the reviewers of the book for lending a hand to shape the book to make it
what it is now. I also want to thank the entire team at Packt Publishing who have an
enormous share in getting this book to you.
Finally, I want to thank God for giving me an opportunity to discover my strengths and
for his grace and support to accomplish writing this book.
About the Reviewer
Vamsi Venigalla is a technology leader with over 12 years of experience in building
technology organizations, strategic planning, rolling out multiple transformational
platforms/products, IT program and project management, strategy and transformation
(business, people, process, and technology), and delivering results for various business
functions across mobile, sourcing, financial systems, HR, retail and supply chain in the food
production and manufacturing domains.
Vamsi graduated with a master's degree in computer science from North Carolina State
University, NC.
www.PacktPub.com
For support files and downloads related to your book, please visit www.PacktPub.com. Did
you know that Packt offers eBook versions of every book published, with PDF and ePub
files available? You can upgrade to the eBook version at www.PacktPub.com and as a print
book customer, you are entitled to a discount on the eBook copy. Get in touch with us at
[email protected] for more details.
At www.PacktPub.com, you can also read a collection of free technical articles, sign up for a
range of free newsletters and receive exclusive discounts and offers on Packt books and
eBooks.
https://www.packtpub.com/mapt
Get the most in-demand software skills with Mapt. Mapt gives you full access to all Packt
books and video courses, as well as industry-leading tools to help you plan your personal
development and advance your career.
Why subscribe?
Fully searchable across every book published by Packt
Copy and paste, print, and bookmark content
On demand and accessible via a web browser
Customer Feedback
Thanks for purchasing this Packt book. At Packt, quality is at the heart of our editorial
process. To help us improve, please leave us an honest review on this book's Amazon page
at https://www.amazon.com/dp/1788294661.
If you'd like to join our team of regular reviewers, you can e-mail us
at [email protected]. We award our regular reviewers with free eBooks
and videos in exchange for their valuable feedback. Help us be relentless in improving our
products!
Table of Contents
Preface
1
Chapter 1: Introduction
7
Conversational user interfaces 8
A brief history of chatbots 9
Recent developments 10
Architecture of a conversational user interface 12
Classification 13
Applications 14
Developer's toolkit 15
Mockup tools 15
Channels 16
Chatbot development tools 16
Analytics 17
Natural Language understanding 17
Directory services 18
Monetization 18
Benefits 18
Chatbots are here to stay 19
Lets get started! 21
References 21
Chapter 2: Tour Guide for Your City
22
Getting started 23
Building your first bot 25
Basic building blocks 28
Blocks 29
Cards 29
Buttons 29
Plugins 29
Attributes 30
Default blocks 30
Next steps 31
More cards 35
Image 35