SlideShare a Scribd company logo
International Research Journal of Engineering and Technology (IRJET) e-ISSN: 2395-0056
Volume: 07 Issue: 03 | Mar 2020 www.irjet.net p-ISSN: 2395-0072
© 2020, IRJET | Impact Factor value: 7.34 | ISO 9001:2008 Certified Journal | Page 298
A Study on Building a Web based Chatbot from Scratch
Dr. N Naveen Kumar1, T Krishna Karthik2, B Prasanna3, Sai Kiran Reddy4, A Siddharth5
1Associate Professor, IT Department, JBIET
2,3,4,5Under Graduate, IT Department, JBIET
-------------------------------------------------------------------------***------------------------------------------------------------------------
Abstract—The popularity of Chatbots are increasing
tremendously day by day. They are being used in many
fields like Entertainment, News, Health, Customer
Service, Real Estate, E-Commerce. Chatbots are
intermediary interactive software applications which
can emulate human conversation when conversed with
them. They make us believe that there is a human on the
other side of conversation. This is what it is pushing
everyone to sneak Chatbots in their applications.
Chatbots receive requests from users and give them
appropriate response with whatever knowledge it has,
understanding the intent of the user. This may involve
using computer science concepts like NLP (Natural
Language Processing), Deep Learning, Machine Learning,
Artificial Intelligence. This paper presents a study that
has been conducted on how to build a chatbot from its
scratch.
Keywords—Chatbots, Technologies, Methods, Computer
Science, Natural Language
1. INTRODUCTION
Chatbots are successful because they give users exactly
what they want. The bot is intelligent enough to
understand the user’s intent, retrieve and present what
is needed when user makes a request in his own
language or in what is known in Computer Science as
Natural Language. They are virtual personal assistant
and are user friendly. Chatbots improve service provided
to the users in an application. Chatbots help users to
obtain timely and efficient assistance or information. In
his book [1], Sumit Raj mentions steps that should be
followed during building a chatbot. The three main steps
which needed to be followed to build a new chatbot from
scratch according to Sumit Raj in his book [1] are,
 Analysing and thinking about the scope of
chatbot’s knowledge and collect different
questions that chatbot can face.
Every task that chatbot do will define an intent.
 Each question that we list or intend can be
represented in different ways.
Example: What is rate of jeans pant?
How much does a jeans pant cost?
What cost is a jeans pant?
What is the worth of a jeans pant?
What is the price of a jeans pant?
In all the above cases the intent of the users is to know
the cost of a jeans pant. The way of presenting the
question is different, but the intension of the questions is
same.
 Prepare the logic so that bot can give precise
response after recognizing the intent of the
user. In the above-mentioned example, the
questions are of same context, but the answers
to these all questions is only one. So, a logic
should be written so that bot identifies the
context or intent precisely and give the answer
infallibly.
II. METHODS AND MATERIAL
A. Choosing type of Chatbot you want to build:
Depending on the usage, knowledge scope, technology
used chatbots have been categorized in following ways
[2]:
i. Based on the scope of knowledge bot possess, we have
Open Domain and Closed Domain.
Open Domain: Open Domain Chatbots can be asked with
anything a user want to ask without any restriction on
topic or subject of the conversation. Open Domain
Chatbot’s knowledge base is so big that they are
expected to respond sensibly to anything that a user
converse. Indirectly, Open Domain Chatbots behave like
search engines. Example for Open Domain Chatbots are
some of the personal assistants like Google Assistant, Siri
(Apple), Cortana (Windows) that are conversational
agents try to answer every task they receive, at least by
providing corresponding internet search results.
Closed Domain: Closed Domain Chatbots are Domain-
Specific Chatbots, whose knowledge base and scope are
restricted to certain topic or subject and certain tasks as
well. So, user has to contain himself when conversing
with a Closed Domain Chatbots to that extent that the
tasks or requests that he post to chatbot are not out of
domain. But developers tend to reserve responses to the
requests that are out of domain so as to make the
chatbot look like more natural and human like. Examples
for Closed Domain Chatbots are found now days in some
of business and E-Commerce websites where, they tend
to answer questions posted by the users regarding the
services that are provided to them. So, for user it is key
to recognise these bots and restrict them from having
unnecessary conversation.
International Research Journal of Engineering and Technology (IRJET) e-ISSN: 2395-0056
Volume: 07 Issue: 03 | Mar 2020 www.irjet.net p-ISSN: 2395-0072
© 2020, IRJET | Impact Factor value: 7.34 | ISO 9001:2008 Certified Journal | Page 299
ii. Retrieval Based and Generative Based Chatbot
classification is mainly of how the backend of the bot
creates response.
Retrieval Based Chatbot: Retrieval Based Chatbots uses
predefined repository of responses stored by developers,
expecting and guessing the context of requests that users
may ask. In Retrieval Based Chatbots the intent of the
users may be same. But the way they post the request,
sentence formation and structure, may be different. It is
the work of the bot to recognize the intent and give the
most relevant response, which is predefined indexed for
that while developing. We identify the most relevant
response results by using a Deep Learning Algorithm
called Word2Vec as mentioned in [3].
Generative Based Chatbot: Generative Based Chatbots
generates responses on their own, then and there and
also not predefined. Here Bot understands the intent or
context and generates answer on its own. According to
[4] Generative Chatbots have edge over Retrieval Based
Chatbots as they respond to user accordingly rather than
giving same answer to all the questions of same context.
This make them more realistic. Generally Deep Learning
Algorithms are used to develop Generative Chatbots. But
they are difficult to build as they have to be trained to
give responses that are not only precise contextually, but
also grammatically. In [3] there is a Generative model
mentioned, uses LSTM as a training model for generative
dialogue.
B. Technologies:
According to [5] for implementing Chatbots as a web
application, different programming languages are used
be it developing front end or backend.
(i) Front End Development:
The programming languages that are used here are
HTML5, PHP, CSS, JS, Bootstrap.
PHP: PHP is being used extensively as it is an open
source for general purpose scripting language that is
especially used for developing a web application. PHP
pages has HTML with embedded code that can do
“something”. What is different to PHP from websites
using client-side JavaScript is that the code is executed
directly on the server, generating the HTML code which
is sent to the client. He would get the final results after
running that script, but he will not know what the
underlying code was. You can process all your HTML
files just by configuring the web server to do that and
then there is no chance that users can tell what you have
up your sleeve.
HTML: HTML is Hyper Text Markup Language, which
extensively used to develop simple Websites with GUI
(Graphical User Interface) providing user with different
elements like Button, Textbox, Textfield, Checkboxes,
Radio Buttons. Here language is in the form of tags.
Multi-media contents like Videos, Images can be handled
using HTML.
CSS: CSS is Cascading Style Sheets is a style sheet
language which is used to add more look and appearance
a HTML page. A tag <style> is used and the style that
developer wants in his HTML page in that place of the
page is written in CSS.
JavaSript: JavaScript is used to handle behaviours of
different elements in an HTML page. It is an Object
Oriented, prototype-based language. Javascript handles
complex tasks. It enables you to create dynamically
updating content, control multimedia, animate images,
and pretty much everything else.
Bootstarp: Bootstrap is essentially a stylsheet. There are
bootstrap components that require a JavaScript file but
for the most part it is a collection of CSS styles that make
building a responsive site easier. It includes some
prepackaged styles for creating screen elements, styling
tables, buttons, forms etc - but still just a .CSS file.
(ii) Back End Development:
The Programming Languages used to develop Back End
are, Python3, MySQL Databases.
Python3: Python is an easy to learn, powerful
programming language. It has efficient high-level data
structures and a simple but effective approach to object-
oriented programming. Python’s elegant syntax and
dynamic typing, together with its interpreted nature,
make it an ideal language for scripting and rapid
application development in many areas on most
platforms. It has very extensive Library. Here we use
Python’s Standard Library to implement Deep Learning
Algorithms, which are crucial for Chatbot performance.
MySQL Databases: MySQL is a powerful open source
database server built based on a relational database
management system (RDBMS) and is capable of handling
a large concurrent database connection. MySQL is
capable of working with different programming
languages like PHP, PERL, C++, JAVA, Python etc. MySQL
works very quickly and works well even with large data
sets. MySQL is very friendly to PHP, the most appreciated
language for web development. We can insert, retrieve,
alter, delete data easily using queries.
(iii) Ajax and JSON:
Ajax is the abbreviation for Asynchronous JavaScript and
XML. It is a good technique to code with for the building
of interactive websites applications. The intention of it is
that the websites become faster and more acceptable by
changing in background some small information with the
server. This means that the user should not refresh the
web page every time he did something. Ajax has the goal
International Research Journal of Engineering and Technology (IRJET) e-ISSN: 2395-0056
Volume: 07 Issue: 03 | Mar 2020 www.irjet.net p-ISSN: 2395-0072
© 2020, IRJET | Impact Factor value: 7.34 | ISO 9001:2008 Certified Journal | Page 300
to grow the interactivity, to make them faster and to use
easily the websites. Ajax is not a technology by itself. The
term is used to define the websites that use a set of
technologies. Ajax is used for the transfer of data
between the server and the database to the front end.
JSON is the abbreviation for JavaScript Object Notation
that it is a format for representing and interchanging the
data between informatics applications. It has people text
format, used to represent objects and other structures of
data and it is used mostly to send structured data
through the network, and the process is called
serialization. JSON is the simple and easier alternative of
XML coding language. The elegance format of JSON
comes from the fact that it is a subset of the JavaScript,
being used along to this coding language.
III. CONCLUSION
With the help of information provided above, a user can
build his own chatbot according to his convenience. As
mention in Methods and Materials, Requests to Chatbot
should come in either under Open or Closed Domain.
Responses should come in either under Retrieval or
Generative based models. As mentioned in Technologies,
we can use above languages to develop a good
interactive interface which can be user friendly.
IV. REFERENCES:
1. Sumit Raj. Building Chatbot with Python, Apress
Publications.
2. Nitirajsingh Sandu, Ergun Gide. Adoption of AI-
Chatbots to Enhance Student Learning
Experience in Higher Education in India.
3. Min-Yuh Day, Chi-Sheng Hung. AI Affective
Conversational Robot with Hybrid Generative-
based and Retrieval-based Dialogue Models.
4. Enza Varghese, Prof. M T Rajappan Pillai. A
STANDALONE GENERATIVE CONVERSATIONAL
INTERFACE USING DEEP LEARNING.
5. Petre Anghelescu, Stefan Vladimir Nicolaescu.
Chatbot Application using Search Engines and
Teaching Methods.

More Related Content

PDF
IRJET- Artificial Intelligence Based Chat-Bot
PDF
Interactive speech based games for autistic children with asperger syndrome
PDF
Chat bot in_pythion
PDF
Implementation of FAQ Pages using Chatbot
PPTX
Digital Transformation Services and Solutions - Chatbot Development
PPTX
Eddi: Interactive Topic-Based Browsing of Social Status Streams
PPT
Blackboard DevCon: Introducing IMS Learning Tools Interoperability
PDF
Zemanta
IRJET- Artificial Intelligence Based Chat-Bot
Interactive speech based games for autistic children with asperger syndrome
Chat bot in_pythion
Implementation of FAQ Pages using Chatbot
Digital Transformation Services and Solutions - Chatbot Development
Eddi: Interactive Topic-Based Browsing of Social Status Streams
Blackboard DevCon: Introducing IMS Learning Tools Interoperability
Zemanta

What's hot (8)

PPTX
Azure as a Chatbot Service: From Purpose To Production With A Cloud Bot Archi...
PDF
IRJET - A Web-based College Enquiry Chatbot using .Net and Dataset
PDF
Intelligent ChatBot
PDF
How to tell a better story (in code)(final)
PPTX
Azure Chat Bot application
PPTX
Code Your Own: Tool Integration using the Basic Learning Tools Interoperabili...
PPTX
Software Requirement Analysis and Thinking Process towards a good Architecture
PDF
IRJET- Short-Text Semantic Similarity using Glove Word Embedding
Azure as a Chatbot Service: From Purpose To Production With A Cloud Bot Archi...
IRJET - A Web-based College Enquiry Chatbot using .Net and Dataset
Intelligent ChatBot
How to tell a better story (in code)(final)
Azure Chat Bot application
Code Your Own: Tool Integration using the Basic Learning Tools Interoperabili...
Software Requirement Analysis and Thinking Process towards a good Architecture
IRJET- Short-Text Semantic Similarity using Glove Word Embedding
Ad

Similar to IRJET - A Study on Building a Web based Chatbot from Scratch (20)

PDF
How to build an AI-powered chatbot.pdf
PDF
How to build an AI-powered chatbot.pdf
PDF
How to build an AI-powered chatbot.pdf
PDF
Survey on Chatbot Classification and Technologies
PDF
antraaa-181127090143.pdf
PPTX
Chatbot Abstract
PDF
IRJET- Chatbot System for Latest Applications and Software
PDF
A Survey on Various Types of Chatbots
PDF
VOCAL- Voice Command Application using Artificial Intelligence
PDF
All You Need To Know About Chatbot Development.pdf
DOCX
Saloni jaiswal mba-2nd semester_miniproject
PPTX
The Software Challenges of Building Smart Chatbots - ICSE'21
PDF
WHATSAPP CHATBOT FOR CAREER GUIDANCE
PDF
Chatbots for Brand Representation in Comparison with Traditional Websites
PDF
Lessons learned from building a commercial bot development platform
PDF
IRJET- Chatbot in Python
PDF
A concise guide to chatbots
PDF
The rise of Chatbots and Virtual Assistants in Customer Experience
PDF
CUSTOMER SUPPORT CHATBOT WITH MACHINE LEARNING
DOCX
A Comprehensive Overview of Chatbot Development_ Tools and Best Practices.docx
How to build an AI-powered chatbot.pdf
How to build an AI-powered chatbot.pdf
How to build an AI-powered chatbot.pdf
Survey on Chatbot Classification and Technologies
antraaa-181127090143.pdf
Chatbot Abstract
IRJET- Chatbot System for Latest Applications and Software
A Survey on Various Types of Chatbots
VOCAL- Voice Command Application using Artificial Intelligence
All You Need To Know About Chatbot Development.pdf
Saloni jaiswal mba-2nd semester_miniproject
The Software Challenges of Building Smart Chatbots - ICSE'21
WHATSAPP CHATBOT FOR CAREER GUIDANCE
Chatbots for Brand Representation in Comparison with Traditional Websites
Lessons learned from building a commercial bot development platform
IRJET- Chatbot in Python
A concise guide to chatbots
The rise of Chatbots and Virtual Assistants in Customer Experience
CUSTOMER SUPPORT CHATBOT WITH MACHINE LEARNING
A Comprehensive Overview of Chatbot Development_ Tools and Best Practices.docx
Ad

More from IRJET Journal (20)

PDF
Enhanced heart disease prediction using SKNDGR ensemble Machine Learning Model
PDF
Utilizing Biomedical Waste for Sustainable Brick Manufacturing: A Novel Appro...
PDF
Kiona – A Smart Society Automation Project
PDF
DESIGN AND DEVELOPMENT OF BATTERY THERMAL MANAGEMENT SYSTEM USING PHASE CHANG...
PDF
Invest in Innovation: Empowering Ideas through Blockchain Based Crowdfunding
PDF
SPACE WATCH YOUR REAL-TIME SPACE INFORMATION HUB
PDF
A Review on Influence of Fluid Viscous Damper on The Behaviour of Multi-store...
PDF
Wireless Arduino Control via Mobile: Eliminating the Need for a Dedicated Wir...
PDF
Explainable AI(XAI) using LIME and Disease Detection in Mango Leaf by Transfe...
PDF
BRAIN TUMOUR DETECTION AND CLASSIFICATION
PDF
The Project Manager as an ambassador of the contract. The case of NEC4 ECC co...
PDF
"Enhanced Heat Transfer Performance in Shell and Tube Heat Exchangers: A CFD ...
PDF
Advancements in CFD Analysis of Shell and Tube Heat Exchangers with Nanofluid...
PDF
Breast Cancer Detection using Computer Vision
PDF
Auto-Charging E-Vehicle with its battery Management.
PDF
Analysis of high energy charge particle in the Heliosphere
PDF
A Novel System for Recommending Agricultural Crops Using Machine Learning App...
PDF
Auto-Charging E-Vehicle with its battery Management.
PDF
Analysis of high energy charge particle in the Heliosphere
PDF
Wireless Arduino Control via Mobile: Eliminating the Need for a Dedicated Wir...
Enhanced heart disease prediction using SKNDGR ensemble Machine Learning Model
Utilizing Biomedical Waste for Sustainable Brick Manufacturing: A Novel Appro...
Kiona – A Smart Society Automation Project
DESIGN AND DEVELOPMENT OF BATTERY THERMAL MANAGEMENT SYSTEM USING PHASE CHANG...
Invest in Innovation: Empowering Ideas through Blockchain Based Crowdfunding
SPACE WATCH YOUR REAL-TIME SPACE INFORMATION HUB
A Review on Influence of Fluid Viscous Damper on The Behaviour of Multi-store...
Wireless Arduino Control via Mobile: Eliminating the Need for a Dedicated Wir...
Explainable AI(XAI) using LIME and Disease Detection in Mango Leaf by Transfe...
BRAIN TUMOUR DETECTION AND CLASSIFICATION
The Project Manager as an ambassador of the contract. The case of NEC4 ECC co...
"Enhanced Heat Transfer Performance in Shell and Tube Heat Exchangers: A CFD ...
Advancements in CFD Analysis of Shell and Tube Heat Exchangers with Nanofluid...
Breast Cancer Detection using Computer Vision
Auto-Charging E-Vehicle with its battery Management.
Analysis of high energy charge particle in the Heliosphere
A Novel System for Recommending Agricultural Crops Using Machine Learning App...
Auto-Charging E-Vehicle with its battery Management.
Analysis of high energy charge particle in the Heliosphere
Wireless Arduino Control via Mobile: Eliminating the Need for a Dedicated Wir...

Recently uploaded (20)

PDF
Mohammad Mahdi Farshadian CV - Prospective PhD Student 2026
PPTX
UNIT-1 - COAL BASED THERMAL POWER PLANTS
PDF
Structs to JSON How Go Powers REST APIs.pdf
PDF
PRIZ Academy - 9 Windows Thinking Where to Invest Today to Win Tomorrow.pdf
DOCX
ASol_English-Language-Literature-Set-1-27-02-2023-converted.docx
PPTX
Lecture Notes Electrical Wiring System Components
PDF
Mitigating Risks through Effective Management for Enhancing Organizational Pe...
PPTX
CARTOGRAPHY AND GEOINFORMATION VISUALIZATION chapter1 NPTE (2).pptx
PDF
PPT on Performance Review to get promotions
PDF
BMEC211 - INTRODUCTION TO MECHATRONICS-1.pdf
PPTX
Construction Project Organization Group 2.pptx
PPTX
M Tech Sem 1 Civil Engineering Environmental Sciences.pptx
PPTX
Engineering Ethics, Safety and Environment [Autosaved] (1).pptx
PPTX
bas. eng. economics group 4 presentation 1.pptx
PDF
Model Code of Practice - Construction Work - 21102022 .pdf
DOCX
573137875-Attendance-Management-System-original
PPTX
Infosys Presentation by1.Riyan Bagwan 2.Samadhan Naiknavare 3.Gaurav Shinde 4...
PPTX
UNIT 4 Total Quality Management .pptx
PPTX
Foundation to blockchain - A guide to Blockchain Tech
PPTX
Strings in CPP - Strings in C++ are sequences of characters used to store and...
Mohammad Mahdi Farshadian CV - Prospective PhD Student 2026
UNIT-1 - COAL BASED THERMAL POWER PLANTS
Structs to JSON How Go Powers REST APIs.pdf
PRIZ Academy - 9 Windows Thinking Where to Invest Today to Win Tomorrow.pdf
ASol_English-Language-Literature-Set-1-27-02-2023-converted.docx
Lecture Notes Electrical Wiring System Components
Mitigating Risks through Effective Management for Enhancing Organizational Pe...
CARTOGRAPHY AND GEOINFORMATION VISUALIZATION chapter1 NPTE (2).pptx
PPT on Performance Review to get promotions
BMEC211 - INTRODUCTION TO MECHATRONICS-1.pdf
Construction Project Organization Group 2.pptx
M Tech Sem 1 Civil Engineering Environmental Sciences.pptx
Engineering Ethics, Safety and Environment [Autosaved] (1).pptx
bas. eng. economics group 4 presentation 1.pptx
Model Code of Practice - Construction Work - 21102022 .pdf
573137875-Attendance-Management-System-original
Infosys Presentation by1.Riyan Bagwan 2.Samadhan Naiknavare 3.Gaurav Shinde 4...
UNIT 4 Total Quality Management .pptx
Foundation to blockchain - A guide to Blockchain Tech
Strings in CPP - Strings in C++ are sequences of characters used to store and...

IRJET - A Study on Building a Web based Chatbot from Scratch

  • 1. International Research Journal of Engineering and Technology (IRJET) e-ISSN: 2395-0056 Volume: 07 Issue: 03 | Mar 2020 www.irjet.net p-ISSN: 2395-0072 © 2020, IRJET | Impact Factor value: 7.34 | ISO 9001:2008 Certified Journal | Page 298 A Study on Building a Web based Chatbot from Scratch Dr. N Naveen Kumar1, T Krishna Karthik2, B Prasanna3, Sai Kiran Reddy4, A Siddharth5 1Associate Professor, IT Department, JBIET 2,3,4,5Under Graduate, IT Department, JBIET -------------------------------------------------------------------------***------------------------------------------------------------------------ Abstract—The popularity of Chatbots are increasing tremendously day by day. They are being used in many fields like Entertainment, News, Health, Customer Service, Real Estate, E-Commerce. Chatbots are intermediary interactive software applications which can emulate human conversation when conversed with them. They make us believe that there is a human on the other side of conversation. This is what it is pushing everyone to sneak Chatbots in their applications. Chatbots receive requests from users and give them appropriate response with whatever knowledge it has, understanding the intent of the user. This may involve using computer science concepts like NLP (Natural Language Processing), Deep Learning, Machine Learning, Artificial Intelligence. This paper presents a study that has been conducted on how to build a chatbot from its scratch. Keywords—Chatbots, Technologies, Methods, Computer Science, Natural Language 1. INTRODUCTION Chatbots are successful because they give users exactly what they want. The bot is intelligent enough to understand the user’s intent, retrieve and present what is needed when user makes a request in his own language or in what is known in Computer Science as Natural Language. They are virtual personal assistant and are user friendly. Chatbots improve service provided to the users in an application. Chatbots help users to obtain timely and efficient assistance or information. In his book [1], Sumit Raj mentions steps that should be followed during building a chatbot. The three main steps which needed to be followed to build a new chatbot from scratch according to Sumit Raj in his book [1] are,  Analysing and thinking about the scope of chatbot’s knowledge and collect different questions that chatbot can face. Every task that chatbot do will define an intent.  Each question that we list or intend can be represented in different ways. Example: What is rate of jeans pant? How much does a jeans pant cost? What cost is a jeans pant? What is the worth of a jeans pant? What is the price of a jeans pant? In all the above cases the intent of the users is to know the cost of a jeans pant. The way of presenting the question is different, but the intension of the questions is same.  Prepare the logic so that bot can give precise response after recognizing the intent of the user. In the above-mentioned example, the questions are of same context, but the answers to these all questions is only one. So, a logic should be written so that bot identifies the context or intent precisely and give the answer infallibly. II. METHODS AND MATERIAL A. Choosing type of Chatbot you want to build: Depending on the usage, knowledge scope, technology used chatbots have been categorized in following ways [2]: i. Based on the scope of knowledge bot possess, we have Open Domain and Closed Domain. Open Domain: Open Domain Chatbots can be asked with anything a user want to ask without any restriction on topic or subject of the conversation. Open Domain Chatbot’s knowledge base is so big that they are expected to respond sensibly to anything that a user converse. Indirectly, Open Domain Chatbots behave like search engines. Example for Open Domain Chatbots are some of the personal assistants like Google Assistant, Siri (Apple), Cortana (Windows) that are conversational agents try to answer every task they receive, at least by providing corresponding internet search results. Closed Domain: Closed Domain Chatbots are Domain- Specific Chatbots, whose knowledge base and scope are restricted to certain topic or subject and certain tasks as well. So, user has to contain himself when conversing with a Closed Domain Chatbots to that extent that the tasks or requests that he post to chatbot are not out of domain. But developers tend to reserve responses to the requests that are out of domain so as to make the chatbot look like more natural and human like. Examples for Closed Domain Chatbots are found now days in some of business and E-Commerce websites where, they tend to answer questions posted by the users regarding the services that are provided to them. So, for user it is key to recognise these bots and restrict them from having unnecessary conversation.
  • 2. International Research Journal of Engineering and Technology (IRJET) e-ISSN: 2395-0056 Volume: 07 Issue: 03 | Mar 2020 www.irjet.net p-ISSN: 2395-0072 © 2020, IRJET | Impact Factor value: 7.34 | ISO 9001:2008 Certified Journal | Page 299 ii. Retrieval Based and Generative Based Chatbot classification is mainly of how the backend of the bot creates response. Retrieval Based Chatbot: Retrieval Based Chatbots uses predefined repository of responses stored by developers, expecting and guessing the context of requests that users may ask. In Retrieval Based Chatbots the intent of the users may be same. But the way they post the request, sentence formation and structure, may be different. It is the work of the bot to recognize the intent and give the most relevant response, which is predefined indexed for that while developing. We identify the most relevant response results by using a Deep Learning Algorithm called Word2Vec as mentioned in [3]. Generative Based Chatbot: Generative Based Chatbots generates responses on their own, then and there and also not predefined. Here Bot understands the intent or context and generates answer on its own. According to [4] Generative Chatbots have edge over Retrieval Based Chatbots as they respond to user accordingly rather than giving same answer to all the questions of same context. This make them more realistic. Generally Deep Learning Algorithms are used to develop Generative Chatbots. But they are difficult to build as they have to be trained to give responses that are not only precise contextually, but also grammatically. In [3] there is a Generative model mentioned, uses LSTM as a training model for generative dialogue. B. Technologies: According to [5] for implementing Chatbots as a web application, different programming languages are used be it developing front end or backend. (i) Front End Development: The programming languages that are used here are HTML5, PHP, CSS, JS, Bootstrap. PHP: PHP is being used extensively as it is an open source for general purpose scripting language that is especially used for developing a web application. PHP pages has HTML with embedded code that can do “something”. What is different to PHP from websites using client-side JavaScript is that the code is executed directly on the server, generating the HTML code which is sent to the client. He would get the final results after running that script, but he will not know what the underlying code was. You can process all your HTML files just by configuring the web server to do that and then there is no chance that users can tell what you have up your sleeve. HTML: HTML is Hyper Text Markup Language, which extensively used to develop simple Websites with GUI (Graphical User Interface) providing user with different elements like Button, Textbox, Textfield, Checkboxes, Radio Buttons. Here language is in the form of tags. Multi-media contents like Videos, Images can be handled using HTML. CSS: CSS is Cascading Style Sheets is a style sheet language which is used to add more look and appearance a HTML page. A tag <style> is used and the style that developer wants in his HTML page in that place of the page is written in CSS. JavaSript: JavaScript is used to handle behaviours of different elements in an HTML page. It is an Object Oriented, prototype-based language. Javascript handles complex tasks. It enables you to create dynamically updating content, control multimedia, animate images, and pretty much everything else. Bootstarp: Bootstrap is essentially a stylsheet. There are bootstrap components that require a JavaScript file but for the most part it is a collection of CSS styles that make building a responsive site easier. It includes some prepackaged styles for creating screen elements, styling tables, buttons, forms etc - but still just a .CSS file. (ii) Back End Development: The Programming Languages used to develop Back End are, Python3, MySQL Databases. Python3: Python is an easy to learn, powerful programming language. It has efficient high-level data structures and a simple but effective approach to object- oriented programming. Python’s elegant syntax and dynamic typing, together with its interpreted nature, make it an ideal language for scripting and rapid application development in many areas on most platforms. It has very extensive Library. Here we use Python’s Standard Library to implement Deep Learning Algorithms, which are crucial for Chatbot performance. MySQL Databases: MySQL is a powerful open source database server built based on a relational database management system (RDBMS) and is capable of handling a large concurrent database connection. MySQL is capable of working with different programming languages like PHP, PERL, C++, JAVA, Python etc. MySQL works very quickly and works well even with large data sets. MySQL is very friendly to PHP, the most appreciated language for web development. We can insert, retrieve, alter, delete data easily using queries. (iii) Ajax and JSON: Ajax is the abbreviation for Asynchronous JavaScript and XML. It is a good technique to code with for the building of interactive websites applications. The intention of it is that the websites become faster and more acceptable by changing in background some small information with the server. This means that the user should not refresh the web page every time he did something. Ajax has the goal
  • 3. International Research Journal of Engineering and Technology (IRJET) e-ISSN: 2395-0056 Volume: 07 Issue: 03 | Mar 2020 www.irjet.net p-ISSN: 2395-0072 © 2020, IRJET | Impact Factor value: 7.34 | ISO 9001:2008 Certified Journal | Page 300 to grow the interactivity, to make them faster and to use easily the websites. Ajax is not a technology by itself. The term is used to define the websites that use a set of technologies. Ajax is used for the transfer of data between the server and the database to the front end. JSON is the abbreviation for JavaScript Object Notation that it is a format for representing and interchanging the data between informatics applications. It has people text format, used to represent objects and other structures of data and it is used mostly to send structured data through the network, and the process is called serialization. JSON is the simple and easier alternative of XML coding language. The elegance format of JSON comes from the fact that it is a subset of the JavaScript, being used along to this coding language. III. CONCLUSION With the help of information provided above, a user can build his own chatbot according to his convenience. As mention in Methods and Materials, Requests to Chatbot should come in either under Open or Closed Domain. Responses should come in either under Retrieval or Generative based models. As mentioned in Technologies, we can use above languages to develop a good interactive interface which can be user friendly. IV. REFERENCES: 1. Sumit Raj. Building Chatbot with Python, Apress Publications. 2. Nitirajsingh Sandu, Ergun Gide. Adoption of AI- Chatbots to Enhance Student Learning Experience in Higher Education in India. 3. Min-Yuh Day, Chi-Sheng Hung. AI Affective Conversational Robot with Hybrid Generative- based and Retrieval-based Dialogue Models. 4. Enza Varghese, Prof. M T Rajappan Pillai. A STANDALONE GENERATIVE CONVERSATIONAL INTERFACE USING DEEP LEARNING. 5. Petre Anghelescu, Stefan Vladimir Nicolaescu. Chatbot Application using Search Engines and Teaching Methods.