International Journal of Applied Engineering Research ISSN 0973-4562 Volume 13, Number 20 (2018) pp. 14644-14649
© Research India Publications. http://www.ripublication.com
14646
same person whose resume is loaded in the database and
commanding a person to check the calendars.
Creation Platform
Creation platforms provide a wide range of software
foundations, frameworks and toolkits like APIs. There are
other features like, natural language processing, searching,
and image processing. These platforms can be distribution-
platform-specific or can be used across multiple platforms,
such as the Microsoft Bot Framework, Botkit, and
Pandorabots. These provide services from documentation and
code templates to even no-code-required bot-building and
managing interfaces just as Chatfuel. Chatfuel is one of the
aamazing feature that lets one create chatbot apps without any
advanced coding and is very helpful in creating prototypes.[3]
Distribution Platform
Distribution platforms tells us about where and how users will
access bots. These days many are centered around messaging
or social networking like Messenger, Skype, and
WeChat,Telegram etc.. Other platforms which are domain
specific mainly concentrate on developers for example, Slack,
Teams, and HipChat.
These platforms support human–bot, bot–bot , or even
system–bot interactions.These platforms define and improvise
on how users interact with bots and have built-in support for
commands, natural language, speech, and more rich and
efficient UI controls. The interaction with a bot strongly
influenced by the experience of the user and the types of tasks
users can perform with chatbot. Some of the third-party sites
like BotList and ChatBot provide online catalogs of bots. It
makes easier for developers to promote and market their bots.
Some distribution channels have monetization features that let
bots safely collect payments from users, which is particularly
useful for people developing transactional style bots.[3]
The new areas of technology can be unleashed by making this
into reality.
IMPLEMENTATION
The chatbot is an exceptionally made app that can be used as a
personal assistant. When a person logs into the given app it
asks you for some personal details regarding one’s name,
alarm time and mainly the to do list.
You can also send mails and messages automatically if the
app is connected with your email-id. This helps get a new
arena of the technology into perspective.
Chatbot is an application of the computer which uses artificial
intelligence to imitate human conversation. It helps the user
by answering the questions asked by them. The program is
implemented using Java programming language. Particularly,
one uses the Java applets. Applets are used as it is easy for it
to create dialog boxes needed for communication between the
user and the chatbot. Detailed implementation is given below :
A. Fundamental Design Techniques and Approaches
Creating the dialog box
The variety of packages needed for making the dialog box are
transfered. The text area and size of dialog box is already
given. To scroll the screen during the conversation a vertical
scrollbar is used. As the size of the horizontal dialog box is
not fixed it is not used. The conversation always takes place
vertically and never horizontally.
B. Creating a database
Two dimensional string arrays are used to build a database to
store data. Arrays contain rows and columns. All the rows are
used for request and response. Even rows contain request and
all the odd rows contain answers or responses. Columns in the
given array are applied to store and save various types of
questions that a chatbot has to answer. Default responses are
stored in a different row in the array. And this row is not used
for storing any other data. When the matching question is not
found in the array then the default response statements are
used.
C. Modules Description
The description of the modules are as follows[6]:
Chatbot()
In this function, all the variables that are used for creating the
dialog box is added.
There is a default close operation set to EXIT_ON_CLOSE so
that the dialog box closes whenever it is exited. It requires
background colour. And it is set using the built set
Background() function.
Random()
The input is given by the user. and the same is accepted using
text(). By using trim() function all the punctuations are
removed. Uppercase letters are converted to lowercase. There
is a variable response. And this is used to hold a byte value.
This value is set to 0. When the response is 0, the database
finds a match for input given. It is then returned as a response
and is later displayed on the dialog box in the text area. And if
the response is 1 then no match is found in the database. In
such cases a default response will be returned. The function
Random() is used chose responses stored in database[7].
AddText()
This function is used to add all the strings and texts used for
input and output. They are added in text area part of the dialog
box.
InArray()
This is specifically used to match the pattern. Variable
matches are used to hold the Boolean values. It is then set to
false. If a match is found for inputs given by the user in the
database then true is returned orelse false is returned. The
result is now returned to keypressed() function. This result
will then be displayed on the dialog box.