Documente Academic
Documente Profesional
Documente Cultură
A PROJECT REPORT
Submitted By
Kharecha Maulik (140770107055)
Shah Shivani (150773107044)
Bhavsar Rajvi (150773107005)
BACHELOR OF ENGINEERING
In
Computer Engineering
We further declare that to the best of our knowledge the report of C.E. 7th semester.
Candidate’s signature :
First candidates name : Kharecha Maulik
Branch : CE
Enrollment Number : 140770107055
Candidate’s signature :
First candidates name : Shah Shivani
Branch : CE
Enrollment Number : 150773107044
Candidate’s signature :
First candidates name : Bhavsar Rajvi
Branch : CE
Enrollment Number : 150773107005
Submitted to:
Silver Oak College Of Engineering & Technology, Ahmedabad
Affiliated to:
Gujarat Technology University
Acknowledgement
We are heartily thankful to my supervisor, Mr. Aakash Shah, whose encouragement,
supervision and support from the preliminary to the concluding level enabled me to develop
an understanding of the subject. At the end, we offer my regards and blessings to all of those
who supported us in any respect during the completion of the project and to our college for
providing a resources and materials.
Abstract
FB Chatbot is a computer program which conducts a conversation via textual method. In this
project, we are going to develop the PHP based software which involves interactive agent.
A chatterbot or chatbot aims to make a conversation between both human and machine. The
machine has been embedded knowledge to identify the sentences and deciding itself as
response to answer a question. The response principle is matching the input sentence from
user. From input sentence, it will be scored to get the similarity of sentences, the higher score
obtained the more similar of reference sentences. The sentence similarity calculation in this
paper using bigram which divides input sentence as two letters of input sentence. The
knowledge of chatbot are stored in the database. The chatbot consists of core and interface
that is accessing that core in relational database management systems (RDBMS). The
database has been employed as knowledge storage and interpreter has been employed as
stored programs of function and procedure sets for pattern-matching requirement. The
interface is standalone which has been built using programming language of PHP.
List Of Figure
CHAPTER 1
INTRODUCTION
This technology which helps humans converse with computers via a computer
interface is gaining popularity in a variety of scenario, especially customer
service.
Fb chatbot having a conversation data structure comprising plural conversation
path and each path having coded instructions and/or relationships with other
nodes.
In this project, we are going to develop PHP based software which involves Fb
Chatbot.
1.2 Purpose
Chatbot strips an interface down to the most raw, meaningful experience possible.
SOCET(CE) 1
GROUP-ID:1104 1.INTRODUCTION
Laravel Framework:
Laravel is a open source PHP web framework.
The feature of Laravel are a modular packaging system and accessing a relational
database.
ORM (object-relational mapping) is an advances PHP implementation of the
active record pattern and providing at the same time internal methods for
enforcing constraints on the relationship between database object.
Laravel Framework Feature:
There are many types of laravel framework feature:
Entirely new dictionary structure.
Routing caching.
Inbuilt authentication system.
Contracts.
Multiple file system support.
Improve methods injection.
Advantage of PHP:
It is open source.
Widely used in all over the world.
To execute PHP code no need compiler.
PHP can be easily embedded directly into HTML.
Interfaces very easily with Apache/MySQL.
SOCET(CE) 2
GROUP-ID:1104 1.INTRODUCTION
Disadvantage of PHP:
PHP is unsecured: It is an open source system, so any one can see and change the
source code.
Poor error handling method.
PHP is unable to manage large number of apps.
SOCET(CE) 3
GROUP-ID:1104 2.PROJECT MANAGEMENT
CHAPTER 2
PROJECT MANAGEMENT
Explanation
1) Planning: Requirements are gathered during the planning phase. Requirements are like
BRS and SRS.
2) Risk Analysis: In this phase, a process is undertaken to identify risk and alternate
solutions. A prototype is produced at the end of the risk analysis phase. If any risk is
found during the risk analysis then alternate solutions are suggested and implemented.
3) Engineering: In this phase software has been developed, and testing will be done with
at the end of the phase.
4) Evaluation: This phase allows the customer to evaluate the output of the project to
date before the project continues to the next spiral.
Spiral model is also called as meta-model because in a way it comprises of other
models of SDLC, both waterfall and prototype models are used in it.
The Spiral Process model is used when costs and risk evaluation is important and for
medium to high-risk projects.
SOCET(CE) 4
GROUP-ID:1104 2.PROJECT MANAGEMENT
It’s a risk-driven model which means that the overall success of a project highly
depends on the risks analysis phase. Risk analysis requires specific expertise on every
interaction. Thus, to review and analyses the project from time to time, special skills
are needed.
Initially, the project scope is defined and the appropriate methods for completing
the project are determined. Following this step, the durations for the various tasks
necessary to complete the work are listed and grouped into a work breakdown
structure.
Project planning is often used to organize different areas of a project, including
project plans, workloads and the management of teams and individuals.
SOCET(CE) 5
GROUP-ID:1104 2.PROJECT MANAGEMENT
In this project, we went through Module Wise Completion. First we did analysis of
first module; we went through all the requirements for first module that is Admin
Module.
By this analysis we decided field of all the tables of Admin Module. Then we started
Database Design.
After competing it we started with the design of all forms of this module. Then we
did coding and finally validations and testing of forms that we made.
After completing the first module we started the same procedure for the Member
Module.
After that we completed User Module. Between this we did settings forms e.g. Change
theme, change background color of the main screen etc.
There was continuously interaction with the client that was very beneficial for us.
When we completed whole project we started testing the whole project for final
verification.
Then we started documentation of our project. Finally, we completed the project with
client’s satisfaction.
SOCET(CE) 6
GROUP-ID:1104 2.PROJECT MANAGEMENT
Implementation
1. Code For giving security Access Reports
2. Code for reports
Reports
FB
Chatbot
SOCET(CE) 7
GROUP-ID:1104 2.PROJECT MANAGEMENT
Scheduling begins with the process composition. The characteristics of the project
are used to adapt an appropriate task set for the work to be done.
The task network is used to compute the critical project path, a time line chart and
a variety of project information.
Start Date
Testing
25% 25%
Coding
25% 25%
SOCET(CE) 8
GROUP-ID:1104 2.PROJECT MANAGEMENT
2.3 Estimation
In Organic=2.4(KLOC)1.05 PM
SOCET(CE) 9
GROUP-ID:1104 2.PROJECT MANAGEMENT
In Semidetached=3.0(KLOC)1.12 PM
In Embedded=3.6(KLOC)1.20 PM
Effort Estimation (E):
=2.4 (KLOC)1.05 PM
=33.30 PM
Duration Estimation (D):
= 2.5(effort)0.38 months
=2.5(33.30)0.38 months
=9.5 months
Project Cost:
=effort*RS/month
=33.30*6900
= 2,29,770 RS
(2) Reports,
SOCET(CE) 10
GROUP-ID:1104 2.PROJECT MANAGEMENT
Organic project
Semi-detached project
Embedded project
In semidetached=3.0(KLOC)1.12PM
In Embedded=3.6(KLOC)1.20PM
Duration Estimation(D):
In Organic=2.5(effort)0.38months
In semidetached=2.5(effort)0.35months In Embedded=2.5((effort)0.32months
Person Estimation:
P=E/D
KLOC = 69.
SOCET(CE) 11
GROUP-ID:1104 2.PROJECT MANAGEMENT
=2.4 (KLOC)1.05 PM
=33.30 PM
Duration Estimation (D):
= 2.5(effort)0.38 months
=2.5(33.30)0.38 months
=9.5 months
Project Cost:
=effort*RS/month
=33.30*6900
= 2,29,770 RS
Advantages of COCOMO:
COCOMO is factual and easy to interpret.
One can clearly understand how it works.
Accounts for various factors that affect cost of the project.
Works on historical data and hence is more predictable and accurate.
SOCET(CE) 12
GROUP-ID:1104 2.PROJECT MANAGEMENT
Disadvantages of COCOMO:
COCOMO model ignores requirements and all documentation.
It ignores customer skills, cooperation, knowledge and other parameters.
It oversimplifies the impact of safety/security aspects.
It ignores hardware issues.
It ignores personal turnover levels.
It is dependent on the amount of time spent in each phase.
SOCET(CE) 13
GROUP-ID:1104 3.SYSTEM REQUIREMENT STUDY
CHAPTER 3
SYSTEM REQUIREMENT STUDY
It is stand for the type of user which deals with the applications. Basically, this application
has four types of users as given below:
1. Admin
2. Developer
3. Customer
4. Employee
Explanation:
1. Admin:
Responsibility of admin is to manage the application database and update the data in
database regularly. For e.g. manage the data of updating.
2. Developer:
Responsibility of developer is to complete tasks which are assigned to him by admin
and manage the some part of database.
3. Customer:
Once the portal being tasted and being uploaded then after customer user will use this
application. User in the main reason for which this application is being built. The end
user can easily interact with the user using this portal.
4. Employee:
Responsibility of employee is to keep watching on chatbot and checkout the replies
which is given to the customer.
Responsibility of employee is to keep watching on chatbot and checkout the replies which is
given to the customer.
SOCET(CE) 14
GROUP-ID:1104 3.SYSTEM REQUIREMENT STUDY
RAM:2 GB minimum
Internet Access
3.2.2 Software Requirements
3.3 Constraints
Regulatory Policies limit the discretion of individual and agencies otherwise compel
certain types of behaviour.
This policies are generally good thought to be best applied, when good behaviour can
be easily defined and bad behaviour can be easily regulated and punished through fine.
3.3.2 Hardware limitation
SOCET(CE) 15
GROUP-ID:1104 4.SYSTEM ANALYSIS
CHAPTER 4
SYSTEM ANALYSIS
Traditionally, the ChatBot system is not known to people who are not more into the
technology.
Also this Process may lead to communicate gap between people and latest updates.
The main concern in the context of the FB ChatBot is to provide virtual environment
which can interact with bot messenger.
By using FB ChatBot people can interact with the world and know about the latest
updates.
4.2.1 Functional Requirements
4.2.2.1 Usability:
SOCET(CE) 16
GROUP-ID:1104 4.SYSTEM ANALYSIS
2. Technical Feasibility:
The analyst must be find out whether the current technical resource, which are
available in the system is capable of handling the chatbot.
3. Schedule Feasibility:
Schedule feasibility corresponds to whether sufficient time is available to complete
the project.
Factor considered:
Schedule of the project
Time by which project has to be completed
Reporting period
Economic Feasibility:
Requirement validation examines this specification to ensure that all the system
requirements have been stated unambiguously.
These inconsistent, error have been detected and corrected and the work products
SOCET(CE) 17
GROUP-ID:1104 4.SYSTEM ANALYSIS
4.5.1 Use-Case
In software and systems engineering, a use case is a list of steps, typically defining
interactions between actor and a system, to achieve a goal.
The actor can be a human, an external system, or time.
In systems engineering, use cases are used at a higher level than within software
engineering, often representing missions or stakeholder goals.
The detailed requirements may then be captured in Systems Modeling Language or as
contractual statements.
As an important requirement technique, use cases have been widely used in modern
software engineering over the last two decades.
Use case driven development is a key characteristic of process models and
frameworks.
With its iterative and evolutionary nature, use case is also a good fit for agile
development.
SOCET(CE) 18
GROUP-ID:1104 4.SYSTEM ANALYSIS
SOCET(CE) 19
GROUP-ID:1104 4.SYSTEM ANALYSIS
SOCET(CE) 20
GROUP-ID:1104 4.SYSTEM ANALYSIS
The well-known Message Sequence Chart technique has been incorporated into the
Unified Modeling Language (UML) diagram under the name of Sequence Diagram.
A sequence diagram shows, as parallel vertical lines, different processes or objects
that live simultaneously, and, as horizontal arrows, the messages exchanged between
them, in the order in which they occur.
This allows the specification of simple runtime scenarios in a graphical manner.
The well-known Message Sequence Chart technique has been incorporated into the
Unified Modeling Language (UML) diagram under the name of Sequence Diagram.
A sequence diagram shows, as parallel vertical lines, different processes or objects
that live simultaneously, and, as horizontal arrows, the messages exchanged between
them, in the order in which they occur. This allows the specification of simple runtime
scenarios in a graphical manner.
SOCET(CE) 21
GROUP-ID:1104 4.SYSTEM ANALYSIS
SOCET(CE) 22
GROUP-ID:1104 4.SYSTEM ANALYSIS
The top part contains the name of the class. It is printed in Bold, centered and
the first letter capitalized.
The middle part contains the attributes of the class. They are left aligned and
the first letter is lower case.
The bottom part gives the methods or operations the class can take or
undertake. They are also left aligned and the first letter is lower case.
SOCET(CE) 23
GROUP-ID:1104 4.SYSTEM ANALYSIS
SOCET(CE) 24
GROUP-ID:1104 4.SYSTEM ANALYSIS
Table Structure
[Table 2 User]
SOCET(CE) 25
GROUP-ID:1104 4.SYSTEM ANALYSIS
Table Structure
SOCET(CE) 26
GROUP-ID:1104 4.SYSTEM ANALYSIS
Table Structure
[Table 4 Users]
SOCET(CE) 27
GROUP-ID:1104 4.SYSTEM ANALYSIS
FB ChatBot uses Artificial Intelligence to sense the best auto reply of user’s question
answer.
The main modules involved in this system are:
1. Software
2. Artificial Intelligence
3. Database
Module wise description:
1. Software:
It is based on Laravel framework (PHP).
It will provide virtual bot to the user for chat.
2. Artificial Intelligence:
It controls the functioning of the virtual bot by providing running best possible
algorithm and having prediction into software.
3. Database:
The system will be consisting of 2 major division.
I. User data
II. ChatBot data
4.8.1 Hardware
i3 Processor Based Computer
4GB-Ram
512GB Hard Disk
Smart Phone Required
4.8.2 Software
Windows 7
WAMP Server
Sublime Text
My SQL 5.6
4.8.3 Justification
As, Laravel is an open-source PHP web framework.
Some of the features of Laravel are a modular packing system, different ways for
accessing relational database.
Utilities that aid in application deployment and maintenance.
SOCET(CE) 28
GROUP-ID:1104 5.SYSTEM DESIGN
CHAPTER 5
SYSTEM DESIGN
The system design is one of the most interesting, and most difficult, of tasks we take
may undertake in our careers as engineers or computer scientists is the entire system.
A system is a set of interacting parts, generally too large to be built by a single person,
created for some particular purpose. It is defines a process of the developing an
architecture and defining a flow of structure to satisfy the specific requirements of the
user.
SOCET(CE) 29
GROUP-ID:1104 5.SYSTEM DESIGN
[Table 7 Users]
SOCET(CE) 30
GROUP-ID:1104 5.SYSTEM DESIGN
User side:
SOCET(CE) 31
GROUP-ID:1104 5.SYSTEM DESIGN
SOCET(CE) 32
GROUP-ID:1104 5.SYSTEM DESIGN
SOCET(CE) 33