Chatbot Using PHP: Department of Computer Engineering
Chatbot Using PHP: Department of Computer Engineering
Submitted To
1
MAHARASHTRA STATE
BOARD OF TECHNICAL EDUCATION
Certificate
(Only for individual micro project report)
2
MAHARASHTRA STATE
BOARD OF TECHNICAL EDUCATION
Certificate
(Only for Micro Project Group report )
Place: ……………
Date: ……………
3
Annexure – I
Format for Micro-Project Proposal in about 2 to 3 pages to be submitted at end of first two weeks of
the semester
chatbot
1.0 Brief Introduction
A chatbot is a software application that can simulate human-like online conversations with a user. In
this tutorial, we are going to build a simple chatbot that provides real-time responses to some
common questions. It also answers with a fallback message when an unaccounted question is asked.
Chatbots are computer programs that can maintain a conversation with a user in natural language,
understanding their intent, and replying based on preset rules and data. Designed to convincingly
simulate the way a human would behave as a conversational partner, chatbot systems typically
require continuous tuning and testing with many in production unable to adequately converse; in
2012 none of them could pass the standard Turing test. The term "Chatterbot" was originally coined
by Michael Mauldin (creator of the first Verdot) in 1994 to describe these conversational programs.
2.0 Aim of the Micro-Project
This Micro-Project aims at:
a) Chatbots allow businesses to connect with customers in a personal way without the expense
of human representatives.
b) The purpose of chatbots is to provide an automated way for people to communicate with your
company.
3.0 Intended Course Outcome
a) develop program using control statement.
b) perform database operations in PHP.
4
take natural language text as input, and the output should be the most relevant output to the user input
sentence. Chatbots can also be defined as “online human-computer dialogue system(s) with natural
language” [6]. Chatbots constitute therefore an automated dialogue system, that can attend to
thousands of potential users at once.
Chatbots are used in dialog systems for various purposes including customer service, request routing, or
information gathering. While some chatbot applications use extensive word-classification processes, natural-
language processors, and sophisticated AI, others simply scan for general keywords and generate responses using
common phrases obtained from an associated library or database.
Most chatbots are accessed on-line via website popups or through virtual assistants. They can be classified into
usage categories that include: commerce (e-commerce via chat), education, entertainment, finance, health, news,
and productivity
Reference:
5
<div class="details">
<span><?php echo $row['fname']. " " . $row['lname'] ?></span>
<p><?php echo $row['status']; ?></p>
</div>
</header>
<div class="chat-box">
</div>
<form action="#" class="typing-area">
<input type="text" class="incoming_id" name="incoming_id" value="<?php echo $user_id; ?>" hidden>
<input type="text" name="message" class="input-field" placeholder="Type a message here..."
autocomplete="off">
<button><i class="fab fa-telegram-plane"></i></button>
</form>
</section>
</div>
<script src="javascript/chat.js"></script>
</body>
</html>
Index.php code:
<?php
session_start();
if(isset($_SESSION['unique_id'])){
header("location: users.php");
}
?>
6
</div>
<div class="field input">
<label>Password</label>
<input type="password" name="password" placeholder="Enter new password" required>
<i class="fas fa-eye"></i>
</div>
<div class="field image">
<label>Select Image</label>
<input type="file" name="image" accept="image/x-png,image/gif,image/jpeg,image/jpg" required>
</div>
<div class="field button">
<input type="submit" name="submit" value="Continue to Chat">
</div>
</form>
<div class="link">Already signed up? <a href="login.php">Login now</a></div>
</section>
</div>
<script src="javascript/pass-show-hide.js"></script>
<script src="javascript/signup.js"></script>
</body>
</html>
5.0 Resources Required (major resources like raw material, tools, software etc.)
S. No. Name of Resource/material Specifications Qty Remarks
1 laptop Microsoft word
2
6.0 Action Plan (Sequence and time required for major activities for 8 Weeks)
S. No. Details of activity Planned Planned Name of
Start date Finish date Responsible Team
Members
1 Discussion and finalization of topic All members
2 Preparation of submission of All members
proposal
3 Planning layout of micro project All members
4 Content preparation All members
5 Discussion about required resources All members
6 Create the report All members
7 Final submission of project All members
**************
Annexure – II
7
Format for Micro-Project Report after Execution in about 8 to 15 pages to be submitted at end of
semester)
PART B – Micro-Project Report
Chatbot
1.0 Rationale
(Importance of the project, in about 100 to 200 words. This is a modified version of the
proposal after the work)
A chatbot or chatterbot is a software application used to conduct an online chat conversation via text
or text-to-speech, in lieu of providing direct contact with a live human agent.
A chatbot is a software application that can simulate human-like online conversations with a user. In
this tutorial, we are going to build a simple chatbot that provides real-time responses to some
common questions. It also answers with a fallback message when an unaccounted question is asked.
Chatbots are computer programs that are capable of maintaining a conversation with a user in natural language,
understanding their intent, and replying based on preset rules and data. Designed to convincingly simulate the way a
human would behave as a conversational partner, chatbot systems typically require continuous tuning and testing
with many in production unable to adequately converse; in 2012 none of them could pass the standard Turing
test. The term "Chatterbot" was originally coined by Michael Mauldin (creator of the first Verdot) in 1994 to
describe these conversational programs.
8
language processors, and sophisticated AI, others simply scan for general keywords and generate responses using
common phrases obtained from an associated library or database.
Most chatbots are accessed on-line via website popups or through virtual assistants. They can be classified into
usage categories that include: commerce (e-commerce via chat), education, entertainment, finance, health, news,
and productivity
Reference:
</div>
<form action="#" class="typing-area">
9
<input type="text" class="incoming_id" name="incoming_id" value="<?php echo $user_id; ?>" hidden>
<input type="text" name="message" class="input-field" placeholder="Type a message here..."
autocomplete="off">
<button><i class="fab fa-telegram-plane"></i></button>
</form>
</section>
</div>
<script src="javascript/chat.js"></script>
</body>
</html>
Index.php code:
<?php
session_start();
if(isset($_SESSION['unique_id'])){
header("location: users.php");
}
?>
10
</div>
<div class="field button">
<input type="submit" name="submit" value="Continue to Chat">
</div>
</form>
<div class="link">Already signed up? <a href="login.php">Login now</a></div>
</section>
</div>
<script src="javascript/pass-show-hide.js"></script>
<script src="javascript/signup.js"></script>
</body>
</html>
11
7.0 Skill Developed / learning out of this Micro-Project
(in about 50 to 100 words)
A chatbot is the user interface of a given chat application. Here in this project we developed
some skill about how to develop chatbot and give functions required to the user need.
We also come to know about my sql database handling.
12
e. Politics
f. Toys
9.0 Area of Future Improvement
The future of chatbots is that businesses will automate simple payments and allow users to pay
directly over live chat or Facebook Messenger apps. The instant process makes the customer happy
and improves customer satisfaction.
Chatbots are increasingly present in businesses and often are used to automate tasks that do not require skill-based
talents. With customer service taking place via messaging apps as well as phone calls, there are growing numbers of
use-cases where chatbot deployment gives organizations a clear return on investment. Call center workers may be
particularly at risk from AI-driven chatbots.
Unclear scope of the chatbot and/or too broad purposes of its utilization. ...
Setting unrealistic expectations is often the reason why chatbots fail. ...
Lack of customer perspective in building the chatbot.
**************
13
Annexure – III
14
S. Characteristic Poor Average Good Excellent
No to be assessed ( Marks 1-3 ) ( Marks 4 - 5 ) ( Marks 6 - 8 ) ( Marks 9- 10 )
.
charts and graphs.
6 Report Very short, poor Nearly sufficient Detailed, correct Very detailed,
Preparation quality sketches, and correct details and clear correct, clear
Details about about methods, description of description of
methods, material, methods, methods,
material, precautions and materials, materials,
precaution and conclusion, but precautions and precautions and
conclusions clarity is not there Conclusions. conclusions.
omitted, some in presentation. Sufficient Graphic Enough tables,
details are wrong But not enough Description. charts and sketches
graphic
description.
15
MIcro-Project Evaluation Sheet
Note:
Every course teacher is expected to assign marks for group evolution for each group of students in first 3
columns as per rubrics & individual evaluation in 4TH column for each group of students as per rubrics based
on viva.
Signature………………………………………………………………………………
Date:………………………..
16