Introduction to AI Chatbots

- The modern era of technology has a tremendous impact on the society. With the creation of the ultimate virtual assistants, chatbots have become a popular entity in the conversational services. Chatbots are software programs that use natural language understanding and processing. Chatbots are not just restricted to help the user to complete his tasks such as booking a movie ticket or finding the nearest restaurant, but they also provide a source of entertainment, play a major role in home automation projects, give business strategy tips and help in other ways. In this paper, we will provide an insight into what a chatbot is and the types of chatbots. We also propose a classification based on the current market trends, ease of usability and requirements.


I. INTRODUCTION
Technology plays a massive role in the industry and daily chores. It serves a variety of purposes and is applied in a different way in different parts of the world. Recently, the public has been fantasized by Artificial Intelligence. Artificial Intelligence simulates the cognitive abilities of a human. To be more precise and closely related to humans, the AI Chatbots are now replacing human responses with this software. A Chatbot is a computerized program that acts like a colloquist between the human and the bot, a virtual assistant that has become exceptionally popular in recent years mainly due to dramatic improvements in the areas like artificial intelligence , machine learning and other underlying technologies such as neural networks and natural language processing. These chatbots effectively communicate with any human being using interactive queries. Recently, there's been a massive increase in many cloud-based chatting bot services which have been made available for the development and improvement of the chatbot sector [1] such as IBM Watson, Cleverbot, ELIZA chatbot and many others. These conversational agents have become more responsive and the art of conversation between humans and robots over the past few years have improved drastically. In this paper, we have generalized the AI chatbots and described the general template for the same.

II. TYPES OF CHATBOTS
Before the advent of this modern era of technology, manual labor played a major role in all sectors of the industry. With this modern evolution, creation of chatbots has successfully helped in sectors like customer service. However, not all chatbots fall under one category. Chatbots are classified based on the ease of user interface, algorithms and the underlying technologies used. In this paper, (figure 1) it has been proposed that chatbots are mainly categorized into three types.

Menu/Button-Based Chatbots
The most commonly used and the simplest type of chatbots in the market today are the menu based chatbots, which are in form of buttons and top-down menus. These chatbots follow the principles of decision trees, where you make your decisions to get the ultimate answers. The user is instructed to make these decisions by selecting their options and dig deeper to-wards the appropriate response from the AI. However, these menu-based chatbots are comparatively slower in terms of performance and cannot be completely reliable to get the desired answer.

Keyword Recognition-Based Chatbots
These chatbots recognizes specific keywords in order to produce a desired result. They listen to what the users enter and respond accordingly. With the help of the AI technology and customized keywords list, the bot determines an appropriate response to the user by using the algorithms. These chatbots will start to fail when there are keyword redundancies between several related questions. For example, if a user asked the question 'How do I set up an auto-login authentication on my phone?', the bot would likely use the keywords like 'auto', 'login', to determine which answer is the best to respond with.

Contextual Chatbots
Contextual chatbots are one of the most technologically  [2] making it easier to build more artificial intelligent programs. They parse natural language and train the bot using a structured template. There are various different APIs and package with AIML files make this system more flexible and interactive to use in various fields [2]. <?XML version="1.0" encoding="UTF-8"?> <aiml version="1.0.1"> <category> <pattern>……….. </pattern> <template>…….... </template> </category> </aiml> Few other tags that can be used along with the template tags are given below: (Refer Table II) AIML is a simple pattern language characterized by general inquiries which utilizes AIML tags and formats to interact. The entire process takes place in three parts [3] : The user enters his/her query on the chatbot interface The user's query is processed to match with the predefined format template Pattern matching is done between the knowledge base that stores the predefined template and the user's query in order to arrive at a solution Finally, this pattern-oriented answer is presented to the user.

IV. APPLICATIONS OF CHATBOTS
Chatbots are more versatile than given credit for. With the rise of advanced Artificial Intelligence, chatbots have become popular in the past few years as businesses discover innovative ways to put them to use. Being a beneficial agent, chatbots have made life easier for customers as they are available 24/7. They have helped businesses in managing tasks in a customized strategic way. Customer service is one of the major domain where chatbots found a start but their functionality extends much beyond that. Chatbots are communication facilitators which can be integrated into sales & marketing for lead generation, collecting visitor information & constantly engaging customers through the lead funnel. Below are some of the different kinds of chatbots that are out in the market currently:

Humorist Chatbot System:
The main ideology behind the Humorist bot is to make the user laugh. Humorist chatbot is a conver-sational agent that provides a sense of humor by telling humorous anecdotes which are stored in its knowledge base. It is also capable of listening to jokes to interpret the humorous level of a user. It has a set of standard Alice categories that allow holding a general conversation with a user [2]. The chatbot identifies humorous jokes by identifying certain keywords and responds accordingly with funny graphical images and textual responses. a central module present that collectively receives all the data generated by ALICE which is then processed in order to produce unique results. Another module that holds the entire information is the network history information module [4] which consists of different modules like collect module and history information base which collects the necessary data and store it in the information base respectively [4] . All the Forms the basic unit of knowledge and consists of patterns and templates. <pattern> It is a string intended to correspond to one or more user input and a pattern in matched within this tag. <template> Specifies the response to an adjusted pattern Used to match the other categories. When a specific keyword is entered, a simple response is returned. <li> Used within the <random> tag for random responses from the given list. Specifies a list item. <topic> Used as a buffer to store a context so that responses can be based on that context. Usually used in Binary type conversation and helps AIML to search categories written within the context of the topic. <random> Used to get random potential set of responses. Enables AIML to respond differently to the same input. <get> Sets whatever is within the tags to the variable VALUE. It can be retrieved through the use of a<get> tag. <set> Output whatever is in the variable VALUE. If VALUE has not been <set>, defaults to " ". <think> Performs whatever is between the tags but not output anything to the user. <condition> Used to respond to the matching input <that> Used to respond based on the context. information generated by all modules is processed by the central module and returns to the user through ALICE [4] .

Adaptive Modular Architecture based chatbot:
Another chatbot that is based on ALICE technology is Adaptive Modular Architecture based chatbot. This conversational agent is based on modular knowledge representation and proof-of-concept [2] . Knowledge representation plays an integral part of Artificial Intelligence. This modular ontology will help the chatbot response in a more flexible manner. The knowledge representation model is composed of various components: dialogue engine, dialogue analyzer, corpus callosum [2] . Corpus callosum plays an important role as it triggers the model and activates only a particular section of the knowledge base at a given period.

Web-based voice chatbot:
Just like how Alexa is for Amazon, Siri is for apple and cortana is for Microsoft, the web-based voice chatbots have come to light. This Web-based system uses voice recognition technologies to interact with its users. Based on ALICE bot engine, these intelligent digital assistants learn over time and mimic real conversations with the users. They usually accept commands in written or oral form enabling them to understand natural language. It controls communication structure with web service and consists of three components: client, server, content acquisition. All messages are formatted in an XML and encapsulated in SOAP text based message pack. The client contains a voice recognition processing module [2] .

V. CONCLUSION
A chatbot is an ecosystem, a virtual human being that has been integrated with various industrial applications. With the passage of time, new features are added to the existing platform [1] to create better virtual assistants. Chatbots like Alice and Eliza have created an impact in the world of technology. Lately, with the concepts of Artificial Intelligence, Machine Learning, Natural Processing Langauge and recent advancements in machine learning techniques like Deep Learning, it has been made possible to develop humanoid chatbots. Samsung Technology and Advanced Research Labs (STAR) have developed a technology, Neon, a chatbot that has been designed to behave like a human with emotional ability and intelligence. These