Student Information Chatbot
Student Information Chatbot
ABSTRACT
INTRODUCTION
User interfaces for software applications can come in a variety of formats, ranging
from command-line, graphical, web application, and even voice. While the most
popular user interfaces include graphical and web-based applications, occasionally
the need arises for an alternative interface. Whether due to multi-threaded
complexity, concurrent connectivity, or details surrounding execution of the service,
a chat bot-hased interface may suit the need.
Chat bots typically provide a text-based user interface, allowing the user to type
commands and receive text as well as text to speech response. Chat bots are usually a
stateful services, remembering previous commands (and perhaps even conversation)
in order to provide functionality. When chat bot technology is integrated with popular
web services it can be utilized securely by an even larger audience.
PROBLEM INTRODUCTION
Creating a chatbot able to answer every single question about This chatbot is not
possible to implement with current technology and within the duration of the project,
so the system will be able to answer questions about limited topics. The system will
only support questions in standard English.
This Chatbot receives questions from users, tries to understand the question, and
provides appropriate answers. It does this by converting an English sentence into a
machine-friendly query, then going through relevant data to find the necessary
information, and finally returning the answer in a natural language sentence. In other
words, it answers your questions like a human does, instead of giving you the list of
websites that may contain the answer. For example, when it receives the question
"what is the age of Ravi", it will give a response "I prefer Registration numbers.
Since you have been good to me, I'll show the results: Age of Ravi is 21" The goal is
to provide chatbot students and faculty a quick and easy way to have their questions
answered, as well as to offer other developers the means to incorporate Chatbot into
their projects.
HARDWARE REQUIREMENTS
Processer – 13
Hard disk – 5 GB
Memory – 1GB RAM
SOFTWARE REQUIREMENTS
Windows 7 or higher
Excel
Spyder or pycharm or IDLE
EXISTING SYSTEM
The creation and implementation of chatbots is still a developing area, heavily related
to python so the provided solutions, while possessing obvious advantages, have some
important limitations in terms of functionalities and use cases. However, this is
changing over time. As the database, used for output generation, is fixed and limited,
chatbots can fail while dealing with an unsaved query. But this chat bot cannot fail the
user can type query if the query cannot match with data so chat bot will massage; I do
not understand your questions. there are many popular chatbot in marketing for
example Alexa it works on the voice bot that resulted in largest revenues in our chat
bot reply with text form and quick replay all information form data. Analytics are often
overlooked and underappreciated when it comes to chatbots. While chatbot analytics
are unlikely to make or break the success of a chathot, they can provide valuable
insight into opportunities for information about data allowing chatbot can help reply
with text of users.
PROPOSED SYSTEM
A student information chatbot project is built using artificial algorithms that analyses
user's queries and understand user's message. users just have to query through the bot
which is used for chatting. The answers are appropriate what the user queries. The
user does not have to personally go to the college for enquiry.
SYSTEM DESIGN
A.C.S.’S. DIPLOMA IN ENGG & TECH, ASHTI Page | 5
STUDENT INFORMATION CHATBOT
In today's world computers play an important role in our society. Computers give us
information; they entertain us and help us in lots of manners. A chatbot is a program
designed to counterfeit a smart communication on a text or spoken ground. But this
paper is based on the text only chatbot. Chatbot recognize the user input as well as by
using pattern matching, access information to provide a predefined acknowledgment.
For example, if the user is providing the bot a sentence like "What is your name?" The
chatbot is most likely to reply something like "My name is Chatbot." or the chatbot
replies as "You can call me Chatbot." based on the sentence given by the user. When
the input is bringing into being in the database, a response from a predefined pattern is
given to the user. A Chatbot is implemented using pattern comparing, in which the
order of the sentence is recognized and a saved response pattern is acclimatize to the
exclusive variables of the sentence. They cannot register and respond to complex
questions, and are unable to perform compound activities.
In this diagram can show User Communicate with Chatbot and User can input the
Questions. The Chatbot can receive the User Input and Compare Strings with Chatbot
Database and Return Output.
CODING
import pandas as pd
d_sex = dataset['Sex']
d_age = dataset['Age']
d_regno = dataset['RegNo']
d_name = dataset['Name']
d_marks = dataset['Marks']
d_mobno = dataset['MobNo']
lowest_name = "
lowest_regno =
topper_name =
topper_regno = '
no_of_failures = 0
failures = '
no_of_people_90 = 0
for i in range(0,len(d_marks)):
if d_marks[i] == min(d_marks):
lowest_name = d_name[i]
lowest_regno = d_regno[i]
if d_marks[i] == max(d_marks):
topper_name = d_name[i]
topper_regno = d_regno[i]
bot.set_trainer(ChatterBotCorpus Trainer)
bot.train("chatterbot.corpus.english")
bot.set_trainer(ListTrainer)
for i in range(0,len(d_marks)):
bot.train([
"Give me the complete details of {)".format(d_regno[i]),
"\nHere are the details: Registeration No.: (); Name: () Age: () Sex: () Marks: ()
Mobile No.: {}".format(d_regno[i], d_name[i], d_age[i], d_sex[i], d_marks[i],
d_mobno[i]),
"complete details of {}".format(d_regno[i]).
"\nHere are the details: Registeration No.: (); Name: { Age: { Sex: Marks: Mobile
No.: {}".format(d_regno[i], d_name[i], d_age[i], d_sex[i], d_marks[i],
d_mobno[i]),
A.C.S.’S. DIPLOMA IN ENGG & TECH, ASHTI Page | 9
STUDENT INFORMATION CHATBOT
bot.train([
"what is the marks of {}".format(d_regno[i]),
"Marks of {} - {} is {}".format(d_regno[i], d_name[i], d_marks[i]).])
bot.train([
"what is the age of {}".format(d_regno[i]),
"Age of {}-{} is {}".format(d_name[i], d_regno[i], d_age[i]),])
bot.train([
"what is the mobile number of {}".format(d_regno[i]),
"Mobile number of {} - {) is {}".format(d_regno[i], d_name[i], d_mobno[i]),])
bot.train([
"what is the marks of {}".format(d_name[i]),
"I prefer Registeration numbers.. Since you have been good to me, I'll show the
results: Marks of {-} is {}".format(d_regno[i], d_name[i], d_marks[i]),])
bot.train([
bot.train([
"what is the class average?", "The class average is
{}".format(sum(d_marks)/len(d_marks)) 1)
])
bot.train([
"what is the lowest marks?",
"The Lowest marks is {}".format(min(d_marks))
])
bot.train([
"how many failures?",
A.C.S.’S. DIPLOMA IN ENGG & TECH, ASHTI Page | 10
STUDENT INFORMATION CHATBOT
bot.train([
"who all failed?",
"Sad.. But these people could'nt cross 400".format(failures) ID
])
bot.train([
"what is the highest marks?", "The highest marks is {}".format(max(d_marks))
])
bot.train([
"who got the highest marks?", "The highest marks is {), obtained by ()
{}".format(max(d_marks), topper_name, topper_regno) ID
])
bot.train([
"who got the lowest marks?", "The lowest marks is {), obtained by (Feel sad for the
chap".format(min(d_marks), lowest_name, lowest_regno) 1)
])
bot.train([
"Who all got above 90" "".format(no_of_people_90) 1)
])
bot.train("chatterbot.corpus.english")
CONVERSATION_ID = bot.storage.create_conversation()
def get_feedback():
from chatterbot.utils import input_function
text input_function()
if 'yes' in text.lower():
return False
elif 'no' in text.lower():
A.C.S.’S. DIPLOMA IN ENGG & TECH, ASHTI Page | 11
STUDENT INFORMATION CHATBOT
return True
else:
print('Please type either "Yes" or "No"")
return get_feedback()
while True:
try:
input_statement = bot.input.process_input_statement()
statement, response = bot.generate_response(input_statement,
CONVERSATION_ID)
bot.output.process_response(response)
print('\n')
OUTPUT
CONCLUSION
In this project, we have introduced a chatbot for student information that is able to
interact with faculty and student. This chatbot can answer queries in the textual user
input. The main objectives of the project were to develop an algorithm that will be used
to identify answers related to user submitted questions. To develop a database were all
the related data will be stored and to develop a web interface. The web interface
developed had one-part simple users. A database was developed, which stores
information about questions, answers, keywords, logs and feedback messages. An
evaluation took place from data collected. after received feedback from the first
deployment, extra requirements were introduced and implemented.
FUTURE SCOPE
REFERENCES
17