0% found this document useful (0 votes)
21 views16 pages

Student Information Chatbot

The document outlines the development of a student information chatbot designed to facilitate automated query resolution for colleges, allowing users to interact naturally with the system. It discusses the chatbot's architecture, including its reliance on natural language processing, and provides details on hardware and software requirements. The project aims to enhance user experience by providing quick and accurate responses to student inquiries while acknowledging the limitations of current technology.

Uploaded by

OMKAR WAGHMARE
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
21 views16 pages

Student Information Chatbot

The document outlines the development of a student information chatbot designed to facilitate automated query resolution for colleges, allowing users to interact naturally with the system. It discusses the chatbot's architecture, including its reliance on natural language processing, and provides details on hardware and software requirements. The project aims to enhance user experience by providing quick and accurate responses to student inquiries while acknowledging the limitations of current technology.

Uploaded by

OMKAR WAGHMARE
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 16

STUDENT INFORMATION CHATBOT

ABSTRACT

Automatic conversation system is an intelligent human machine interaction using


natural language. Main goal of it is to allow the user and machine to make a natural
harmonious conversation, Thus, enabling the machine to recognize human motivation
and to respond accurately, is not only an important manifestation of advanced
intelligence, but also a very challenging work in harmonious human interaction field.
A conversation system consists of speech recognition, speech synthesis, and dialogue
management and conversation generation. In this research, we focus on automatic
generation of conversation between a computer and a human being with little
knowledge of the computer. In this paper, we influenced a PC to end up a preparation
to accomplice of a man who isn't great at discussion, to wind up a band together with
a man. Therefore, in this research, we are focusing specifically on "chat" by
developing which converse mainly by using Python. Our main focus, is to build a
Student chat bot which helps the colleges to have 24*7 automated query resolution.
This helps the users to have the right information from the source.

A.C.S.’S. DIPLOMA IN ENGG & TECH, ASHTI Page | 1


STUDENT INFORMATION CHATBOT

INTRODUCTION

This A chatbot. is a computer program which conducts a conversation via textual


method. Such programs are often designed to convincingly simulate how a human
would behave as a conversational partner, thereby passing the Turing test. Chat bots
are typically used in dialog systems for various practical purposes including user
service or information acquisition. This system which will provide answers to the
queries of the users.

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.

A.C.S.’S. DIPLOMA IN ENGG & TECH, ASHTI Page | 2


STUDENT INFORMATION CHATBOT

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.

MOTIVATION AND OBJECTIVE

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.

A.C.S.’S. DIPLOMA IN ENGG & TECH, ASHTI Page | 3


STUDENT INFORMATION CHATBOT

HARDWARE REQUIREMENTS
 Processer – 13
 Hard disk – 5 GB
 Memory – 1GB RAM

SOFTWARE REQUIREMENTS
 Windows 7 or higher
 Excel
 Spyder or pycharm or IDLE

A.C.S.’S. DIPLOMA IN ENGG & TECH, ASHTI Page | 4


STUDENT INFORMATION CHATBOT

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

A Chatbot refers to a chatting robot. It is a communication simulating computer


program. It is all about the conversation with the user. The conversation with a Chatbot
is very simple. It answers to the questions asked by the user. During designing a
Chatbot, how does the Chatbot communicate to the user? And how will be the
conversation with the user and the Chatbot is very important. The design of a Chatbot
is represented using diagram as follows:

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.

A.C.S.’S. DIPLOMA IN ENGG & TECH, ASHTI Page | 6


STUDENT INFORMATION CHATBOT

UML DIAGRAMS OF OUR PROJECT

UML is a general-purpose modelling language. The main aim of UML is to define a


standard way to visualize the way a system has been designed.

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.

A.C.S.’S. DIPLOMA IN ENGG & TECH, ASHTI Page | 7


STUDENT INFORMATION CHATBOT

CODING

from chatterbot import ChatBot


from chatterbot.trainers import ChatterBotCorpus Trainer
from chatterbot.trainers import List Trainer

import pandas as pd

# Importing the dataset


dataset = pd.read_csv('student_dataset.csv', sep=',')

d_sex = dataset['Sex']
d_age = dataset['Age']
d_regno = dataset['RegNo']
d_name = dataset['Name']
d_marks = dataset['Marks']
d_mobno = dataset['MobNo']

# Create a new instance of a ChatBot


bot = ChatBot(
"Terminal",
storage_adapter="chatterbot.storage.SQLStorageAdapter",
logic_adapters=[
chatterbot.logic.Mathematical Evaluation",
{
'import_path': 'chatterbot.logic.BestMatch'
}.
{
'import_path': 'chatterbot.logic.LowConfidenceAdapter',
'threshold': 0.50,
'default_response': 'I am sorry, but I do not understand.'
}
],
input_adapter="chatterbot.input.TerminalAdapter",
output_adapter="chatterbot.output.TerminalAdapter"
)

A.C.S.’S. DIPLOMA IN ENGG & TECH, ASHTI Page | 8


STUDENT INFORMATION CHATBOT

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]

if d_marks[i] < 40:


no_of_failures = no_of_failures + 1
failures = failures +','+d_name[i] +' ('+d_regno[i]+')'
if d_marks[i] >= 90:
no_of_people_90 = no_of_people_90 + 1

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([

"what is the age of (}".format(d_name[i]),


"I prefer Registeration numbers.. Since you have been good to me, I'll show the
results: Age of {} } is {)".format(d_name[i], d_regno[i], d_age[i]). ])
bot.train([
"what is the mobile number of (}".format(d_name[i]).
"I prefer Registeration numbers.. Since you have been good to me, I'll show the
results: Mobile number of {){) is {}".format(d_regno[i], d_name[i],
d_mobno[i]), ])

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

"These many guys got below 40 )".format(no_of_failures) ID


])

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()

print("\n\n\n\n\n\n\n\n\n\n\nHi, I'm Silence - The Chatbot\nHere to help!\n\n")


print("\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n")
from chatterbot.utils import input_function

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')

except (KeyboardInterrupt, EOFError, SystemExit):


break

A.C.S.’S. DIPLOMA IN ENGG & TECH, ASHTI Page | 12


STUDENT INFORMATION CHATBOT

OUTPUT

A.C.S.’S. DIPLOMA IN ENGG & TECH, ASHTI Page | 13


STUDENT INFORMATION CHATBOT

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

1. Linguistic and conversational ability must improve.


2. Voice interface.
3. Faster problem solving
4. Better insights & consumer analytics

A.C.S.’S. DIPLOMA IN ENGG & TECH, ASHTI Page | 14


STUDENT INFORMATION CHATBOT

 REFERENCES

1) Third year WBP book


2) Figures are download from www.msbte.com
3) www.google.com
4) www.geeksforgeeks.com
5) For type this project we have use a MS-word

A.C.S.’S. DIPLOMA IN ENGG & TECH, ASHTI Page | 15


STUDENT INFORMATION
CHATBOT

17

You might also like