Professional Documents
Culture Documents
Intelligent Automation 101 Session2
Intelligent Automation 101 Session2
Intelligent Automation 101 Session2
101
1 SESSION 1: RPA
TABLE
OF 2 SESSION 2: CHATBOT
CONTENTS
3 SESSION 3: COMPUTER VISION & NLP
Session 2
Artificial Intelligence
AI
Computer Vision
AI, Machine Learning & Deep Learning
Artificial Intelligence is the broader term which refers to development of theories and
AI algorithms which enables computer systems to perform tasks which require human
intelligence
AI
Labeled Data
Prediction
Dog
Cat
Labels Model
training
Test Data
Cat
Dog
Gorilla
Machine Learning: Unsupervised Learning
Output
Cat
Bull
Chatbot & Virtual Assistant
Interact
Dialog Management Natural Language Processing
Analyze
▪ Track and remember user conversation history
▪ Parse natural human language text and voice in order to
over the same interaction and previous
understand unstructured inputs rather than just
interactions
depending upon FAQs or keywords
▪ Ask relevant follow up questions
Computation
Machine Learning
Learn ▪ Perform any calculations needed to fulfil the user
▪ Analyze human responses and learn how to requests or retrieve the required information
respond to the users ▪ Integrate with required applications, databases or
▪ Recognize qualitative intents channels through APIs
CHATBOT FUNCTIONS
Chatbot building using Google Dialogflow
Dialogflow is a natural language understanding platform used to design and integrate a conversational user interface into
mobile apps, web applications, devices, bots, interactive voice response systems and related uses. Dialogflow provides two
different virtual agent services, each of which has its own agent type, user interface, API, client
Dialogflow CX: Provides an advanced agent type suitable for large Dialogflow ES: Provides the standard agent type suitable for small
or very complex agents and simple agents
An intent categorizes an end-user's intention for one conversation turn. For each agent, you define many intents, where
your combined intents can handle a complete conversation. When an end-user writes or says something, referred to as
2 Intent an end-user expression, Dialogflow matches the end-user expression to the best intent in your agent. Matching an intent
is also known as intent classification
Each intent parameter has a type, called the entity type, which dictates exactly how data from an end-user expression is
extracted. Dialogflow provides predefined system entities that can match many common types of data. For example,
3 Entity there are system entities for matching dates, times, colors, email addresses, and so on. You can also create your
own custom entities for matching custom data. For example, you could define a vegetable entity that can match the
types of vegetables available for purchase with a grocery store agent.
Dialogflow contexts are similar to natural language context. If a person says to you "they are orange", you need context in
order to understand what "they" is referring to. Similarly, for Dialogflow to handle an end-user expression like that, it
needs to be provided with context in order to correctly match an intent.
4 Context Using contexts, you can control the flow of a conversation. You can configure contexts for an intent by setting input and
output contexts, which are identified by string names. When an intent is matched, any configuredoutput contexts for
that intent become active. While any contexts are active, Dialogflow is more likely to match intents that are configured
with input contexts that correspond to the currently active contexts.
Google Dialogflow architecture
The main platforms that are compatible with Dialogflow are listed below. It can be integrated to all of the basic conversation
platforms, except WhatsApp. Using other platforms such as Twilio, Dialogflow can be integrated into WhatsApp, too.
• Google Assistant
• Slack
• Twitter
• Twilio
• Skype
• Telegram
• Facebook Messenger
• Amazon Alexa
Algorithm used in Dialogflow
Intent matching
When an end-user writes or says something, referred to as an end-user expression, Dialogflow compares
the expression to the training phrases for each intent to find the best match. Matching an intent is also
known as intent classification. This document describes the factors used to match an intent.
Matching algorithms
Dialogflow uses two algorithms to match intents: rule-based grammar matching and ML matching.
Dialogflow simultaneously attempts both algorithms and chooses the best result.
Chatbot examples
1 A chatbot for ordering food that allows customers to order from their office or home
3 A chatbot that allows the customer to book a flight and receive relevant information
5 A health bot that provides services for booking a Doctor consultation and getting remedies for different symptoms
6 A chatbot that books movie tickets and also provided the reviews
Chatbot use case