Aichatbots
Aichatbots
net/publication/337400748
CITATIONS READS
23 2,174
3 authors, including:
All content following this page was uploaded by Vishal Bharti on 24 August 2022.
INTRODUCTION
In today’s era technology is booming at a breakneck speed and Artificial Intelligence is emerging
as a game changer. From the virtual assistant SIRI to the self driving cars and to autonomous
weapons AI has fascinated the concept of science fiction and is driving the world towards
automation. Artificial Intelligence is defined as the simulation of human intelligence process
(acquisition of information, reasoning) by machines. The concept of artificial intelligence coined
back in the year 1956, at Darmouth Conference organised by John McCarthy .He is known as the
‘father of artificial intelligence’ and developed the LISP programming language which later on
became an important part in machine learning. We can say that AI is study and design of
intelligent agents and these agents in today’s scenario are termed as chat bots. AI has made the
chat bots more lifelike than ever before. We have also tried to depict how the Chatbot can be
created by creating an example of the chat bot AMANDA.
1. CHATBOT
From ordering a pizza to scheduling a meeting we all are surrounded by robots. Chat bots have
established a well time ground between automation and the use of internet that have changed in
past few years. “Chat bots are a software program that performs cognitive service functions
along with the understanding of the natural language”. Chat bots have defined the interaction
between humans and machines in a most simplified manner. This technology started within
1960s with an aim to examine if the Chatbot system will be able to fool the real humans. With
the popular usage of private machines the needs of colloquial agents have become more intense.
To carry out the human computer interaction in the most efficient manner the users must be
allowed to express their interests or queries by speaking or typing acted as a driving force behind
the development of chat bot. It has been predicted that by 2022, almost 90% of the customer
enquiries will be dealt by these automated agents[1]. Chat bots allow business to deliver in a
personalised manner by integrating message, operations and human support in one experience.
Eliza is a natural language conversation program created in 1966 based on objects oriented
JavaScript and was first implemented on IBM 7094. It performed best when the interaction
was carried out with the help of a typewriter. Eliza functions by recognising the keywords
from the input to breed a response from pre programmed responses, hence creating an
illusion of interaction with a human being though the process is a mechanised in nature.
3. ALICE THE SMATER CHATBOT
Artificial Linguistic Internet Computer Entity (ALICE) was first ever implemented by
Wallace in 1995. Alice carries out the interaction with humans through heuristically pattern
matching rules to input provided by humans. The development began in 1995 by Richard
Wallace and was rewritten in Java in the early 1998. An XML schema AIML (Artificial
mark-up language) was used to specify the heuristic conversation rules. AILML also
comprises of AIML objects which consist of units called topics and categories which forms
the basic unit of knowledge in AIML. Each category comprises of a rule and set of patterns
that matches against the input of the user which generates the answer given by the chat bot.
ALICE consists of three AIML categories:
Atomic Categories: Consist of patterns without the wildcard entries.
Default Categories: Patterns that have wildcard entries are included in this category.
The symbols will although match some input but they will differ in their alphabetical
order.
Recursive Categories: Comprises of templates which refer to recursive reduction
rules. The symbolic representation reduces the complex grammatical forms to the
simple forms, applies divide and conquer for the splitting of input to 2 or more
subparts.
A normalization process is applied to remove the punctuations before the start of the
matching process. AIML interpreter matches word by word to obtain the best longest
pattern. As soon as the match is found the process stops and the template belonging to the
processor is thereby processed by the interpreter to construct the desired the output.
There is no doubt in this that chat bots have become one of the fast automation tools of the
moment thereby driving the human computer interaction to a next level. Many individuals
assume that it’s a result of the AI hoopla created by Face Book to gap up its traveller
platform in order to build bots by the developers. Hence it can be said that chat bots have
become a sensation in a very short span of time but the upheaval in chat bots is a result of
several factors that came into existence from early 2000s to today.
As already known, Chat bot came into existence as a software program that chats naturally
and get the work done for humans. A chat bot comprises of different components:
5.1 Natural Language Processing (NLP): NLP is a component of artificial intelligence that
deals with the interaction between computers and human in order to process the large
amount of data in natural language. It can be also defined as automatic manipulation of
natural language. NLP application poses a challenge to develop as they require humans to
speak to them using a programming language which must be highly structured and precise
in nature. The natural language processing is carried out using two techniques namely
syntax analysis and semantic analysis. Syntax analysis is a process of analyzing the strings
of symbol in the natural language conforming to the rules of formal grammar. Semantic
analysis provides meaning of the words
5.2 Dialog Manager: The dialog manager decides what message will be conveyed to the user,
given its input and the interactions made by the user in the past
5.3 Content: It forms the third component and will describe what the bot is going to say once it
is decided what to say. The manner in which the content is structured will describe how the
content is going to be perceived by the user or client.
The design model of a Chatbot is set to support the core purpose of development. There are
2 ways to attain a response from a chat bot, either by generating response from start as per
machine learning models or by using a heuristic approach to select the most promising
response from the library of already defined responses [7] .
6.1 GENERATIVE MODEL
This model is used to develop smart bots that are advanced in nature, but the model is rarely
used as it requires the implementation of complex algorithms.
6.2 RETRIEVAL BASED MODEL
This model is easy to build and is more reliable in nature. Here we know the possible type
of response that will be generated and can ensure that no incorrect response will be
generated by the chat bot.
The figure below listed as 6.1 and 6.2 describes the flow of chat in generative model and
retrieval based model.
Generative
Model
Retrieve Based
Model
Response
Chat bots once installed are capable of handling queries at any time. Chat bots are helping
the organization to keep pace up with the trend and helped the organizations to acquire
customer satisfaction.
The below presented Table 1 will depict a short summary of all the chat bots that have been
listed in the figure which are scripted based chat bots, NLP based chat bots, social
messaging chat bots. Service – Action chat bots and voice enabled bots.
Table 1: Description of the chat bots
Chat bots are somewhat similar to the applications we use in daily scenario as they contain a
database, an application layer and a number of application package interfaces (APIs) to
connect to an external call [10]. The intention of the user cannot be directly understand by
the bot hence they are first trained with the data.
The customer support chat bots are installed with several conversation logs which helps them
in understanding what type of response need to be generated to a particular user query. Smart
feedback loops can be implemented once the Chatbot is live and started interacting with the
people. Three classification methods are adopted by the chat bots.
9.2 ALGORITHMS
A unique pattern must be available in the database for the response generation to each
question. Algorithms are used to generate a manageable structure by reducing the
number of classifiers. With a new input sentence, each word is counted for how many
times it has occurred and a score is assigned to the class. The class with the highest score
is likely to be related to the input sentence.
NLP deals with the interactions between computer systems and humans in order to process
large amount of information. Chat bots such as Amazon’s Alexa or Siri will be considered
inefficient without NLP, as it forms the basic unit that allows the chat bot to understand,
interpret the user message so that an appropriate response could be generated. Whenever a
message like “Good Morning” is sent it is the NLP that let the chat bot know that a standard
greeting have been posted and thereby an appropriate response is generated by the chat bot.
Machine Learning is one of the best approaches of NLP that can be used to train the bots.
The NLP based bots generates less false positive outcomes, identify user input failures and
uses comprehensive communication process to generate user responses.
According to Maruti Techlabs, there are certain capabilities that a Natural Language
Processing must have.
CAPITALIZATION: Removal of capitalization from common nouns and recognition
of proper nouns.
EXPANSION OF VOCABULARY: Providing addition of synonyms and expansion of
chat bot vocabulary with the help of machine learning.
CONTRACTIONS: Simplification of task processing and removal of contractions.
DIGITS v/s NUMERIC WORDS: Recognition of communication of numeric values as
words or digits
VOCABULARY TRANSFER: Transferring the developed vocabulary from one chat
bot to another chat bot
SINGULAR v/s PLURAL NOUN: Processing of singular and plural nouns should be
done in a similar way.
TENSED VERBS: Communication of a single verb in different tenses should be
treated as synonymous.
MESSAGE PERSONALIZATION: Replacement of default universal responses with
unique configured messages.
We have created accounts on few chat bot platforms to give a better visualization of how the
appearances of the platforms look like.
CHATFUEL: It provides the creation of smart and intelligence AI based chat bots. It provides
answers automatically to the frequently asked questions from your customers. This automation
ensures to provide constant assistance to the users. Chat bot is a leading chat bot platform for
face book messenger and around 46% of the messenger bot are running on the chat fuel
LANDBOT.io: This tool allows creating personalised conversational chat bots in order to
provide interaction with the prospective customers. It provides the bots to get published in
different formats and it can be launched on multiple channels. Land bot also generates
memorable experiences from the static lead generation. It allows engage of potential customers
with a help of a user friendly editor. One can easily customize the bot with their brand entity.
Figure 5 describes the appearance of the platform.
Fig.5 First appearance of Landbot.io
MEYA.AI: It comprises of a live debugger, code editor and a visualize tool. It provides scaling
of bots along with along with training and hosting. Meya also provides integration with third
party applications to provide easy usage.
XENIOO: Xenioo does not require any line coding .It allows instant creation and publish of
intelligent chat bots for the social media platforms. The chat bots are trained using intent and
expressions. Figure 6 depicts how the first look at Xenioo platforms looks like. The very next
figure 7 describe about the assistance Chatbot Lisa in Xenioo.
Fig .6 First look of the Xenioo Dashboard after the sign in process
Fig.7: Lisa the assistance chat bot in Xenioo
BOTSIFY: It allows us to create for websites or the facebook messenger application and also
provides creation of automated bots online. It provides faster support to the business and creates
multi step question answer sequence. It creates context aware stories.Figure 8 describes the bot
assistance offered by the Chatbot in the Botsify platform.
SEQUEL: It allows creation of customize chat bot templates using its drag and drop
embedded editor. It designs chat bots that interacts with users on a conversational level
using natural language processing technology.
PANDORABOTS: Pandora bots is a huge platform for building bots but requires initial
coding skills. It offers flexibility and a solid interface that speed up the development
process.
MOBILEMONKEY: It allows creation of bots for face book messenger that drives the
marketing on face book onto a next level. It can be used to manager large amount of
business lead activities.
Today the chat bots not only understands the commands but also the human spoken
language which has been possible due to the natural language processing feature exhibited
by the artificial intelligence which has made the chat bots smarter with time. The table
below provides an overview of intents, entities that lays the basic foundation of bots
building.
Table 2: Bricks of Building Bots
A conversational process must be followed while designing the chat bots. Follow a
methodology that result in delivering good experience design.
The designing process of the bot should be in the same way as we train a new employee.
In the situation of a real world machine learning is being used extensively in providing
training to the bots.
The platform being selected for the designing process plays a crucial role in the designing
process as they control the quality of the conversation along with the ability to extend the
functionality.
Along with a good conversational design a right access to data and system is responsible
for the success of the chat bots.
16. BENEFITS OF CHAT BOTS
Chat bots are rising at a pace and are being adopted worldwide. They have launched new
ways of interaction with the rise in artificial intelligence technologies. Following are the
benefits chat bots have successfully provided to the users of each industry and domain [24].
PYTHON
Python is a high level programming language created by Guido van Rossum and was released in
1991. It relies on indentation and uses new lines for the completion of a command, used in
scripting and web designing.
CLOJURE
It is a functional programming language that runs on Java Virtual Machine and is a dialect of the
programming language LISP. Instead of side –effect based looping it highlights the recursion and
high order functions.
JAVA
It provides all the high level features that are required by the artificial intelligence projects. It
runs on java virtual machine and provides a sophisticated framework using visualizations.
19. DIALOG FLOW CHATBOT FRAMEWORK
Dialog flow provides new ways to interact with the users with the help of voice and text based
conversational user interfaces. It incorporates Google’s machine learning technology and runs on
Google cloud platform. We have presented a pictorial representation of the process of intent and
entity creation in the dialog frame work by creating a Google account. Also the agent created by
us is named as AMARA
Accept all the requested permissions and then you will be allowed to access the console.
Create a new agent, the language primarily would be English, but you can modify it
according to you. Here the new agent created is AMARA depicted by figure 12.
These steps are a basic introduction to the framework Dialog flow, how you can use it.
After creating the project, create a new python file. Amanda Chatbot> right click> new>
python file shown by figure 16
Creating the text file for AMANDA CHATBOT. Amanda Chatbot> new>file. Figure 18
Importing the modules of chatterbot. It is a python library that generates automated response for
the users input.Following commands will be used
FinChat bot is an AI powered chat bots for the financial industry. Holly is the virtual assistant
that helps in the customer interaction. Holly can interact with several potential clients in different
languages anytime. It can be deployed across multiple platforms. Below we present a short
interaction with the chat bot Holly in the figure 21
As the medical knowledge keeps on updating so the need of proper understanding of the
technology is required. The chat bot SafedrugBot provide with the right information about the
drug dosage.
Florence another bot launched in 2017 helps in reminding the patients to take pills, track their
weight, periods and moods. It also provides the location of nearby pharmacy or a doctor
depending upon your disease. Below is the representation of the chat with Florence chat bot by
figure 22
Continuous improvement in the natural language processing has enabled the bots to have a
conversation like the human being. Performing simple jobs in a repetitive and efficient
manner have made the chat bots to build an organization fatigue-free. They have made the
human agents to handle complex queries. The global Chatbot market is expected to increase
by $1.34 in valuation by 2024. Chat bots have come up with a maximum number of
opportunities that offers personalization. For ensuring 100% of customer satisfaction, we can
not rely in technologies completely at some point human intervention is required, But still
chat bots provide a logical, transparent and clear communication. So if we take into account
the current market trends then we can say that chat bot have a great future ahead.
REFERENCES
1. Shawar, B. A., & Atwell, E. (2007, January). Chatbots: are they really useful?. In Ldv forum
(Vol. 22, No. 1, pp. 29-49).
2. Dale, R. (2016). The return of the chatbots. Natural Language Engineering, 22(5), 811-817.
3. Khan, R., & Das, A. (2018). Introduction to chatbots. In Build Better Chatbots (pp. 1-11).
Apress, Berkeley, CA.
4. Klopfenstein, L. C., Delpriori, S., Malatini, S., & Bogliolo, A. (2017, June). The rise of bots:
A survey of conversational interfaces, patterns, and paradigms. In Proceedings of the 2017
Conference on Designing Interactive Systems (pp. 555-565). ACM.
5. Ferrara, E., Varol, O., Davis, C., Menczer, F., & Flammini, A. (2016). The rise of social bots.
Communications of the ACM, 59(7), 96-104
6. Abdul-Kader, S. A., & Woods, J. C. (2015). Survey on chatbot design techniques in speech
conversation systems. International Journal of Advanced Computer Science and Applications, 6(7).
7. Cahn, J. (2017). CHATBOT: Architecture, design, & development. University of Pennsylvania
School of Engineering and Applied Science Department of Computer and Information Science.
8. Cahn, J. (2017). CHATBOT: Architecture, design, & development. University of
Pennsylvania School of Engineering and Applied Science Department of Computer and
Information Science.
9. Bird, S., Klein, E., & Loper, E. (2009). Natural language processing with Python: analyzing
text with the natural language toolkit. " O'Reilly Media, Inc.".
10. AbuShawar, B., & Atwell, E. (2015). ALICE chatbot: Trials and outputs. Computación y
Sistemas, 19(4), 625-632.
11. Kerlyl, A., Hall, P., & Bull, S. (2006, December). Bringing chatbots into education: Towards natural
language negotiation of open learner models. In International Conference on Innovative Techniques
and Applications of Artificial Intelligence (pp. 179-192). Springer, London.
12. Rahman, A. M., Al Mamun, A., & Islam, A. (2017, December). Programming challenges of
chatbot: Current and future prospective. In 2017 IEEE Region 10 Humanitarian Technology
Conference (R10-HTC) (pp. 75-78). IEEE.
13. Følstad, A., & Brandtzæg, P. B. (2017). Chatbots and the new world of HCI. interactions, 24(4), 38-
42.
14. Burden, D. J. (2008, December). Deploying embodied AI into virtual worlds. In International
Conference on Innovative Techniques and Applications of Artificial Intelligence (pp. 103-115).
Springer, London.
15. Shum, H. Y., He, X. D., & Li, D. (2018). From Eliza to XiaoIce: challenges and
opportunities with social chatbots. Frontiers of Information Technology & Electronic
Engineering, 19(1), 10-26.
16. McTear, M. F. (2002). Spoken dialogue technology: enabling the conversational user
interface. ACM Computing Surveys (CSUR), 34(1), 90-169.
17. Pearl, C. (2016). Designing Voice User Interfaces: Principles of Conversational Experiences.
"O'Reilly Media, Inc.".
18. Radziwill, N. M., & Benton, M. C. (2017). Evaluating quality of chatbots and intelligent
conversational agents. arXiv preprint arXiv:1704.04579.
19. Hill, J., Ford, W. R., & Farreras, I. G. (2015). Real conversations with artificial intelligence:
A comparison between human–human online conversations and human–chatbot
conversations. Computers in Human Behavior, 49, 245-250.
20. Janarthanam, S. (2017). Hands-on chatbots and conversational UI development: Build
chatbots and voice user interfaces with Chatfuel, Dialogflow, Microsoft Bot Framework,
Twilio, and Alexa Skills. Packt Publishing Ltd.
21. Paikari, E., & van der Hoek, A. (2018, May). A framework for understanding chatbots and
their future. In Proceedings of the 11th International Workshop on Cooperative and Human
Aspects of Software Engineering (pp. 13-16). ACM.
22. Zumstein, D., & Hundertmark, S. (2017). CHATBOTS--AN INTERACTIVE
TECHNOLOGY FOR PERSONALIZED COMMUNICATION, TRANSACTIONS AND
SERVICES. IADIS International Journal on WWW/Internet, 15(1).
23. Chung, K., & Park, R. C. (2018). Chatbot-based heathcare service with a knowledge base for
cloud computing. Cluster Computing, 1-13
24. Brandtzaeg, P. B., & Følstad, A. (2017, November). Why people use chatbots. In
International Conference on Internet Science (pp. 377-392). Springer, Cham.
25. Zamora, J. (2017, March). Rise of the chatbots: Finding a place for artificial intelligence in
India and US. In Proceedings of the 22nd International Conference on Intelligent User
Interfaces Companion (pp. 109-112). ACM.
26. Khan, R., & Das, A. (2017). Build better chatbots: a complete guide to getting started with
chatbots.