Campus Enquiry Chatbot
Campus Enquiry Chatbot
On
TABLE OF CONTENTS
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
CHAPTER 3
PROBLEM DEFINITION
By meeting these objectives, the chatbot will streamline the process of providing
information to users, reduce response times, and enhance operational efficiency
for the institution.
3.2 PROPOSED METHODOLOGY
1. Requirement Analysis and Understanding
• Objective: Define the scope and requirements of the chatbot system,
focusing on the type of inquiries it will handle (e.g., admissions, course
details, fees, events).
• Method: Identify frequently asked questions and user interactions by
conducting research or gathering data from administrative staff and
students. Ensure that the chatbot meets the most common needs.
• Deliverable: A well-defined set of use cases and inquiries the chatbot will
handle.
2. Natural Language Processing (NLP) Setup
• Objective: Enable the chatbot to understand and process natural language
queries.
• Method: The chatbot code uses the chatterbot library, which is based on
NLP. Implement intent recognition, query classification, and response
generation using this library.
• Steps:
o Use Chat Bot for machine learning-based dialogue generation.
o Train the bot on specific college-related questions.
• Deliverable: A functioning NLP model capable of recognizing common
inquiries and providing accurate responses.
3. Dialogue Flow and Conversational Design
• Objective: Design an effective conversation flow between the user and
the bot.
• Method: Define dialogue responses for common queries, fallback
mechanisms for misunderstood questions, and a suggestion system for
continuous improvement.
• Deliverable: A smooth and intuitive conversation flow with predefined
responses for key intents.
4. Backend Integration
fine-tune the NLP model and improve the accuracy of responses over
time.
• Deliverable: A system that continuously evolves based on user feedback
and becomes more effective.
CHAPTER 4
TECHNOLOGIES USED
1. Python
• Role: Core programming language for building the chatbot.
• Usage: Python is used for scripting and integrating various components of the
chatbot, including NLP, backend logic, and response handling.
• Key Libraries:
o ChatterBot: A Python library used to generate automated responses to
user inputs. It is built on machine learning algorithms and is
specifically used for creating conversational agents.
o ChatterBotCorpusTrainer: Utilized to train the bot using pre-defined
datasets, ensuring it understands specific queries related to college
information.
• 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 0 - As our methodology follows iterative model, in our basic stage, basic
users of the application is designed.
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.
In conclusion, while the current version of the Campus Enquiry Chatbot provides
significant benefits in terms of efficiency and user engagement, there is ample
potential for future development. By addressing its limitations and incorporating
advanced technologies, the chatbot can evolve into an even more powerful tool
for campus communication and student support.
REFERENCES
[1] Weizenbaum, J. (1966). ELIZA—a computer program for the study of natural
language communication between man and machine. Communications of the
ACM, 9(1), 36-45.Shawar, B. A., & Atwell, E. (2007). Chatbots: are they
really useful?. Journal for Language Technology and Computational
Linguistics, 22(1), 29-49.
[2] Colace, F., De Santo, M., Lombardi, M., Pascale, F., Pietrosanto, A., &
Lemma, S. (2018). Chatbot for e-learning: A case of study. International
Journal of Mechanical Engineering and Robotics Research, 7(5), 528-533
[3] . Banchs, R. E., & Li, H. (2012, July). IRIS: a chat-oriented dialogue system
based on the vector space model. In Proceedings of the ACL 2012 System
Demonstrations (pp. 37-42).
[4] Kuligowska, K. (2015). Commercial chatbot: performance evaluation,
usability metrics and quality standards of embodied conversational
agents. Professionals Center for Business Research, 2.
[5] Sarikaya, R., Hinton, G., & Deng, L. (2016). End-to-end task-completion
neural dialogue systems. arXiv preprint arXiv:1703.01008.
[6] Serban, I. V., Sankar, C., Germain, M., Zhang, S., Lin, Z., Subramanian, S.,
... & Bengio, Y. (2017). A deep reinforcement learning chatbot. arXiv
preprint arXiv:1709.02349.
[7] Devlin, J. (2018). Bert: Pre-training of deep bidirectional transformers for
language understanding. arXiv preprint arXiv:1810.04805.