An Overview of Chatbot Technology - PMC - NCBI
Chatbots can mimic human conversation and entertain users but they are not built only for this. They are useful in applications such as ...
An Overview of Chatbot Technology - PMC
 Back to Top
 [Skip to main content](#main-content)

![U.S. flag](https://www.ncbi.nlm.nih.gov/coreutils/uswds/img/favicons/favicon-57.png)

An official website of the United States government

Here's how you know

![Dot gov](https://www.ncbi.nlm.nih.gov/coreutils/uswds/img/icon-dot-gov.svg)

**The .gov means it’s official.**

Federal government websites often end in .gov or .mil. Before
sharing sensitive information, make sure you’re on a federal
government site.


![Https](https://www.ncbi.nlm.nih.gov/coreutils/uswds/img/icon-https.svg)

**The site is secure.**

The **https://** ensures that you are connecting to the
official website and that any information you provide is encrypted
and transmitted securely.


[![NIH NLM Logo](https://www.ncbi.nlm.nih.gov/coreutils/nwds/img/logos/AgencyLogo.svg)](https://www.ncbi.nlm.nih.gov/)

[Log in](https://account.ncbi.nlm.nih.gov)Show account info

Close

#### Account

Logged in as:

**username**

- [Dashboard](/myncbi/)
- [Publications](/myncbi/collections/bibliography/)
- [Account settings](/account/settings/)
- [Log out](/account/signout/)

[Access keys](https://www.ncbi.nlm.nih.gov/guide/browsers/#ncbi_accesskeys) [NCBI Homepage](https://www.ncbi.nlm.nih.gov) [MyNCBI Homepage](/myncbi/) [Main Content](#maincontent)Main Navigation

**Preview improvements coming to the PMC website in October 2024.**
**[Learn More](https://ncbiinsights.ncbi.nlm.nih.gov/2024/03/14/preview-pmc-improvements/) or**
**[Try it out now](https://pmc.ncbi.nlm.nih.gov/articles/PMC7256567/).**

[Home](/pmc/ "Home")

Search PMC Full-Text ArchiveSearch in PMC

- [Advanced Search](https://www.ncbi.nlm.nih.gov/pmc/advanced)
- [User Guide](/pmc/about/userguide/)

- [Journal List](/pmc/journals/)
- [Springer Nature - PMC COVID-19 Collection](/pmc/?term=Springer%20Nature%20PMC%20COVID-19%20Collection[filter])
- PMC7256567


###### Other Formats

- [PDF (581K)](/pmc/articles/PMC7256567/pdf/978-3-030-49186-4_Chapter_31.pdf)

###### Actions

- Cite
- Collections





Add to Collections







- Create a new collection
- Add to an existing collection

Name your collection:


Name must be less than characters


Choose a collection:


Unable to load your collection due to an error

Please try again

Add

Cancel


###### Share

- Permalink




Copy


###### RESOURCES

- Similar articles





No results available.


- Cited by other articles





No results available.


- Links to NCBI Databases



- [Journal List](/pmc/journals/)
- [Springer Nature - PMC COVID-19 Collection](/pmc/?term=Springer%20Nature%20PMC%20COVID-19%20Collection[filter])
- PMC7256567


As a library, NLM provides access to scientific literature. Inclusion in an NLM database does not imply endorsement of, or agreement with,
the contents by NLM or the National Institutes of Health.

Learn more:
[PMC Disclaimer](/pmc/about/disclaimer/)
\|
[PMC Copyright Notice](/pmc/about/copyright/)

![Logo of phenaturepg](/corehtml/pmc/pmcgifs/logo-phenaturepg.png)

Artificial Intelligence Applications and Innovations. 2020; 584: 373–383.

Published online 2020 May 6. doi: [10.1007/978-3-030-49186-4\_31](//doi.org/10.1007%2F978-3-030-49186-4_31)

PMCID: PMC7256567

# An Overview of Chatbot Technology

Guest Editor (s): Ilias Maglogiannis,15 Lazaros Iliadis,16 and Elias Pimenidis17

15Department of Digital Systems, University of Piraeus, Piraeus, Greece

16Department of Civil Engineering, Lab of Mathematics and Informatics (ISCE), Democritus University of Thrace, Xanthi, Greece

17Department of Computer Science and Creative Technologies, University of the West of England, Bristol, UK

Ilias Maglogiannis, Email: [rg.ipinu@olgami](mailto:dev@null).

[Contributor Information](#article-aaff-info).

[Eleni Adamopoulou](https://pubmed.ncbi.nlm.nih.gov/?term=Adamopoulou%20E%5BAuthor%5D)![corresponding author](/corehtml/pmc/pmcgifs/corrauth.gif) and [Lefteris Moussiades](https://pubmed.ncbi.nlm.nih.gov/?term=Moussiades%20L%5BAuthor%5D)

### Eleni Adamopoulou

Department of Computer Science, International Hellenic University, Agios Loukas, 65404 Kavala, Greece

Find articles by [Eleni Adamopoulou](https://pubmed.ncbi.nlm.nih.gov/?term=Adamopoulou%20E%5BAuthor%5D)

### Lefteris Moussiades

Department of Computer Science, International Hellenic University, Agios Loukas, 65404 Kavala, Greece

Find articles by [Lefteris Moussiades](https://pubmed.ncbi.nlm.nih.gov/?term=Moussiades%20L%5BAuthor%5D)

Author informationCopyright and License information [PMC Disclaimer](/pmc/about/disclaimer/)

Department of Computer Science, International Hellenic University, Agios Loukas, 65404 Kavala, Greece

Eleni Adamopoulou, Email: [rg.uhi.sc@omadale](mailto:dev@null).

[Contributor Information](#article-aaff-info).

![corresponding author](/corehtml/pmc/pmcgifs/corrauth.gif)Corresponding author.

[Copyright](/pmc/about/copyright/) © IFIP International Federation for Information Processing 2020

This article is made available via the PMC Open Access Subset for unrestricted research re-use and secondary analysis in any form or by any means with acknowledgement of the original source. These permissions are granted for the duration of the World Health Organization (WHO) declaration of COVID-19 as a global pandemic.

## Abstract

The use of chatbots evolved rapidly in numerous fields in recent years, including Marketing, Supporting Systems, Education, Health Care, Cultural Heritage, and Entertainment. In this paper, we first present a historical overview of the evolution of the international community’s interest in chatbots. Next, we discuss the motivations that drive the use of chatbots, and we clarify chatbots’ usefulness in a variety of areas. Moreover, we highlight the impact of social stereotypes on chatbots design. After clarifying necessary technological concepts, we move on to a chatbot classification based on various criteria, such as the area of knowledge they refer to, the need they serve and others. Furthermore, we present the general architecture of modern chatbots while also mentioning the main platforms for their creation. Our engagement with the subject so far, reassures us of the prospects of chatbots and encourages us to study them in greater extent and depth.

**Keywords:** Chatbot, Chatbot architecture, Artificial Intelligence, Machine learning, NLU

## Introduction

Artificial Intelligence (ΑΙ) increasingly integrates our daily lives with the creation and analysis of intelligent software and hardware, called intelligent agents. Intelligent agents can do a variety of tasks ranging from labor work to sophisticated operations. A chatbot is a typical example of an AI system and one of the most elementary and widespread examples of intelligent Human-Computer Interaction (HCI) \[ [1](#CR1)\]. It is a computer program, which responds like a smart entity when conversed with through text or voice and understands one or more human languages by Natural Language Processing (NLP) \[ [2](#CR2)\]. In the lexicon, a chatbot is defined as “A computer program designed to simulate conversation with human users, especially over the Internet” \[ [3](#CR3)\]. Chatbots are also known as smart bots, interactive agents, digital assistants, or artificial conversation entities.

Chatbots can mimic human conversation and entertain users but they are not built only for this. They are useful in applications such as education, information retrieval, business, and e-commerce \[ [4](#CR4)\]. They became so popular because there are many advantages of chatbots for users and developers too. Most implementations are platform-independent and instantly available to users without needed installations. Contact to the chatbot is spread through a user’s social graph without leaving the messaging app the chatbot lives in, which provides and guarantees the user’s identity. Moreover, payment services are integrated into the messaging system and can be used safely and reliably and a notification system re-engages inactive users. Chatbots are integrated with group conversations or shared just like any other contact, while multiple conversations can be carried forward in parallel. Knowledge in the use of one chatbot is easily transferred to the usage of other chatbots, and there are limited data requirements. Communication reliability, fast and uncomplicated development iterations, lack of version fragmentation, and limited design efforts for the interface are some of the advantages for developers too \[ [5](#CR5)\].

The rest of the paper is organized as follows. In Sect. [2](#Sec2), we briefly present the history of chatbots and highlight the growing interest of the research community. In Sect. [3](#Sec3), some issues about the association with chatbots are discussed, while in Sect. [4](#Sec4), essential concepts relevant to chatbot technology are described. Next, in Sect. [5](#Sec5), we present a classification of existing chatbots while in Sect. [6](#Sec6), we present the underlying chatbot architecture and the leading platforms for their development. Finally, Sect. [7](#Sec7) reports conclusions and highlights further research topics.

## History

Alan Turing in 1950 proposed the Turing Test (“Can machines think?”), and it was at that time that the idea of a chatbot was popularized \[ [6](#CR6)\]. The first known chatbot was Eliza, developed in 1966, whose purpose was to act as a psychotherapist returning the user utterances in a question form \[ [7](#CR7)\]. It used simple pattern matching \[ [8](#CR8)\] and a template-based response mechanism. Its conversational ability was not good, but it was enough to confuse people at a time when they were not used to interacting with computers and give them the impetus to start developing other chatbots \[ [5](#CR5)\]. An improvement over ELIZA was a chatbot with a personality named PARRY developed in 1972 \[ [9](#CR9)\]. In 1995, the chatbot ALICE was developed which won the Loebner Prize, an annual Turing Test, in years 2000, 2001, and 2004. It was the first computer to gain the rank of the “most human computer” \[ [10](#CR10)\]. ALICE relies on a simple pattern-matching algorithm with the underlying intelligence based on the Artificial Intelligence Markup Language (AIML) \[ [11](#CR11)\], which makes it possible for developers to define the building blocks of the chatbot knowledge \[ [10](#CR10)\]. Chatbots, like SmarterChild \[ [12](#CR12)\] in 2001, were developed and became available through messenger applications. The next step was the creation of virtual personal assistants like Apple Siri \[ [13](#CR13)\], Microsoft Cortana \[ [14](#CR14)\], Amazon Alexa \[ [15](#CR15)\], Google Assistant \[ [16](#CR16)\] and IBM Watson \[ [17](#CR17)\].

As shown in Fig. [1](/pmc/articles/PMC7256567/figure/Fig1/) according to Scopus \[ [18](#CR18)\], there was a rapid growth of interest in chatbots especially after the year 2016. Many chatbots were developed for industrial solutions while there is a wide range of less famous chatbots relevant to research and their applications \[ [19](#CR19)\].

[![An external file that holds a picture, illustration, etc. Object name is 500087_1_En_31_Fig1_HTML.jpg](/pmc/articles/PMC7256567/bin/500087_1_En_31_Fig1_HTML.jpg)](/core/lw/2.0/html/tileshop_pmc/tileshop_pmc_inline.html?title=Click%20on%20image%20to%20zoom&p=PMC3&id=7256567_500087_1_En_31_Fig1_HTML.jpg)

[Open in a separate window](/pmc/articles/PMC7256567/figure/Fig1/?report=objectonly)

[Fig. 1.](/pmc/articles/PMC7256567/figure/Fig1/)

Search results in Scopus by year for “chatbot” or “conversation agent” or “conversational interface” as keywords from 2000 to 2019.

## Associate with Chatbots

Why do users use chatbots? Chatbots seem to hold tremendous promise for providing users with quick and convenient support responding specifically to their questions. The most frequent motivation for chatbot users is considered to be productivity, while other motives are entertainment, social factors, and contact with novelty. However, to balance the motivations mentioned above, a chatbot should be built in a way that acts as a tool, a toy, and a friend at the same time \[ [8](#CR8)\].

The reduction in customer service costs and the ability to handle many users at a time are some of the reasons why chatbots have become so popular in business groups \[ [20](#CR20)\]. Chatbots are no longer seen as mere assistants, and their way of interacting brings them closer to users as friendly companions \[ [21](#CR21)\]. According to a study, social media user requests on chatbots for customer service are emotional and informational, with the first category rate being more than 40% and with users not intending to take specific information \[ [22](#CR22)\]. Machine learning is what gives the capability to customer service chatbots for sentiment detection and also the ability to relate to customers emotionally as human operators do \[ [23](#CR23)\].

Concerning the user’s trust in chatbots, it depends on factors relative to the chatbot itself, like how much it responds like a human, how it is self-presented, and how much professional its appearance is. Nevertheless, it depends also on factors relative to its service contexts, like the brand of the chatbot host, privacy and security in the chatbot, and other risk issues about the topic of the request \[ [10](#CR10)\]. Human-likeness can be suggested by using human figures (visual cues), human-associated names, or identity (identity cues) and mimicking of human languages (conversational cues) \[ [24](#CR24)\]. It has already been studied the influence of personification and interactivity in people’s disclosures around sensitive topics, such as psychological stressors \[ [25](#CR25)\]. Important to mention is that chatbots still lack empathy understanding meaning and that they are not as capable as humans of understanding conversational undertones. Though progress has been made in this field, and soon machines will not only be able to understand what somebody is saying but also what is the feeling of what he is saying \[ [26](#CR26)\].

However, a biased view of gender is revealed, as most of the chatbots perform tasks that echo historically feminine roles and articulate these features with stereotypical behaviors. Accordingly, general or specialized chatbots automate work that is coded as female, given that they mainly operate in service or assistance related contexts, acting as personal assistants or secretaries \[ [21](#CR21)\].

Soon we will live in a world where conversational partners will be humans or chatbots, and in many cases, we will not know and will not care what our conversational partner will be \[ [27](#CR27)\].

## Essential Concepts

Below are some fundamental concepts related to chatbot technology.

**Pattern Matching** is predicated on representative stimulus-response blocks. A sentence (stimuli) is entered, and output (response) is created consistent with the user input \[ [11](#CR11)\]. Eliza and ALICE were the first chatbots developed using pattern recognition algorithms. The disadvantage of this approach is that the responses are entirely predictable, repetitive, and lack the human touch. Also, there is no storage of past responses, which can lead to looping conversations \[ [28](#CR28)\].

The **Artificial Intelligence Markup Language (AIML)** was created from 1995 to 2000, and it is based on the concepts of Pattern Recognition or Pattern Matching technique. It is applied to natural language modeling for the dialogue between humans and chatbots that follow the stimulus-response approach. It is an XML-based markup language and it is tag-based. As shown in Fig. [2](/pmc/articles/PMC7256567/figure/Fig2/), AIML is based on basic units of dialogue called categories (tag <category>) which are formed by user input patterns (tag <pattern>) and chatbot responses (tag <template>) \[ [11](#CR11)\].

[![An external file that holds a picture, illustration, etc. Object name is 500087_1_En_31_Fig2_HTML.jpg](/pmc/articles/PMC7256567/bin/500087_1_En_31_Fig2_HTML.jpg)](/core/lw/2.0/html/tileshop_pmc/tileshop_pmc_inline.html?title=Click%20on%20image%20to%20zoom&p=PMC3&id=7256567_500087_1_En_31_Fig2_HTML.jpg)

[Open in a separate window](/pmc/articles/PMC7256567/figure/Fig2/?report=objectonly)

[Fig. 2.](/pmc/articles/PMC7256567/figure/Fig2/)

Example of AIML code

**Latent Semantic Analysis (LSA)** may be used together with AIML for the development of chatbots. It is used to discover likenesses between words as vector representation \[ [29](#CR29)\]. Template-based questions like greetings and general questions can be answered using AIML while other unanswered questions use LSA to give replies \[ [30](#CR30)\].

**Chatscript**, being the successor of the AIML language, is an expert system, which consists of an open-source scripting language and the engine that runs it. It is comprised of rules which are associated with topics, finding the best item that matches the user query string and executing a rule in that topic. Chatscript also includes long-term memory in the form of \\$ variables which can be used to store specific user information like the name or age of the user. It is also case-sensitive, widening the possible responses that can be given to the same user input based on the intended emotion, as uppercase is typically used in conversations to indicate emphasis \[ [28](#CR28)\].

**RiveScript** is a plain text, line-based scripting language for the development of chatbots and other conversational entities. It is open-source with available interfaces for Go, Java, JavaScript, Perl, and Python \[ [31](#CR31)\].

**Natural Language Processing (NLP)**, an area of artificial intelligence, explores the manipulation of natural language text or speech by computers. Knowledge of the understanding and use of human language is gathered to develop techniques that will make computers understand and manipulate natural expressions to perform desired tasks \[ [32](#CR32)\]. Most NLP techniques are based on machine learning.

**Natural Language Understanding (NLU)** is at the core of any NLP task. It is a technique to implement natural user interfaces such as a chatbot. NLU aims to extract context and meanings from natural language user inputs, which may be unstructured and respond appropriately according to user intention \[ [32](#CR32)\]. It identifies user intent and extracts domain-specific entities. More specifically, an **intent** represents a mapping between what a user says and what action should be taken by the chatbot. Actions correspond to the steps the chatbot will take when specific intents are triggered by user inputs and may have parameters for specifying detailed information about it \[ [28](#CR28)\]. Intent detection is typically formulated as sentence classification in which single or multiple intent labels are predicted for each sentence \[ [32](#CR32)\].

An **entity** is a tool for extracting parameter values from natural language inputs. For example, consider the sentence “What is the weather in Greece?”. The user intent is to learn the weather forecast. The entity value is Greece. Therefore, the user asks for the weather forecast in Greece \[ [33](#CR33)\]. Entities can be either system-defined or developer-defined. For example, the system entity @sys.date corresponds to standard date references like 10 August 2019 or the 10th of August \[ [28](#CR28)\]. Domain entity extraction usually referred to as a slot-filling problem, is formulated as a sequential tagging problem where parts of a sentence are extracted and tagged with domain entities \[ [32](#CR32)\].

Finally, **contexts** are strings that store the context of the object the user is referring to or talking about. For example, a user might refer to a previously defined object in his following sentence. A user may input “Switch on the fan.” Here the context to be saved is the fan so that when a user says, “Switch it off” as the next input, the intent “switch off” may be invoked on the context “fan” \[ [28](#CR28)\].

## Types of Chatbots

Chatbots can be classified using different parameters: the knowledge domain, the service provided, the goals, the input processing and response generation method, the human-aid, and the build method.

Classification based on the **knowledge domain** considers the knowledge a chatbot can access or the amount of data it is trained upon. **Open domain** chatbots can talk about general topics and respond appropriately, while **closed domain** chatbots are focused on a particular knowledge domain and might fail to respond to other questions \[ [34](#CR34)\].

Classification based on the **service provided** considers the sentimental proximity of the chatbot to the user, the amount of intimate interaction that takes place, and it is also dependent upon the task the chatbot is performing. **Interpersonal** chatbots lie in the domain of communication and provide services such as Restaurant booking, Flight booking, and FAQ bots. They are not companions of the user, but they get information and pass them on to the user. They can have a personality, can be friendly, and will probably remember information about the user, but they are not obliged or expected to do so. **Intrapersonal** chatbots exist within the personal domain of the user, such as chat apps like Messenger, Slack, and WhatsApp. They are companions to the user and understand the user like a human does. **Inter-agent** chatbots become omnipresent while all chatbots will require some inter-chatbot communication possibilities. The need for protocols for inter-chatbot communication has already emerged. Alexa-Cortana integration is an example of inter-agent communication \[ [34](#CR34)\].

Classification based on the **goals** considers the primary goal chatbots aim to achieve. **Informative** chatbots are designed to provide the user with information that is stored beforehand or is available from a fixed source, like FAQ chatbots. **Chat-based/Conversational** chatbots talk to the user, like another human being, and their goal is to respond correctly to the sentence they have been given. **Task-based** chatbots perform a specific task such as booking a flight or helping somebody. These chatbots are intelligent in the context of asking for information and understanding the user’s input. Restaurant booking bots and FAQ chatbots are examples of Task-based chatbots \[ [34](#CR34), [35](#CR35)\].

Classification based on the **input processing and response generation method** takes into account the method of processing inputs and generating responses. There are three models used to produce the appropriate responses: **rule-based** model, **retrieval-based** model, and **generative** model \[ [36](#CR36)\].

**Rule-based** model chatbots are the type of architecture which most of the first chatbots have been built with, like numerous online chatbots. They choose the system response based on a fixed predefined set of rules, based on recognizing the lexical form of the input text without creating any new text answers. The knowledge used in the chatbot is humanly hand-coded and is organized and presented with conversational patterns \[ [28](#CR28)\]. A more comprehensive rule database allows the chatbot to reply to more types of user input. However, this type of model is not robust to spelling and grammatical mistakes in user input. Most existing research on rule-based chatbots studies response selection for single-turn conversation, which only considers the last input message. In more human-like chatbots, multi-turn response selection takes into consideration previous parts of the conversation to select a response relevant to the whole conversation context \[ [37](#CR37)\].

A little different from the rule-based model is the **retrieval-based** model, which offers more flexibility as it queries and analyzes available resources using APIs \[ [36](#CR36)\]. A retrieval-based chatbot retrieves some response candidates from an index before it applies the matching approach to the response selection \[ [37](#CR37)\].

The **generative** model generates answers in a better way than the other three models, based on current and previous user messages. These chatbots are more human-like and use machine learning algorithms and deep learning techniques. However, there are difficulties in building and training them \[ [36](#CR36)\].

Another classification for chatbots considers the amount of **human-aid** in their components. **Human-aided** chatbots utilize human computation in at least one element from the chatbot. Crowd workers, freelancers, or full-time employees can embody their intelligence in the chatbot logic to fill the gaps caused by limitations of fully automated chatbots. While human computation, compared to rule-based algorithms and machine learning, provides more flexibility and robustness, still, it cannot process a given piece of information as fast as a machine, which makes it hard to scale to more user requests \[ [35](#CR35)\].

Chatbots can also be classified according to the permissions provided by their development platform. Development platforms can be of open-source, such as RASA, or can be of proprietary code such as development platforms typically offered by large companies such as Google or IBM. **Open-source platforms** provide the chatbot designer with the ability to intervene in most aspects of implementation. **Closed platforms**, typically act as black boxes, which may be a significant disadvantage depending on the project requirements. However, access to state-of-the-art technologies may be considered more immediate for large companies. Moreover, one may assume that chatbots developed based on large companies’ platforms may be benefited by a large amount of data that these companies collect.

Of course, chatbots do not exclusively belong to one category or another, but these categories exist in each chatbot in varying proportions.

## Design and Development

The design and development of a chatbot involve a variety of techniques \[ [29](#CR29)\]. Understanding what the chatbot will offer and what category falls into helps developers pick the algorithms or platforms and tools to build it. At the same time, it also helps the end-users understand what to expect \[ [34](#CR34)\].

The requirements for designing a chatbot include accurate knowledge representation, an answer generation strategy, and a set of predefined neutral answers to reply when user utterance is not understood \[ [38](#CR38)\]. The first step in designing any system is to divide it into constituent parts according to a standard so that a modular development approach can be followed \[ [28](#CR28)\]. In Fig. [3](/pmc/articles/PMC7256567/figure/Fig3/), a general chatbot architecture is introduced.

[![An external file that holds a picture, illustration, etc. Object name is 500087_1_En_31_Fig3_HTML.jpg](/pmc/articles/PMC7256567/bin/500087_1_En_31_Fig3_HTML.jpg)](/core/lw/2.0/html/tileshop_pmc/tileshop_pmc_inline.html?title=Click%20on%20image%20to%20zoom&p=PMC3&id=7256567_500087_1_En_31_Fig3_HTML.jpg)

[Open in a separate window](/pmc/articles/PMC7256567/figure/Fig3/?report=objectonly)

[Fig. 3.](/pmc/articles/PMC7256567/figure/Fig3/)

General chatbot architecture

The process starts with a user’s request, for example, “What is the meaning of environment?”, to the chatbot using a messenger app like Facebook, Slack, WhatsApp, WeChat or Skype, or an app using text or speech input like Amazon Echo \[ [39](#CR39)\].

After the chatbot receives the user request, the Language Understanding Component parses it to infer the user’s intention and the associated information (intent: “translate,” entities: \[word: “environment”\]) \[ [35](#CR35)\].

Once a chatbot reaches the best interpretation it can, it must determine how to proceed \[ [40](#CR40)\]. It can act upon the new information directly, remember whatever it has understood and wait to see what happens next, require more context information or ask for clarification.

When the request is understood, action execution and information retrieval take place. The chatbot performs the requested actions or retrieves the data of interest from its data sources, which may be a database, known as the Knowledge Base of the chatbot, or external resources that are accessed through an API call \[ [35](#CR35)\].

Upon retrieval, the Response Generation Component uses Natural Language Generation (NLG) \[ [41](#CR41)\] to prepare a natural language human-like response to the user based on the intent and context information returned from the user message analysis component. The appropriate responses are produced by one of the three models mentioned in Sect. [5](#Sec5) of the paper: rule-based, retrieval based, and generative model \[ [36](#CR36)\].

A Dialogue Management Component keeps and updates the context of a conversation which is the current intent, identified entities, or missing entities required to fulfill user requests. Moreover, it requests missing information, processes clarifications by users, and asks follow-up questions. For example, the chatbot may respond: “Would you like to tell me as well an example sentence with the word environment?” \[ [35](#CR35)\].

Many commercial and open-source options are available for the development of a chatbot. The number of chatbot-related technologies is already overwhelming and growing each day \[ [42](#CR42)\]. Chatbots are developed in two ways: using any programming language like Java, Clojure, Python, C++, PHP, Ruby, and Lisp or using state-of-the-art platforms. At this time, we are distinguishing six leading NLU cloud platforms that developers can use to create applications able to understand natural languages: Google’s DialogFlow \[ [43](#CR43)\], Facebook’s wit.ai \[ [44](#CR44)\], Microsoft LUIS \[ [45](#CR45)\], IBM Watson Conversation \[ [17](#CR17)\], Amazon Lex \[ [46](#CR46)\], and SAP Conversation AI \[ [47](#CR47)\]. All these platforms are supported by machine learning. They share some standard functionality (they are cloud-based, they support various programming and natural languages) but differ significantly in other aspects \[ [33](#CR33)\]. Other known chatbot development platforms are RASA \[ [48](#CR48)\], Botsify \[ [49](#CR49)\], Chatfuel \[ [50](#CR50)\], Manychat \[ [51](#CR51)\], Flow XO \[ [52](#CR52)\], Chatterbot \[ [53](#CR53)\], Pandorabots \[ [54](#CR54)\], Botkit \[ [55](#CR55)\], and Botlytics \[ [56](#CR56)\].

## Conclusions

Minimal human interference in the use of devices is the goal of our world of technology. Chatbots can reach out to a broad audience on messaging apps and be more effective than humans are. At the same time, they may develop into a capable information-gathering tool. They provide significant savings in the operation of customer service departments. With further development of AI and machine learning, somebody may not be capable of understanding whether he talks to a chatbot or a real-life agent.

We consider that this research provides useful information about the basic principles of chatbots. Users and developers can have a more precise understanding of chatbots and get the ability to use and create them appropriately for the purpose they aim to operate.

Further work of this research would be exploring in detail existing chatbot platforms and compare them. It would also be interesting to examine the degree of ingenuity and functionality of current chatbots. Some ethical issues relative to chatbots would be worth studying like abuse and deception, as people, on some occasions, believe they talk to real humans while they are talking to chatbots.

## Acknowledgments

This work is partially supported by the MPhil program “Advanced Technologies in Informatics and Computers”, hosted by the Department of Computer Science, International Hellenic University.

## Contributor Information

Ilias Maglogiannis, Email: [rg.ipinu@olgami](mailto:dev@null).

Lazaros Iliadis, Email: [rg.htud.livic@sidailil](mailto:dev@null).

Elias Pimenidis, Email: [ku.ca.ewu@sidinemip.saile](mailto:dev@null).

Eleni Adamopoulou, Email: [rg.uhi.sc@omadale](mailto:dev@null).

Lefteris Moussiades, Email: [rg.uhi.sc@suoml](mailto:dev@null).

## References

1\. Bansal H, Khan R. A review paper on human computer interaction. Int. J. Adv. Res. Comput. Sci. Softw. Eng. 2018;8:53.\[ [Google Scholar](https://scholar.google.com/scholar_lookup?journal=Int.+J.+Adv.+Res.+Comput.+Sci.+Softw.+Eng.&title=A+review+paper+on+human+computer+interaction&author=H+Bansal&author=R+Khan&volume=8&publication_year=2018&pages=53&)\]

2\. Khanna Anirudh, Pandey Bishwajeet, Vashishta Kushagra, Kalia Kartik, Pradeepkumar Bhale, Das Teerath. A Study of Today's A.I. through Chatbots and Rediscovery of Machine Intelligence. International Journal of u- and e-Service, Science and Technology. 2015;8(7):277–284.\[ [Google Scholar](https://scholar.google.com/scholar_lookup?journal=International+Journal+of+u-+and+e-Service,+Science+and+Technology&title=A+Study+of+Today's+A.I.+through+Chatbots+and+Rediscovery+of+Machine+Intelligence&author=Anirudh+Khanna&author=Bishwajeet+Pandey&author=Kushagra+Vashishta&author=Kartik+Kalia&author=Bhale+Pradeepkumar&volume=8&issue=7&publication_year=2015&pages=277-284&)\]

3\. chatbot \| Definition of chatbot in English by Lexico Dictionaries. [https://www.lexico.com/en/definition/chatbot](https://www.lexico.com/en/definition/chatbot)

4\. Abu Shawar BA, Atwell ES. Chatbots: are they really useful? J. Lang. Technol. Comput. Linguist. 2007;22:29–49.\[ [Google Scholar](https://scholar.google.com/scholar_lookup?journal=J.+Lang.+Technol.+Comput.+Linguist.&title=Chatbots:+are+they+really+useful?&author=BA+Abu+Shawar&author=ES+Atwell&volume=22&publication_year=2007&pages=29-49&)\]

5\. Klopfenstein, L., Delpriori, S., Malatini, S., Bogliolo, A.: 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. Association for Computing Machinery (2017)

6\. Turing AM. Computing machinery and intelligence. Mind. 1950;59:433–460.\[ [Google Scholar](https://scholar.google.com/scholar_lookup?journal=Mind&title=Computing+machinery+and+intelligence&author=AM+Turing&volume=59&publication_year=1950&pages=433-460&)\]

7\. Weizenbaum J. ELIZA—a computer program for the study of natural language communication between man and machine. Commun. ACM. 1966;9:36–45.\[ [Google Scholar](https://scholar.google.com/scholar_lookup?journal=Commun.+ACM&title=ELIZA—a+computer+program+for+the+study+of+natural+language+communication+between+man+and+machine&author=J+Weizenbaum&volume=9&publication_year=1966&pages=36-45&)\]

8\. Brandtzaeg PB, Følstad A, et al. Why people use chatbots. In: Kompatsiaris I, et al., editors. Internet Science. Cham: Springer; 2017. pp. 377–392. \[ [Google Scholar](https://scholar.google.com/scholar_lookup?title=Internet+Science&author=PB+Brandtzaeg&author=A+Følstad&publication_year=2017&)\]

9\. Colby KM, Weber S, Hilf FD. Artificial paranoia. Artif. Intell. 1971;2:1–25.\[ [Google Scholar](https://scholar.google.com/scholar_lookup?journal=Artif.+Intell.&title=Artificial+paranoia&author=KM+Colby&author=S+Weber&author=FD+Hilf&volume=2&publication_year=1971&pages=1-25&)\]

10\. Wallace RS. The anatomy of A.L.I.C.E. In: Epstein R, Roberts G, Beber G, editors. Parsing the Turing Test: Philosophical and Methodological Issues in the Quest for the Thinking Computer. Cham: Springer; 2009. pp. 181–210. \[ [Google Scholar](https://scholar.google.com/scholar_lookup?title=Parsing+the+Turing+Test:+Philosophical+and+Methodological+Issues+in+the+Quest+for+the+Thinking+Computer&author=RS+Wallace&publication_year=2009&)\]

11\. Bruno Marietto Maria das Gracas, Aguiar Rafael Varagode, Barbosa Gislene de Oliveira, Botelho Wagner Tanaka, Pimentel Edson, Franca Robson dos Santos, da Silva Vera Lucia. Artificial Intelligence Markup Language: A Brief Tutorial. International Journal of Computer Science & Engineering Survey. 2013;4(3):1–20.\[ [Google Scholar](https://scholar.google.com/scholar_lookup?journal=International+Journal+of+Computer+Science+&+Engineering+Survey&title=Artificial+Intelligence+Markup+Language:+A+Brief+Tutorial&author=Maria+das+Gracas+Bruno+Marietto&author=Rafael+Varagode+Aguiar&author=Gislene+de+Oliveira+Barbosa&author=Wagner+Tanaka+Botelho&author=Edson+Pimentel&volume=4&issue=3&publication_year=2013&pages=1-20&)\]

12\. Molnár, G., Zoltán, S.: The role of chatbots in formal education. Presented at the 15 September 2018

13\. Siri. [https://www.apple.com/siri/](https://www.apple.com/siri/)

14\. Personal Digital Assistant - Cortana Home Assistant – Microsoft. [https://www.microsoft.com/en-us/cortana](https://www.microsoft.com/en-us/cortana)

15\. What exactly is Alexa? Where does she come from? And how does she work? [https://www.digitaltrends.com/home/what-is-amazons-alexa-and-what-can-it-do/](https://www.digitaltrends.com/home/what-is-amazons-alexa-and-what-can-it-do/)

16\. Google Assistant, your own personal Google. [https://assistant.google.com/](https://assistant.google.com/)

17\. IBM Watson. [https://www.ibm.com/watson](https://www.ibm.com/watson)

18\. Scopus - Document search. [https://www.scopus.com/search/form.uri?display=basic](https://www.scopus.com/search/form.uri?display=basic)

19\. Colace F, De Santo M, Lombardi M, Pascale F, Pietrosanto A, Lemma S. Chatbot for e-learning: a case of study. Int. J. Mech. Eng. Robot. Res. 2018;7:528–533.\[ [Google Scholar](https://scholar.google.com/scholar_lookup?journal=Int.+J.+Mech.+Eng.+Robot.+Res.&title=Chatbot+for+e-learning:+a+case+of+study&author=F+Colace&author=M+De+Santo&author=M+Lombardi&author=F+Pascale&author=A+Pietrosanto&volume=7&publication_year=2018&pages=528-533&)\]

20\. Ranoliya, B.R., Raghuwanshi, N., Singh, S.: Chatbot for university related FAQs. In: 2017 International Conference on Advances in Computing, Communications and Informatics (ICACCI), Udupi, pp. 1525–1530 (2017)

21\. da Costa PCF. Conversing with personal digital assistants: on gender and artificial intelligence. J. Sci. Technol. Arts. 2018;10:59–72.\[ [Google Scholar](https://scholar.google.com/scholar_lookup?journal=J.+Sci.+Technol.+Arts&title=Conversing+with+personal+digital+assistants:+on+gender+and+artificial+intelligence&author=PCF+da+Costa&volume=10&publication_year=2018&pages=59-72&)\]

22\. Xu, A., Liu, Z., Guo, Y., Sinha, V., Akkiraju, R.: A new chatbot for customer service on social media. In: Proceedings of the 2017 CHI Conference on Human Factors in Computing Systems, pp. 3506–3510. ACM, New York (2017)

23\. Følstad A, Nordheim CB, Bjørkli CA. What makes users trust a chatbot for customer service? An exploratory interview study. In: Bodrunova SS, editor. Internet Science; Cham: Springer; 2018. pp. 194–208. \[ [Google Scholar](https://scholar.google.com/scholar_lookup?journal=Internet+Science&title=What+makes+users+trust+a+chatbot+for+customer+service?+An+exploratory+interview+study&author=A+Følstad&author=CB+Nordheim&author=CA+Bjørkli&publication_year=2018&pages=194-208&)\]

24\. Go E, Sundar SS. Humanizing chatbots: the effects of visual, identity and conversational cues on humanness perceptions. Comput. Hum. Behav. 2019;97:304–316.\[ [Google Scholar](https://scholar.google.com/scholar_lookup?journal=Comput.+Hum.+Behav.&title=Humanizing+chatbots:+the+effects+of+visual,+identity+and+conversational+cues+on+humanness+perceptions&author=E+Go&author=SS+Sundar&volume=97&publication_year=2019&pages=304-316&)\]

25\. Sannon, S., Stoll, B., DiFranzo, D., Jung, M., Bazarova, N.N.: How personification and interactivity influence stress-related disclosures to conversational agents. In: Companion of the 2018 ACM Conference on Computer Supported Cooperative Work and Social Computing, pp. 285–288. ACM, New York (2018)

26\. Fernandes, A.: NLP, NLU, NLG and how Chatbots work. [https://chatbotslife.com/nlp-nlu-nlg-and-how-chatbots-work-dd7861dfc9df](https://chatbotslife.com/nlp-nlu-nlg-and-how-chatbots-work-dd7861dfc9df)

27\. Dale R. The return of the chatbots. Nat. Lang. Eng. 2016;22:811–817.\[ [Google Scholar](https://scholar.google.com/scholar_lookup?journal=Nat.+Lang.+Eng.&title=The+return+of+the+chatbots&author=R+Dale&volume=22&publication_year=2016&pages=811-817&)\]

28\. Ramesh K, Ravishankaran S, Joshi A, Chandrasekaran K. A survey of design techniques for conversational agents. In: Kaushik S, Gupta D, Kharb L, Chahal D, editors. Information, Communication and Computing Technology; Singapore: Springer; 2017. pp. 336–350. \[ [Google Scholar](https://scholar.google.com/scholar_lookup?journal=Information,+Communication+and+Computing+Technology&title=A+survey+of+design+techniques+for+conversational+agents&author=K+Ramesh&author=S+Ravishankaran&author=A+Joshi&author=K+Chandrasekaran&publication_year=2017&pages=336-350&)\]

29\. Akma N, Hafiz M, Zainal A, Fairuz M, Adnan Z. Review of chatbots design techniques. Int. J. Comput. Appl. 2018;181:7–10.\[ [Google Scholar](https://scholar.google.com/scholar_lookup?journal=Int.+J.+Comput.+Appl.&title=Review+of+chatbots+design+techniques&author=N+Akma&author=M+Hafiz&author=A+Zainal&author=M+Fairuz&author=Z+Adnan&volume=181&publication_year=2018&pages=7-10&)\]

30\. An e-business chatbot using AIML and LSA - Semantic Scholar. [https://www.semanticscholar.org/paper/An-e-business-chatbot-using-AIML-and-LSA-Thomas/906c91ca389a29b47a0ec072d54e23ddaa757c88](https://www.semanticscholar.org/paper/An-e-business-chatbot-using-AIML-and-LSA-Thomas/906c91ca389a29b47a0ec072d54e23ddaa757c88)

31\. Artificial Intelligence Scripting Language - RiveScript.com. [https://www.rivescript.com/](https://www.rivescript.com/)

32\. Jung S. Semantic vector learning for natural language understanding. Comput. Speech Lang. 2019;56:130–145.\[ [Google Scholar](https://scholar.google.com/scholar_lookup?journal=Comput.+Speech+Lang.&title=Semantic+vector+learning+for+natural+language+understanding&author=S+Jung&volume=56&publication_year=2019&pages=130-145&)\]

33\. Canonico, M., Russis, L.D.: A comparison and critique of natural language understanding tools. Presented at the (2018)

34\. Nimavat K, Champaneria T. Chatbots: an overview types, architecture, tools and future possibilities. Int. J. Sci. Res. Dev. 2017;5:1019–1024.\[ [Google Scholar](https://scholar.google.com/scholar_lookup?journal=Int.+J.+Sci.+Res.+Dev.&title=Chatbots:+an+overview+types,+architecture,+tools+and+future+possibilities&author=K+Nimavat&author=T+Champaneria&volume=5&publication_year=2017&pages=1019-1024&)\]

35\. Kucherbaev P, Bozzon A, Houben G-J. Human-aided bots. IEEE Internet Comput. 2018;22:36–43.\[ [Google Scholar](https://scholar.google.com/scholar_lookup?journal=IEEE+Internet+Comput.&title=Human-aided+bots&author=P+Kucherbaev&author=A+Bozzon&author=G-J+Houben&volume=22&publication_year=2018&pages=36-43&)\]

36\. Hien, H.T., Cuong, P.-N., Nam, L.N.H., Nhung, H.L.T.K., Thang, L.D.: Intelligent assistants in higher-education environments: the FIT-EBot, a chatbot for administrative and learning support. In: Proceedings of the Ninth International Symposium on Information and Communication Technology, pp. 69–76. ACM, New York (2018)

37\. Wu, Y., Wu, W., Xing, C., Zhou, M., Li, Z.: Sequential Matching Network: A New Architecture for Multi-turn Response Selection in Retrieval-based Chatbots. [arXiv:1612.01627](http://arxiv.org/abs/1612.01627) \[cs\] (2016)

38\. Augello A, Gentile M, Dignum F. An overview of open-source chatbots social skills. In: Diplaris S, Satsiou A, Følstad A, Vafopoulos M, Vilarinho T, editors. Internet Science; Cham: Springer; 2018. pp. 236–248. \[ [Google Scholar](https://scholar.google.com/scholar_lookup?journal=Internet+Science&title=An+overview+of+open-source+chatbots+social+skills&author=A+Augello&author=M+Gentile&author=F+Dignum&publication_year=2018&pages=236-248&)\]

39\. Zumstein D, Hundertmark S. Chatbots – an interactive technology for personalized communication, transactions and services. IADIS Int. J. WWW/Internet. 2017;15:96–109.\[ [Google Scholar](https://scholar.google.com/scholar_lookup?journal=IADIS+Int.+J.+WWW/Internet&title=Chatbots+–+an+interactive+technology+for+personalized+communication,+transactions+and+services&author=D+Zumstein&author=S+Hundertmark&volume=15&publication_year=2017&pages=96-109&)\]

40\. Fern, A., et al.: The Best Open Source Chatbot Platforms in 2019 (2019). [https://blog.verloop.io/the-best-open-source-chatbot-platforms-in-2019/](https://blog.verloop.io/the-best-open-source-chatbot-platforms-in-2019/)

41\. Singh S, Darbari H, Bhattacharjee K, Verma S. Open source NLG systems: a survey with a vision to design a true NLG system. 2016;9:4409–4421.\[ [Google Scholar](https://scholar.google.com/scholar_lookup?journal=Open+source+NLG+systems:+a+survey+with+a+vision+to+design+a+true+NLG+system.&author=S+Singh&author=H+Darbari&author=K+Bhattacharjee&author=S+Verma&volume=9&publication_year=2016&pages=4409-4421&)\]

42\. Nayyar, D.A.: Chatbots and the Open Source Tools You Can Use to Develop Them (2019). [https://opensourceforu.com/2019/01/chatbots-and-the-open-source-tools-you-can-use-to-develop-them/](https://opensourceforu.com/2019/01/chatbots-and-the-open-source-tools-you-can-use-to-develop-them/)

43\. Dialogflow. [https://dialogflow.com/](https://dialogflow.com/)

44\. Wit.ai. [https://wit.ai/](https://wit.ai/)

45\. LUIS (Language Understanding) – Cognitive Services – Microsoft Azure. [https://www.luis.ai/home](https://www.luis.ai/home)

46\. Amazon Lex – Build Conversation Bots. [https://aws.amazon.com/lex/](https://aws.amazon.com/lex/)

47\. SAP Conversational AI \| Automate Customer Service With AI Chatbots. [https://cai.tools.sap](https://cai.tools.sap)

48\. Rasa: Open source conversational AI. [https://rasa.com/](https://rasa.com/)

49\. Botsify: Botsify - Create Automated Chatbots Online for Facebook Messenger or Website. [https://botsify.com](https://botsify.com)

50\. Chatfuel. [https://chatfuel.com/](https://chatfuel.com/)

51\. ManyChat – Chat Marketing Made Easy. [https://manychat.com/](https://manychat.com/)

52\. AI Online Chatbot Software, Live Chat on Websites. [https://flowxo.com/](https://flowxo.com/)

53\. About ChatterBot — ChatterBot 1.0.2 documentation. [https://chatterbot.readthedocs.io/en/stable/](https://chatterbot.readthedocs.io/en/stable/)

54\. Pandorabots: Home. [https://home.pandorabots.com/home.html](https://home.pandorabots.com/home.html)

55\. Botkit: Building Blocks for Building Bots. [https://botkit.ai/](https://botkit.ai/)

56\. Botlytics. [https://www.botlytics.co/](https://www.botlytics.co/)

* * *

Articles from Artificial Intelligence Applications and Innovations are provided here courtesy of **Nature Publishing Group**

* * *

###### Other Formats

- [PDF (581K)](/pmc/articles/PMC7256567/pdf/978-3-030-49186-4_Chapter_31.pdf)

###### Actions

- Cite
- Collections





Add to Collections







- Create a new collection
- Add to an existing collection

Name your collection:


Name must be less than characters


Choose a collection:


Unable to load your collection due to an error

Please try again

Add

Cancel


###### Share

- Permalink




Copy


###### RESOURCES

- Similar articles





No results available.


- Cited by other articles





No results available.


- Links to NCBI Databases



\[x\]

Cite

Copy
Download .nbib.nbib

Format:
AMA

APA

MLA

NLM


Follow NCBI

[Twitter](https://twitter.com/ncbi) [Facebook](https://www.facebook.com/ncbi.nlm) [LinkedIn](https://www.linkedin.com/company/ncbinlm) [GitHub](https://github.com/ncbi) [Blog](https://ncbiinsights.ncbi.nlm.nih.gov/)

[Connect with NLM](https://www.nlm.nih.gov/socialmedia/index.html)

- [SM-Twitter](https://twitter.com/NLM_NIH)
- [SM-Facebook](https://www.facebook.com/nationallibraryofmedicine)
- [SM-Youtube](https://www.youtube.com/user/NLMNIH)

National Library of Medicine

[8600 Rockville Pike\
\
Bethesda, MD 20894](https://www.google.com/maps/place/8600+Rockville+Pike,+Bethesda,+MD+20894/@38.9959508,-77.101021,17z/data=!3m1!4b1!4m5!3m4!1s0x89b7c95e25765ddb:0x19156f88b27635b8!8m2!3d38.9959508!4d-77.0988323)

[Web Policies](https://www.nlm.nih.gov/web_policies.html)

[FOIA](https://www.nih.gov/institutes-nih/nih-office-director/office-communications-public-liaison/freedom-information-act-office)

[HHS Vulnerability Disclosure](https://www.hhs.gov/vulnerability-disclosure-policy/index.html)

[Help](https://support.nlm.nih.gov/)

[Accessibility](https://www.nlm.nih.gov/accessibility.html)

[Careers](https://www.nlm.nih.gov/careers/careers.html)

- [NLM](//www.nlm.nih.gov/)
- [NIH](https://www.nih.gov/)
- [HHS](https://www.hhs.gov/)
- [USA.gov](https://www.usa.gov/)