0% found this document useful (0 votes)
256 views5 pages

Research Paper of Chatbot

This document describes the design and implementation of a chatbot. It discusses using Java programming and applets to create a dialog box for conversation between a user and the chatbot. The chatbot uses pattern matching to search a database of questions and responses. If a match is found, the corresponding response is returned, otherwise a default response is provided. Modules include functions for initializing the chatbot, getting user input, removing punctuation/capitalization, searching the database, and displaying responses.

Uploaded by

Learn Samadesh
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
256 views5 pages

Research Paper of Chatbot

This document describes the design and implementation of a chatbot. It discusses using Java programming and applets to create a dialog box for conversation between a user and the chatbot. The chatbot uses pattern matching to search a database of questions and responses. If a match is found, the corresponding response is returned, otherwise a default response is provided. Modules include functions for initializing the chatbot, getting user input, removing punctuation/capitalization, searching the database, and displaying responses.

Uploaded by

Learn Samadesh
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 5

Chatbot

Samadesh
Kushagra
Poudel
Singh
2021828544
2021507825
2nd Year/ 3rd Semester
2nd Year/ 3rd Semester
COLLEGE OF ENGINEERING
COLLEGE OF ENGINEERING
SHARDA UNIVERSITY NOIDA
SHARDA UNIVERSITY NOIDA
[email protected]
[email protected]

ABSTRACT: This research paper 1. INTRODUCTION


introduces chatbot which makes lots of Nowadays most people own a smartphone with instant
process easier. The main aim of this research messaging or social networking applications on them
is to make easier conversation between and they may use these applications to interact with
customer and a business with no delay. The merchants and sellers, so it would be game changing
if, without spending much time sellers could respond
chatbot is basically order taking with
to customers, 24 hours a day, 7 days a week. A chat
minimal user input and suggested for target bot, also known as chatterbot is a software that uses
markets that customers have little knowledge “instant messaging as the Application Interface” and
of IT. It can be integrated into any platform the messenger users can add the name of the bot to
with minimum configuration. their contact list in the same manner that they add
friends and colleagues.
The core technology used in chatbot is
natural language processing (“NLP”). Conversation is an interesting type of interaction
Further researches in machine learning have because they close the gap between human-computer
interaction (HCI) and human-human interaction
greatly improved the accuracy and
(HHI). This kind of communication can be
effectiveness of natural language processing, implemented for commercial purposes and is used to
making chatbots worthier option for many describe this kind of applications.
organizations and advances in
industrialization. A simple chatbot can be 2. Methodology:
created by loading an FAQ (frequently asked A. Data structure:
questions) into chatbot software. The Dynamic Arrays- it is a special type of array whose
functionality of the chatbot can be improved size can be modified during execution of program,
by integrating it into the organization’s according to user requirements.It can be implemented
enterprise software, allowing more personal through using malloc(),calloc() and free() in standard
questions to be answered, like “What is my library functions(stdlib.h).
balance?”, or “What is the status of my
order?”.
B. Linked list:
It is linear data structure which consist of nodes and
each node contains data value and reference(address) to
Keywords: Chatbot, Chatbot commerce, the next node. And your data is stored at non-
Electronic marketing contiguous memory location which makes insertion
and deletion operation easier. photo, is a Chatbot, how does the Chatbot speak to the user? And
significant test for highlight extraction how will be the conversation with the user and the
algorithms. chatbot is very important which is represented in the
following diagram.

C. Hash table:
Hash Tables-Hash Table is a data structure
which stores data in an associative manner. In
a hash table, data is stored in an array format,
where each data value has its own unique
index value. Access of data becomes very fast
if we know the index of the desired data.

3. Algorithm used:
The algorithms used are
 Hash functions- A hash function
which is responsible to converts a
given numeric or alphanumeric
 String filtering Fig.1: Use Case Diagram of Chatbot Design.
 Sorting
 Stemming A. Selection of OS
 Lemmatization
Windows is used for this project because it is
user friendly. It is also robust.

4. Hardware used: B. Selection of Software


1. Processor- 1.6GHz or faster processor. Eclipse software is used for programming in
2. Hard Disk- more than 10 GB. java. Because it contains basic workspace and it
3. Memory – at least 1 GB. is mostly used for java applications.

5.Software used: C. Creating a Chatbot


1. Windows 7 or above linux For creating a Chatbot, a program has to be
2. C++ written. Java programming language is used for
3. Chatterbox library programming. The Chatbot is created in such a
4. Firefox/Chrome/Internet Explorer way to help the user, improve the communication
5. Behavioral biometrics and amuse the user.

D. Creating a Chat
Design of chatbot:
The chat is created using a pattern that is known to
the user and could be easy to understand. Chat
A Chatbot refers to a chatting robot. It is a
dialog box show up to create conversation. This
communication simulating computer
dialog box is created using java applets.
program. It is all about the conversation with
the user. The conversation with a Chatbot is
E. Pattern Matching
very simple. It answers to the questions
asked by the user. During designing a It is a technique of artificial intelligence used in
the design of a Chatbot. The input is rows contain the response or answers. Columns
matched with the inputs saved in the in the array are applied to save different types of
database. questions that could asked by the user and
responses that a Chatbot can answer. There is
F.Simple
one row in the array which contains default
The design of a Chatbot is very simple. It responses which is used when the matching
just answers to the questions asked by the question is not found in the array.
user, if the question is found in the database.
B. Modules Description
G.Conversational and Entertaining
The description of the modules used in the
The Chatbot responses are a way known to implementation is given below [6]:
the user. The conversation follows a Basic
 Chatbot()
English language and interacts in an easy to
In this function, all the variables used for
read manner. The conversation between the
creating the dialog box are added. Default close
user and the Bot is entertaining. It is like
operation is set to EXIT_ON_CLOSE so that
talking to other person.
the dialog box closes on exit. Required
background colour is set using inbuilt set
Background () function.
Implementation of chatbot:  Random()
The input from the user is taken using get Text
Chatbot is a computer application which () function. All the punctuation marks in the
uses artificial intelligence to mimic human users input are removed using trim () function.
conversation. It helps the user by answering The uppercase letters are converted to
the questions asked by them. The program is lowercase. A variable called response is used to
implemented using Java programming hold a byte value and it is set to 0. While
language. Particularly Java and c++ applets response is 0, the match for the input is found in
are used. Applets are used because it is easy the database and it is returned as a response
to create the dialog box required for the which is displayed in the text area. If the
conversation between the user and the bot. response is 1, then the match for the input is not
Detailed implementation is given below [5]: found in the database. In this case, a default
response is returned. Random () function is used
A. Fundamental Design Techniques and to choose the response saved in the database [7].
Approaches
 AddText()
 Creating the dialog box All the texts or strings used in input and output
All the packages required for creating are added to the text area in the dialog box.
the dialog box are imported. The size
of the dialog box and text area inside  InArray()
the dialog box is given. Vertical This is used as a pattern matching function. A
scrollbar is used so that the screen is variable match is used to hold a Boolean value
scrolled as the conversation goes on. and it is set to false. If the match for the users
Horizontal scrollbar is never used input is found in the database, true is returned else
because the size of the dialog box is false is returned as a result. This value is returned
fixed. to keyPressed() function and the result is
 Creating a database displayed in the dialog box.
Two dimensional string arrays are
applied to build a database. Rows in
the array are used for request and
response. All the even rows contain the
request or questions and all the odd
Output: Conclusion: A chatbot is one of the simple ways to
transport data from a computer without having to
think for proper keywords to look up in a search or
browse several web pages to collect information;
users can easily type their query in natural language
and retrieve information. In this paper, information
about the design, implementation of the chatbot has
been presented. From the survey above, it can be
said that the development and improvement of
chatbot design grow at an unpredictable rate due to
variety of methods and approaches used to design a
chatbot. Chatbot is a great tool for quick interaction
with the user. They help us by providing
entertainment, saving time and answering the
questions that are hard to find. The Chatbot must be
simple and conversational. Since there are many
designs and approaches for creating a chatbot, it
can be at odds with commercial considerations.
Researchers need to interact and must agree on a
common approach for designing a Chatbot. In this
project, we looked into how Chatbots are developed
and the applications of Chatbots in various fields.
In addition comparison has been made with other
Chatbots. General purpose Chatbot must be simple,
user friendly, must be easily understood and the
knowledge base must be compact. Although some
of the commercial products have recently emerged,
improvements must be made to find a common
approach for designing a Chatbot.
6. References:

[1] R. S. Russell, “Language Use,


Personality and True Conversational
Interfaces”, Project Report of AI and
CS- University of Edinburgh,
Edinburgh, pp.1-80, 2002.
[2] Y. Zhou, X. Ziyu, A. W. Black, A. I.
Rudnicky, “Chatbot Evaluation and
Database Expansion via
Crowdsourcing”, Proc. of the Chatbot
Workshop of LREC, US, pp. 16-19,
2016.
[3] C. R. Anik, C. Jacob, A. Mohanan, “A
Survey on Web Based Conversational
Bot Design”, JETIR, Vol.3, Issue.10,
pp. 96-99, 2016.
[4] R. P. Schumaker, H. Chen,
“Leveraging Question Answer
Technology to Address Terrorism
Inquiry”, Decision Support Systems,
Vol.4, Issue.3, pp. 1419-1430, 2007.
[5] B. P. Kiptonui, “Chatbot Technology:
A Possible Means of Unlocking
Student Potential to Learn How to
Learn, Educational Research”, Vol.4,
Issue.2, pp. 218-221, 2013.
[6] S. Ghose, J. J. Barua, “Toward the
Implementation of a Topic Specific
Dialogue Based Natural Language
Chatbot as an Undergraduate
Advisor”, International Conference on
Informatics, Electronics & Vision,
India, pp. 1-5, 2013.
[7] J. Jia, “The Study of the Application of
a Keywords-based Chatbot System on
the Teaching of Foreign Languages”,
Report of University of Augsburg,
Augsburg, , pp.1-36, 2003.

You might also like