chatbotreterte
chatbotreterte
On
CHAPTER 1……………………………………………………....................3-4
1. INTRODUCTION……………………………………………………..3-4
CHAPTER 2………………………. …………………………………...……5-7
2. LITERATURE REVIEW...……………………………………………5-7
2.1 EARLY APPROACHES (PRE AI ERA)
……………………………..5
2.2 AI BASED APPROACHES…………….
………………………….....6
2.3 ADVANCES NLP & CONVERSATIONAL
AGENTS……............ ..7
CHAPTER 3……………………………………………………………..….8-12
3. PROBLEM DEFINITION ..………………………………….......…..8-12
3.1 PROJECT OBJECTIVE…………………………………………..…..9
3.2 PROPOSED METHODOLOGY…………………………………10-12
CHAPTER 4……………………………………………………………….13-14
4. TECHNOLOGIES USED…………………………………………...13-14
4.1 Python……………………………………………………………….13
4.2 Natural Language Processing (NLP)…………………………...…...13
4.3 Flask…………………………………………………………....……14
4.4 HTML/CSS/JavaScript……………………………………………...14
CHAPTER 5……………………………………………………………….15-18
5. IMPLEMENTATION ALGORITHM ……………………..…15-18
5.1 PRE-REQUISTES……………………………………………..15
5.2 DATA STRUCTURE………………………………………….15
5.3 RUNNING THE
SERVER…………………………………….15
5.4 CODE FOR QUICK SUMMARY……………….……..….16-18
CHAPTER 6………………………………………………………. ……...19-20
6. DIAGRAMMATIC SCHEMA…………………………..……19-20
CHAPTER 7……………………………………………………………..……21
7. S/W & H/W REQUIREMENTS………………………………….21
CHAPTER8..………………………………………………………............22-23
8. CONCLUSION………………………………………………..22-23
REFERNCES 24
CHAPTER 1
INTRODUCTION
CHAPTER 2
LITERATURE REVIEW
Despite their success in handling repetitive and routine tasks, early rule-
based chatbots were constrained by their rigid structure. They required
manual updates to their rule sets whenever new types of queries
emerged, making them less adaptive to evolving user needs.
2.2 AI-BASED APPROACHES
The development of artificial intelligence (AI) and machine learning,
particularly Natural Language Processing (NLP), revolutionized the
capabilities of chatbots. AI-based approaches allowed chatbots to
understand the context, intent, and even subtleties of user queries, vastly
improving both the scope and accuracy of interactions.
Banchs & Li (2012) [3] advanced the chatbot landscape by introducing a
retrieval-based dialogue system for conversational agents. Unlike rule-
based systems, retrieval-based models could search through a large
database of potential responses and select the most appropriate reply
based on the context of the query. This method greatly improved the
relevance and variety of responses. In the context of a campus enquiry
chatbot, this approach allowed the system to provide dynamic responses
to a broader range of student questions, such as “Where can I find details
on my upcoming exam?” or “What courses are available next semester?”
Kuligowska (2015) [4] focused on enhancing the conversational abilities
of chatbots through the application of machine learning and NLP
techniques. She demonstrated that chatbots equipped with NLP could
process unstructured queries and generate contextually appropriate
answers. By using algorithms such as decision trees and logistic
regression, the system could adapt to new user inputs without the need
for manual updates, unlike rule-based systems. In her evaluation of
educational chatbots, she observed a significant increase in user
satisfaction when the chatbot could handle complex inquiries, such as
“What are the eligibility criteria for this scholarship?” or “How can I
change my major?”
Sarikaya et al. (2016) [5] took this a step further by introducing end-to-
end models for task-oriented dialogue systems. These systems used deep
learning architectures such as Recurrent Neural Networks (RNNs) and
Long Short-Term Memory (LSTM) networks to process conversations in
CHAPTER 3
PROBLEM DEFINITION
CHAPTER 4
TECHNOLOGIES USED
1. Python
Role: Core programming language for building the chatbot.
Purpose:
o Routing user queries to the chatbot system.
o Serving responses from the chatbot to the front-end.
4. HTML/CSS/JavaScript
Role: Frontend technologies for creating the user interface.
Usage: These technologies are used to create the chatbot’s front-end,
allowing users to interact with the bot through a web interface. The user
interface is where queries are typed, and responses are displayed in a
chatbox format.
Potential Enhancements: Frameworks like React.js or Vue.js could be used
for dynamic user interfaces.
5. MySQL (Database)
Role: Database for storing structured information.
Usage: A backend database (MySQL) is used to store frequently accessed
data such as course details, admission criteria, fee structures, and event
schedules. The chatbot queries this database to fetch real-time, up-to-date
information.
Purpose: To ensure that the chatbot delivers accurate information based on
live data.
CHAPTER 5
IMPLEMENTATION ALGORITHMS
5.1 PRE-REQUISITES
1. Create Database
2. Install all the required libraries mentioned above and create the database
structure in any database of your choice. (Change the connection statements
according to the database you are using).
4. In order to run the project, give the command python app.py runserver
2. Dataset
CHAPTER 6
DIAGRAMMATIC SCHEMA
Data Flow Diagram: A data flow diagram (DFD) depicts the information flow
in this system. It displays data inputs, outputs, storage locations, and routes
between each destination using predefined symbols such as rectangles, circles,
and arrows as well as brief text labels. The entity, process, data store, and data
flow are the four essential components of all data flow diagrams.
LEVEL 1 - Then the design follows functional aspects with regards to the users
defined in Level 0.
CHAPTER 7
CHAPTER 8
CONCLUSION
The Campus Enquiry Chatbot, developed using Python, Flask, MySQL, HTML,
CSS, JavaScript, and Bootstrap, demonstrates a practical application of web-
based technologies to improve campus communication. It efficiently automates
responses to common student queries, reducing the workload on administrative
staff while enhancing the user experience through real-time interaction.
8.1 ADVANTAGES:
1. Efficiency: The chatbot provides instant responses, reducing the need
for students to wait for assistance and freeing up administrative
resources.
2. Accessibility: The use of Bootstrap ensures a responsive design, making
the chatbot accessible on various devices such as smartphones, tablets,
and desktops.
3. Scalability: By using Flask and MySQL, the system is capable of
handling large amounts of data and can be easily expanded to include
more features and information over time.
4. User-Friendly Interface: The combination of HTML, CSS, and
JavaScript provides an intuitive and easy-to-navigate interface for users.
5. 24/7 Availability: The chatbot is accessible at any time, ensuring
students can receive answers to their queries outside of normal working
hours, improving campus service accessibility.
6. Consistency in Responses: Unlike human operators, the chatbot
provides consistent answers to the same queries, ensuring students
receive accurate and reliable information every time.
8.2 LIMITATIONS:
1. Database Dependency: Since it relies on a pre-set database (MySQL),
the chatbot can only answer queries for which information has already
been stored. New queries require manual updates to the database.
REFERENCES