This project is a simple chatbot application developed using Flask, that integrates Artificial Intelligence Markup Language (AIML) for generating responses and utilizes a basic text correction functionality to correct the user's input message. The application serves a user interface for interaction where users can input their queries. It's designed to answer questions related to food ordering, specifically mimicking a restaurant environment like KFC.
- Edwin Mahendra
- Johannes Baptista Adiatmaja
Since this was made, we are students of Duta Wacana Christian University who have not yet graduated.
- Clone the repository.
- Install the required libraries as mentioned below.
- Run the
chatbot_backend.pyfile to start the Flask server. - Navigate to
localhost:5001on your browser to access the chatbot UI. - You can chat with the bot by typing your questions in the chatbox.
Note: To run this project, Python 3 is required.
This project uses the following Python libraries:
| Library | Import Code | Install Command |
|---|---|---|
aiml |
import aiml |
pip install python-aiml |
os |
import os |
(built-in) |
re |
import re |
(built-in) |
collections |
from collections import Counter |
(built-in) |
flask |
from flask import Flask, jsonify, request |
pip install flask |
flask_cors |
from flask_cors import CORS |
pip install Flask-Cors |
Your feedback is valuable to us in improving this chatbot application. If you have any issues, questions or suggestions, feel free to open an issue on this repository. We will try to address it as soon as possible.
The text correction algorithm implemented in this project is inspired by Peter Norvig's article "How to Write a Spelling Corrector". Peter Norvig is a Director of Research at Google Inc, and his work in spelling correction and natural language processing has significantly impacted the field. We'd like to express our gratitude for his substantial contribution to the community and for making his knowledge openly available for learning and improvement purposes.
Please note that the content provided here does not originate from KFC or any of its affiliates. The food and drink menu items listed here are inspired by the offerings of KFC Indonesia, and are used purely for illustrative purposes.
This repository, its author, and contributors are not affiliated, endorsed, or sponsored by KFC, Yum! Brands, or any of their subsidiaries. The information in this repository is provided "as is" without any representations or warranties, express or implied.
The use of the KFC name and/or its menu offerings does not imply any connection or association with KFC Corporation, Yum! Brands, or any KFC outlets worldwide. The KFC name, logos, and related trademarks are the property of their respective trademark holders.
By using this information, you agree to do so at your own discretion and risk. The author and contributors to this repository shall not be held liable for any damages or any form of loss resulting from the use of this information.