ChatBot App with Suggestion in PHP/OOP Free Source Code

Language

Introduction

This simple project is a ChatBot Application with a Suggestion Feature. This is a web-based application project developed in PHP and MySQL Database. This application is a simple ChatBot Application for any site. I developed this application to give new programmers an idea of how to create a ChatBot Feature for their current or future PHP Projects. This was developed with Bootstrap Framework and AdminLTE Template. It consists of simple and user-friendly features and functionalities.

About the ChatBot Application with Suggestion Feature

I developed this project using the following:

  • XAMPP v3.3.0
  • PHP
  • MySQL Database
  • HTML
  • CSS
  • JavaScript
  • Ajax
  • jQuery
  • Bootstrap
  • Font Awesome
  • AdminLTE

This ChatBot Application with Suggestion Feature can be accessed by the Site Management and the Public. On this application, visitors can simply query anything at the chatbox or conversation box. The system automatically browses a response for the query of the visitors and returns it to the visitor. This project also contains suggestion features. This feature provides suggestion keywords to the visitor or inquirer. Each suggestion is linked to a response. If the response has a list of suggestions keywords, the system will also return the suggestions along with the response. The suggestion feature goal is to provide the inquirer with a possible keyword that is related to the current response. This project has an admin panel where the management can access and manage the responses. The said side requires the users to log in to their system credentials to gain access to the features and functionalities of the Admin Panel. The application also generates a printable report for the responses. The Response Report contains the list of responses with the total number or count of time it was fetched. The list ordered from frequently fetched to least.

Features

Admin Panel

  • Home Page
    • Display the summary.
  • Response Management
    • Add New Response
    • List All Responses
    • Manage the Response Keywords
    • Manage the Response Suggestions
    • View Response Details
    • Edit Response Details
    • Delete Response
  • Generate Printable Response Report
  • User Management
    • Add New User
    • List All Users
    • View User Details
    • Edit User Details
    • Delete User Details
  • Update System Information
  • Update Account Details/Credentials
  • Login and Logout

Public Site

  • Send Query
  • Conversation Box
  • Suggestion Keywords

The source code was developed only for educational purposes only. You can download the source code for free and modify it the way you wanted.

System Snapshots of some Features

Admin Dashboard

ChatBot Application with Suggestion Feature

Response List

ChatBot Application with Suggestion Feature

Response Form

ChatBot Application with Suggestion Feature

Response Details

ChatBot Application with Suggestion Feature

Generated Report

ChatBot Application with Suggestion Feature

ChatBot

ChatBot Application with Suggestion Feature

How to Run ??

Requirements

  • Download and Install any local web server such as XAMPP.
  • Download the provided source code zip file. (download button is located below)

System Installation/Setup

  1. Enable the GD Library in your php.ini file.
  2. Open your XAMPP Control Panel and start Apache and MySQL.
  3. Extract the downloaded source code zip file.
  4. Copy the extracted source code folder and paste it into the XAMPP's "htdocs" directory.
  5. Browse the PHPMyAdmin in a browser. i.e. http://localhost/phpmyadmin
  6. Create a new database naming chat_bot_db.
  7. Import the provided SQL file. The file is known as chat_bot_db.sql located inside the database folder.
  8. Browse the ChatBot Application with Suggestion Feature in a browser. i.e. http://localhost/simple_chat_bot/.

Admin Default Access:

Username: admin
Password: admin123

DEMO VIDEO

That's it. You can now explore the features and functionalities of this ChatBot Application with Suggestion Feature in PHP. I hope this will help you with what you are looking for and you'll find something useful for your future projects.

Explore more on this website for more Free Source Codes and Tutorials.

Enjoy :)

Note: Due to the size or complexity of this submission, the author has submitted it as a .zip file to shorten your download time. After downloading it, you will need a program like Winzip to decompress it.

Virus note: All files are scanned once-a-day by SourceCodester.com for viruses, but new viruses come out every day, so no prevention program can catch 100% of them.

FOR YOUR OWN SAFETY, PLEASE:

1. Re-scan downloaded files using your personal virus checker before using it.
2. NEVER, EVER run compiled files (.exe's, .ocx's, .dll's etc.)--only run source code.

Comments

Submitted byRRIOSon Tue, 05/17/2022 - 01:55

Did you use any PHP Frameworks?

Does the chatbot have the option to respond with lists?

 1- Teacher 

2- Student 

3- Director 

4- Student's Parents

 

Submitted byCastigo Bazima (not verified)on Sat, 04/29/2023 - 04:43

How can I contact you? I'm interested in this project and I want you to manage me.
Submitted byAnonymous (not verified)on Tue, 05/09/2023 - 12:16

Hello Oretnom! I am Alexandre, a graduate student at a university in Brazil. I tried emailing you, but it hasn't been delivered. The reason I'm contacting is because I have been assigned the task of creating an online forum, but due to my lack of attention in the previous semester, I am now unable to complete the project as I am not proficient in the required programming languages such as HTML, CSS, and JavaScript. I came across a project on Sourcecodester that would help me complete my assignment and save my grades. However, the project has a watermark that would make it ineligible for submission, and I am unable to remove it by myself. As this is not for commercial use, but only for my college project, I am wondering if you could assist me with this. I would totally understand if you don't want to help, though. My e-mail is: [email protected] Thanks in advance!
Submitted byGino92 (not verified)on Thu, 12/07/2023 - 08:11

Hey oretnom23, I have downloaded your software package as described above, I have knowledge about php/mysql. I am running the software from my website not local and my initialize.php file is correct. When I type "Sample Query 1" I do get an error message "An errror occurred while fetching a response" and NO response and suggestions. I did look into this but cannot create a working suggestion. Can you update a working version included the suggestion functionality with .sql file for the database. You can send me a direct link where the download is located or to my mail I will look into this forum the next days. Thanks! Gino

Add new comment