Hands-On Chatbots and Conversational UI Development

Author: Phil D Hall   Vamsi Venigalla   Srini Janarthanam  

Publisher: Packt Publishing‎

Publication year: 2017

E-ISBN: 9781788298339

P-ISBN(Paperback): 89543100040530

Subject: TP311.5 Software Engineering

Language: ENG

Access to resources Favorite

Disclaimer: Any content in publications that violate the sovereignty, the constitution or regulations of the PRC is not accepted or approved by CNPIEC.

Hands-On Chatbots and Conversational UI Development

Description

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.

Chapter

Introduction

Conversational user interfaces

A brief history of chatbots

Recent developments

Architecture of a conversational user interface

Classification

Applications

Developer's toolkit

Mockup tools

Channels

Chatbot development tools

Analytics

Natural Language understanding

Directory services

Monetization

Benefits

Chatbots are here to stay

Lets get started!

References

Chapter 1: Tour Guide for Your City

Getting started

Building your first bot

Basic building blocks

Blocks

Cards

Buttons

Plugins

Attributes

Default blocks

Next steps

More cards

Image

Audio

Video

Quick replies

Gallery

List

Navigation

Buttons

Go to block cards

Managing context 

User input cards

Setting user attributes

Default contextual variables

Understanding natural language

Default block

Backend processing

Broadcasting

Bot templates

Analytics

Summary

References

Chapter 2: Let's Talk Weather

Conversational tasks

Conversational design

Backend tasks

Getting weather data

Getting the API key

Trying your key

Building the backend interface

Implementing the chatbot

Creating a chatbot web service

Publishing on Facebook Messenger

Creating a Facebook Page

Creating a username

Creating a Facebook App

Creating a Facebook interface web app

Connecting the Facebook App and interface app

Testing your chatbot

Adding more testers

Making it public

More Facebook message formats

Content types

Image attachments

Audio attachments

Video attachments

Files

Templates

Button template

List template

Generic template

Summary

References

Chapter 3: Building a Persona Bot

Introducing Dialogflow

Setting up Dialogflow

Creating a basic agent

Deploying the chatbot

Website integration 

Facebook integration

Context 

Entities

System entities

Rich response formats

Importing and exporting agents

Exporting, restoring, and importing agents

Exporting and importing intents and entities

Fulfillments

Summary

References

Chapter 4: Let's Catch a Train

Exploring Transport API

Creating a developer account

Exploring the dataset

Train stations near you

Response

Trains in the area

Response

Live departures

Response

Station timetables

Response

Service timetables

Response

Conversational design

Nearest station

Next train

Time of arrival

Building a simple SMS bot

Getting started

Setting up the dashboard

Simple Message Sender

My train notifier

Scheduling tasks

Building a two-way chatbot

Understanding users' utterances

Creating an API.AI agent

Create a Node.js interface to the API.AI agent

Integrating API.AI agent to SMS chatbot

Summary

References

Chapter 5: Restaurant Search

MS Bot Framework

Channel emulator

Building a bot

Deploying your bot 

More message types

Sending more than one message per turn

Prompting users for information

Rich messages

Conversation flow

Responding to user utterances

Keeping context intact

Context switching

Contextual NLU

Ending the conversation

Conversational state

Getting started with Zomato

Getting data from Zomato 

Restaurant search bot

Connecting to Skype

Summary

References

Chapter 6: The News Bot

Getting started with the Twitter app

Building your first Twitter bot

Exploring the Twitter SDK

Updating your status

Retweet to your followers

Searching for tweets

Exploring a news data service

Setting up NewsAPI

Building a Twitter news bot

Building a personalized news bot

Creating a database of user interests

Accessing the user interests database

Informing the bot of user interests

Summary

References

Chapter 7: My TV Guide

Amazon Alexa

Warming up with a quotes bot

Configuring your skill

Interaction model

Conversation manager - quotes

Test on Alexa

My TV guide

Building the interaction model

Setting up the TV skill server

Testing the TV skill

Built-in intents and slot types

Summary

References

Chapter 8: My Man Friday

Todoist

Getting the key

Adding a task

Retrieving all tasks for the day

Building an action

Building a Dialogflow agent

Creating a web app

Testing the agent on Dialogflow

Integrating with Google Assistant

Test on Google Home

Summary

Conclusion

References

Chapter 9: More Resources

Articles

List of conferences

List of magazines

Groups on social media

Index

The users who browse this book also browse