SlideShare a Scribd company logo
Chat bots
Mohit, Amit, Abhipreet,
Rohitashwa, Jimmie
What are chatbots?
• A chatbot is a conversational agent that
interacts with users using natural
language.
• Started as an attempt to fool humans.
• Numerous applications of chatbots such
as Customer Service, call centers etc
Need for chatbots?
• Widespread use of personal machines
• Better Human Computer Interaction
• “To express their interest, wishes, or queries
directly and naturally, by speaking, typing, and
pointing”.
Need for chatbots?
• You: Hello
• Op: Hi. This is Railway Enquiry
• You: What is the status of train 2803?
• Op: It’s right on time. The train will leave CST at
5:45 pm. Is there anything else I could assist you
with?
• You : No, thank you
• Op: You are welcome. Indian railways wishes a nice
and happy journey.
History
• ELIZA
o Developed in the 1960s
o Looks for pronouns and verbs
o ‘You’ becomes ‘I’ and vice versa
o User: You are a dork.
o ELIZA: What makes you think I am a dork?
• PARRY (1972)
o Simulated a paranoid schizophrenic
History (contd)
• RACTER
o 1984
o Generate English language prose at random
o Generated a book
o The Policeman's Beard Is Half-
Constructed
Excerpt from the book
History (contd.)
• ALICE
o 1994
o Three time loebner prize winner
o Richard Wallace
o http://www.alicebot.org/
Talk Outline
• How do chat bots work?
• Use of AIML for storing language models.
• Applications
o Intelligent Tutoring Systems
o Other applications here
• Conclusion
How Do Chatbots Work
• Don’t have a good understanding of conversation
• Are based on pattern matching
• Chatterbots have a set of input and output rules
• Recognize cue words from user and responds with
a pre-calculated response
• For e.g.:- Human: “I am feeling very worried
today.”
Chatterbot: “Why are you feeling worried lately?”
• Other chatterbots learn through user interactions
ELIZA
• One of the first chatterbots designed in 1966
• Parodies a therapist rephrasing statements of the
user and posing them back as questions
• Works by simple parsing and substitution of key
words into canned phrases
• People get emotionally caught up by ELIZA’s
confident replies forgetting that it’s a machine
Example of Conversation
• Eliza’s conversation with a patient is:-
– Human: Well, my boyfriend made me come here.
ELIZA: Your boyfriend made you come here?
Human: He says I'm depressed much of the time.
ELIZA: I am sorry to hear you are depressed.
Human: It's true. I'm unhappy.
ELIZA: Do you think coming here will help you not to be unhappy?
• Able to elicit emotional responses from users
though being programmed not to do so
• Demonstrates ELIZA effect
Jabberwacky
• No fixed rules and principles programmed into it
• Learns language and context through human
interaction. Stores all conversations and comments
which are used to find appropriate responses
• Problems faced due to this approach:-
– Continuous changing of subject and conversation
– May respond in a bad-tempered and rude manner
• Was designed to pass the Turing test and is the
winner of the Loeber Prize contest
ALICE Chatbot System
• ALICE(Artificial Linguistic Internet Computer
Entity) is inspired by ELIZA
• Applies heuristic pattern matching rules to input
to converse with user
• ALICE is composed of two parts
– Chatbot engine
– Language Model
• Language models are stored in AIML(Artificial
Intelligence Mark-up Language) files
Structure of AIML
• AIML consists of data objects which are made up of units
called topics and categories
• A topic has a name attribute and categories associated with it
• Categories consist of pattern and template and are the basic
unit of knowledge
• Pattern consists of only words, spaces and wildcard symbols _
and *.
Types of ALICE/AIML Categories
• Atomic categories: do not have wildcard symbols.
• Default categories: have wildcard entries * or _.
Continued
• Recursive categories:
Symbolic Reduction:
Divide and Conquer:
Continued
Synonyms
ALICE Pattern Matching Algorithm
• Normalization is applied for each input, removing all
punctuations, split in two or more sentences and converted to
uppercase.
E.g.: Do you, or will you eat me?.
Converted to: DO YOU OR WILL YOU EAT ME
• AIML interpreter then tries to match word by word the
longest pattern match. We expect this to be the best one.
Algorithm
• Assume the user input starts with word X.
• Root of this tree structure is a folder of the file system that
contains all patterns and templates.
• The pattern matching uses depth first techniques.
The folder has a subfolder stars with _,then, ”_/”,scan through and match
all words suffixed X, if no match then:
Go back to the folder, find another subfolder start with word X, if so then
turn to “X/”,scan for matching the tail of X. Patterns are matched. If no
match then:
Go back to the folder, find a subfolder starting with *,turn to, “*/”, try all
suffixes of input following “X” to see one match. If no match was found,
change directory back to the parent of this folder and put “X” back to the
head of the input.
Dialogue Corpus Training Dataset
Alice tries to mimic the real human conversations. The
training to mimic ‘real’ human dialogues and conversational
rules for the ALICE chatbot is given in the following ways.
• Read the dialogue text from the corpus.
• The dialogue transcript is converted to AIML format.
• The output AIML is used to retrain ALICE.
Other approaches
• First word approach:
The first word of utterance is assumed to be a good clue to an
appropriate response. Try matching just the first word of the
corpus utterance.
• Most significant word approach:
Look for word in the utterance with the highest “information
content”. This is usually the word that has the lowest
frequency in the rest of the corpus.
Intelligent Tutoring Systems
• Intended to replace classroom instruction
– textbook
– practice or “homework helpers”
• Modern ITS stress on practice
• Typically support practice in two ways
– product tutors – evaluate final outcomes
– process tutors – hints and feedbacks
Learner Modelling
• Modelling of the affective state of learner
– student's opinion, self-confidence
• Model to infer learner's knowledge
• Target Motivation
– just like expert human tutors do
– instructions can be adjusted
Open learner Modelling
• Extension of traditional learner modelling
– makes the model visible and interactive part
– displays ITS' internal belief of the learner's knowledge
state
• distinct records of learner's and system's belief
– like an information bar
– learner might challenge system's belief
ITS that use Natural Language
• Improved natural language might close the gap
between human tutor and ITS
• Pedagogical agents or avatars
– uses even non-verbal traits like emotions
– act as peers, co-learners, competitors, helpers
– ask and respond to questions, give hints and explanations,
provide feedbacks, monitor progress
Choice of Chatbots
• Feasibility of integrating natural language with open
learner model requires
– Keeping the user “on topic”
– Database connectivity
– Event driven by database changes
– Web integration
– An appropriate corpus of semantic reasoning knowledge
Chatbots for Entertainment
• Aim has been to mimic human conversation
• ELIZA – to mimic a therapist, idea based on
keyword matching.
• Phrases like “Very interesting, please go on”
• simulate different fictional or real personalities using
different algorithms of pattern matching
• ALICE – built for entertainment purposes
• No information saved or understood.
Chatbots in Foreign Language Learning
• An intelligent Web-Based teaching system for
foreign language learning which consists of:
– natural language mark-up language
– natural language object model in Java
– natural language database
– a communication response mechanism which considers
the discourse context and the personality of the users and
of the system itself.
• Students felt more comfortable and relaxed
• Repeat the same material without being bored
Chatbots in Information Retrieval
• Useful in Education – Language, Mathematics
• FAQchat system - queries from teaching resources
to how to book a room
• FAQchat over Google
– direct answers at times while Google gives links
– number of links returned by the FAQchat is less than
those returned by Google
• Based essentially on keyword matching
Chatbots in IR – Yellow Pages
• The YPA allows users to retrieve information from
British Telecom’s Yellow pages.
• YPA system returns addresses and if no address
found, a conversation is started and the system asks
users more details.
• Dialog Manager, Natural Language front-end, Query
Construction Component, and the Backend database
• YPA answers questions such as “I need a plumber
with an emergency service?”
Chatbots in Other Domains
• Happy Assistant helps access e-commerce sites to
find relevant information about products and
services
• Sanelma (2003) is a fictional person to talk with in a
museum
• Rita (real time Internet technical assistant), an eGain
graphical avatar, is used in the ABN AMRO Bank to
help customer doing some financial tasks such as a
wire money transfer (Voth, 2005).
Conclusion
• Chatbots are effective tools when it comes to
education, IR, e-commerce, etc.
• Downside includes malicious users as in yahoo
messenger.
• The aim of chatbot designers should be: to build
tools that help people, facilitate their work, and their
interaction with computers using natural language;
but not to replace the human role totally, or imitate
human conversation perfectly.
References
• Bayan Abu Shawar and Eric Atwell, 2007 “Chatbots: Are they Really
Useful?” : LDV Forum - GLDV Journal for Computational
Linguistics and Language Technology. http://www.ldv-
forum.org/2007_Heft1/Bayan_Abu-Shawar_and_Eric_Atwell.pdf
• Kerly, A., Hall, P., and Bull, S. 2007. Bringing chatbots into education:
Towards natural language negotiation of open learner models. Know.-
Based Syst. 20, 2 (Mar. 2007), 177-185.
• Lane, H.C. (2006). Intelligent Tutoring Systems: Prospects for
Guided Practice and Efficient Learning. Whitepaper for the Army's
Science of Learning Workshop, Hampton, VA. Aug 1-3, 2006.
• http://en.wikipedia.org/wiki/Chatterbot
• ALICE. 2002. A.L.I.C.E AI Foundation, http://www.alicebot.org/

More Related Content

PPT
simran's ppt 8th semester - Copy.ppt
PPTX
Chatbot
PDF
IRJET - Development of Chatbot Automation Application – DGCT CSE ALEXA
PDF
IRJET-V7I51160.pdf
PPT
Chatbots.ppt
PDF
Artificial intelligence markup language: a Brief tutorial
PPTX
Dialogare con agenti artificiali
PDF
NLP_A Chat-Bot_answering_queries_of_UT-Dallas_Students
simran's ppt 8th semester - Copy.ppt
Chatbot
IRJET - Development of Chatbot Automation Application – DGCT CSE ALEXA
IRJET-V7I51160.pdf
Chatbots.ppt
Artificial intelligence markup language: a Brief tutorial
Dialogare con agenti artificiali
NLP_A Chat-Bot_answering_queries_of_UT-Dallas_Students

Similar to group7-Chatbots.ppt (20)

PDF
IRJET- Chatbot in Python
PPTX
Chatbots.pptx
PDF
IRJET- A Survey to Chatbot System with Knowledge Base Database by using Artif...
PPTX
Chat bot
PDF
A survey paper of virtual friend
PDF
IRJET- NEEV: An Education Informational Chatbot
PPTX
Nihad Abbasov-Intellectual technology presentation
PDF
VOCAL- Voice Command Application using Artificial Intelligence
PDF
Artificial Intelligence (Unit - 2).pdf
PDF
A Review Comparative Analysis On Various Chatbots Design
PDF
A Literature Survey Of Recent Advances In Chatbots
PDF
Implementation of FAQ Pages using Chatbot
PDF
isl mini project report Akshay
PDF
IRJET - Chatbot for HR Department using AIML and LSA
PDF
IRJET- Artificial Intelligence Based Chat-Bot
PDF
IRJET - A Web-based College Enquiry Chatbot using .Net and Dataset
PDF
Artificial Assistants: How can I help you? by Christopher Currin
PDF
IRJET- Information Chatbot for an Educational Institute
PDF
Survey on Chatbot Classification and Technologies
PPTX
Chatbot in a Campus Enviroment: Design of LiSA, a Virtual Assistant To Help S...
IRJET- Chatbot in Python
Chatbots.pptx
IRJET- A Survey to Chatbot System with Knowledge Base Database by using Artif...
Chat bot
A survey paper of virtual friend
IRJET- NEEV: An Education Informational Chatbot
Nihad Abbasov-Intellectual technology presentation
VOCAL- Voice Command Application using Artificial Intelligence
Artificial Intelligence (Unit - 2).pdf
A Review Comparative Analysis On Various Chatbots Design
A Literature Survey Of Recent Advances In Chatbots
Implementation of FAQ Pages using Chatbot
isl mini project report Akshay
IRJET - Chatbot for HR Department using AIML and LSA
IRJET- Artificial Intelligence Based Chat-Bot
IRJET - A Web-based College Enquiry Chatbot using .Net and Dataset
Artificial Assistants: How can I help you? by Christopher Currin
IRJET- Information Chatbot for an Educational Institute
Survey on Chatbot Classification and Technologies
Chatbot in a Campus Enviroment: Design of LiSA, a Virtual Assistant To Help S...
Ad

Recently uploaded (20)

PPT
Teaching material agriculture food technology
PDF
Video forgery: An extensive analysis of inter-and intra-frame manipulation al...
PDF
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
PDF
Per capita expenditure prediction using model stacking based on satellite ima...
PPTX
OMC Textile Division Presentation 2021.pptx
PDF
Unlocking AI with Model Context Protocol (MCP)
PDF
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
PDF
Mobile App Security Testing_ A Comprehensive Guide.pdf
PDF
A comparative analysis of optical character recognition models for extracting...
PDF
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
PPTX
Digital-Transformation-Roadmap-for-Companies.pptx
PPTX
SOPHOS-XG Firewall Administrator PPT.pptx
PDF
Heart disease approach using modified random forest and particle swarm optimi...
PPTX
Machine Learning_overview_presentation.pptx
PPTX
A Presentation on Artificial Intelligence
PDF
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
PDF
Empathic Computing: Creating Shared Understanding
PDF
Machine learning based COVID-19 study performance prediction
PDF
Reach Out and Touch Someone: Haptics and Empathic Computing
PDF
NewMind AI Weekly Chronicles - August'25-Week II
Teaching material agriculture food technology
Video forgery: An extensive analysis of inter-and intra-frame manipulation al...
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
Per capita expenditure prediction using model stacking based on satellite ima...
OMC Textile Division Presentation 2021.pptx
Unlocking AI with Model Context Protocol (MCP)
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
Mobile App Security Testing_ A Comprehensive Guide.pdf
A comparative analysis of optical character recognition models for extracting...
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
Digital-Transformation-Roadmap-for-Companies.pptx
SOPHOS-XG Firewall Administrator PPT.pptx
Heart disease approach using modified random forest and particle swarm optimi...
Machine Learning_overview_presentation.pptx
A Presentation on Artificial Intelligence
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
Empathic Computing: Creating Shared Understanding
Machine learning based COVID-19 study performance prediction
Reach Out and Touch Someone: Haptics and Empathic Computing
NewMind AI Weekly Chronicles - August'25-Week II
Ad

group7-Chatbots.ppt

  • 1. Chat bots Mohit, Amit, Abhipreet, Rohitashwa, Jimmie
  • 2. What are chatbots? • A chatbot is a conversational agent that interacts with users using natural language. • Started as an attempt to fool humans. • Numerous applications of chatbots such as Customer Service, call centers etc
  • 3. Need for chatbots? • Widespread use of personal machines • Better Human Computer Interaction • “To express their interest, wishes, or queries directly and naturally, by speaking, typing, and pointing”.
  • 4. Need for chatbots? • You: Hello • Op: Hi. This is Railway Enquiry • You: What is the status of train 2803? • Op: It’s right on time. The train will leave CST at 5:45 pm. Is there anything else I could assist you with? • You : No, thank you • Op: You are welcome. Indian railways wishes a nice and happy journey.
  • 5. History • ELIZA o Developed in the 1960s o Looks for pronouns and verbs o ‘You’ becomes ‘I’ and vice versa o User: You are a dork. o ELIZA: What makes you think I am a dork? • PARRY (1972) o Simulated a paranoid schizophrenic
  • 6. History (contd) • RACTER o 1984 o Generate English language prose at random o Generated a book o The Policeman's Beard Is Half- Constructed
  • 8. History (contd.) • ALICE o 1994 o Three time loebner prize winner o Richard Wallace o http://www.alicebot.org/
  • 9. Talk Outline • How do chat bots work? • Use of AIML for storing language models. • Applications o Intelligent Tutoring Systems o Other applications here • Conclusion
  • 10. How Do Chatbots Work • Don’t have a good understanding of conversation • Are based on pattern matching • Chatterbots have a set of input and output rules • Recognize cue words from user and responds with a pre-calculated response • For e.g.:- Human: “I am feeling very worried today.” Chatterbot: “Why are you feeling worried lately?” • Other chatterbots learn through user interactions
  • 11. ELIZA • One of the first chatterbots designed in 1966 • Parodies a therapist rephrasing statements of the user and posing them back as questions • Works by simple parsing and substitution of key words into canned phrases • People get emotionally caught up by ELIZA’s confident replies forgetting that it’s a machine
  • 12. Example of Conversation • Eliza’s conversation with a patient is:- – Human: Well, my boyfriend made me come here. ELIZA: Your boyfriend made you come here? Human: He says I'm depressed much of the time. ELIZA: I am sorry to hear you are depressed. Human: It's true. I'm unhappy. ELIZA: Do you think coming here will help you not to be unhappy? • Able to elicit emotional responses from users though being programmed not to do so • Demonstrates ELIZA effect
  • 13. Jabberwacky • No fixed rules and principles programmed into it • Learns language and context through human interaction. Stores all conversations and comments which are used to find appropriate responses • Problems faced due to this approach:- – Continuous changing of subject and conversation – May respond in a bad-tempered and rude manner • Was designed to pass the Turing test and is the winner of the Loeber Prize contest
  • 14. ALICE Chatbot System • ALICE(Artificial Linguistic Internet Computer Entity) is inspired by ELIZA • Applies heuristic pattern matching rules to input to converse with user • ALICE is composed of two parts – Chatbot engine – Language Model • Language models are stored in AIML(Artificial Intelligence Mark-up Language) files
  • 15. Structure of AIML • AIML consists of data objects which are made up of units called topics and categories • A topic has a name attribute and categories associated with it • Categories consist of pattern and template and are the basic unit of knowledge • Pattern consists of only words, spaces and wildcard symbols _ and *.
  • 16. Types of ALICE/AIML Categories • Atomic categories: do not have wildcard symbols. • Default categories: have wildcard entries * or _.
  • 17. Continued • Recursive categories: Symbolic Reduction: Divide and Conquer:
  • 19. ALICE Pattern Matching Algorithm • Normalization is applied for each input, removing all punctuations, split in two or more sentences and converted to uppercase. E.g.: Do you, or will you eat me?. Converted to: DO YOU OR WILL YOU EAT ME • AIML interpreter then tries to match word by word the longest pattern match. We expect this to be the best one.
  • 20. Algorithm • Assume the user input starts with word X. • Root of this tree structure is a folder of the file system that contains all patterns and templates. • The pattern matching uses depth first techniques. The folder has a subfolder stars with _,then, ”_/”,scan through and match all words suffixed X, if no match then: Go back to the folder, find another subfolder start with word X, if so then turn to “X/”,scan for matching the tail of X. Patterns are matched. If no match then: Go back to the folder, find a subfolder starting with *,turn to, “*/”, try all suffixes of input following “X” to see one match. If no match was found, change directory back to the parent of this folder and put “X” back to the head of the input.
  • 21. Dialogue Corpus Training Dataset Alice tries to mimic the real human conversations. The training to mimic ‘real’ human dialogues and conversational rules for the ALICE chatbot is given in the following ways. • Read the dialogue text from the corpus. • The dialogue transcript is converted to AIML format. • The output AIML is used to retrain ALICE.
  • 22. Other approaches • First word approach: The first word of utterance is assumed to be a good clue to an appropriate response. Try matching just the first word of the corpus utterance. • Most significant word approach: Look for word in the utterance with the highest “information content”. This is usually the word that has the lowest frequency in the rest of the corpus.
  • 23. Intelligent Tutoring Systems • Intended to replace classroom instruction – textbook – practice or “homework helpers” • Modern ITS stress on practice • Typically support practice in two ways – product tutors – evaluate final outcomes – process tutors – hints and feedbacks
  • 24. Learner Modelling • Modelling of the affective state of learner – student's opinion, self-confidence • Model to infer learner's knowledge • Target Motivation – just like expert human tutors do – instructions can be adjusted
  • 25. Open learner Modelling • Extension of traditional learner modelling – makes the model visible and interactive part – displays ITS' internal belief of the learner's knowledge state • distinct records of learner's and system's belief – like an information bar – learner might challenge system's belief
  • 26. ITS that use Natural Language • Improved natural language might close the gap between human tutor and ITS • Pedagogical agents or avatars – uses even non-verbal traits like emotions – act as peers, co-learners, competitors, helpers – ask and respond to questions, give hints and explanations, provide feedbacks, monitor progress
  • 27. Choice of Chatbots • Feasibility of integrating natural language with open learner model requires – Keeping the user “on topic” – Database connectivity – Event driven by database changes – Web integration – An appropriate corpus of semantic reasoning knowledge
  • 28. Chatbots for Entertainment • Aim has been to mimic human conversation • ELIZA – to mimic a therapist, idea based on keyword matching. • Phrases like “Very interesting, please go on” • simulate different fictional or real personalities using different algorithms of pattern matching • ALICE – built for entertainment purposes • No information saved or understood.
  • 29. Chatbots in Foreign Language Learning • An intelligent Web-Based teaching system for foreign language learning which consists of: – natural language mark-up language – natural language object model in Java – natural language database – a communication response mechanism which considers the discourse context and the personality of the users and of the system itself. • Students felt more comfortable and relaxed • Repeat the same material without being bored
  • 30. Chatbots in Information Retrieval • Useful in Education – Language, Mathematics • FAQchat system - queries from teaching resources to how to book a room • FAQchat over Google – direct answers at times while Google gives links – number of links returned by the FAQchat is less than those returned by Google • Based essentially on keyword matching
  • 31. Chatbots in IR – Yellow Pages • The YPA allows users to retrieve information from British Telecom’s Yellow pages. • YPA system returns addresses and if no address found, a conversation is started and the system asks users more details. • Dialog Manager, Natural Language front-end, Query Construction Component, and the Backend database • YPA answers questions such as “I need a plumber with an emergency service?”
  • 32. Chatbots in Other Domains • Happy Assistant helps access e-commerce sites to find relevant information about products and services • Sanelma (2003) is a fictional person to talk with in a museum • Rita (real time Internet technical assistant), an eGain graphical avatar, is used in the ABN AMRO Bank to help customer doing some financial tasks such as a wire money transfer (Voth, 2005).
  • 33. Conclusion • Chatbots are effective tools when it comes to education, IR, e-commerce, etc. • Downside includes malicious users as in yahoo messenger. • The aim of chatbot designers should be: to build tools that help people, facilitate their work, and their interaction with computers using natural language; but not to replace the human role totally, or imitate human conversation perfectly.
  • 34. References • Bayan Abu Shawar and Eric Atwell, 2007 “Chatbots: Are they Really Useful?” : LDV Forum - GLDV Journal for Computational Linguistics and Language Technology. http://www.ldv- forum.org/2007_Heft1/Bayan_Abu-Shawar_and_Eric_Atwell.pdf • Kerly, A., Hall, P., and Bull, S. 2007. Bringing chatbots into education: Towards natural language negotiation of open learner models. Know.- Based Syst. 20, 2 (Mar. 2007), 177-185. • Lane, H.C. (2006). Intelligent Tutoring Systems: Prospects for Guided Practice and Efficient Learning. Whitepaper for the Army's Science of Learning Workshop, Hampton, VA. Aug 1-3, 2006. • http://en.wikipedia.org/wiki/Chatterbot • ALICE. 2002. A.L.I.C.E AI Foundation, http://www.alicebot.org/