KerolosBot
Kerolosnady1/KerolosBotOverview
A lightweight desktop chatbot that combines a C# Windows Forms user interface (.NET 10) with a Python-based regular expression engine. It demonstrates simple inter-process communication (IPC) by exchanging data through text files.
Synchronized repository from GitHub (Kerolosnady1/KerolosBot).
Technologies & Frameworks
Repository Documentation (README.md)
Live SynchronizedKerolosBot AI 🤖
KerolosBot is a simple, locally-hosted desktop assistant project. It features a modern desktop User Interface built with C# Windows Forms (.NET 10), backed by a lightweight conversational agent written in Python.
The project demonstrates cross-language communication by executing an external Python script from C# and exchanging query/response data via text files.
🚀 Features
- C# / .NET 10 GUI: A clean Windows form to interact with the bot.
- Python Backend Engine: A regex-based intent matcher that parses questions and generates answers.
- File-based Inter-Process Communication: Relies on local
.txtfile streams to bridge the gap between the .NET runtime and the Python environment.
🛠️ Prerequisites
To run this project on your local machine, you will need:
- Visual Studio 2026 (or a compatible IDE)
- .NET 10 SDK
- Python 3.1x installed locally
⚙️ Setup & Installation
- Clone this repository:
- Open the solution in Visual Studio.
- Important Path Adjustments:
Because this project uses absolute paths, you must update the file paths in bothForm1.csandai_engine.pyto match your local environment:
- Update the Python executable pathinForm1.cs(e.g.,C:\Program Files\Python314\python.exe).
- Update the.txtfile locations in bothForm1.csandai_engine.py. - Build and Run the project via Visual Studio.
🎮 How to Use
- Launch the
KerolosBotapplication. - Type a message (e.g., "Hello" or "Who are you?") into the toptext box.
- Click Enter to write the query to the system and trigger the Python AI script.
- Click Answer to dynamically read the processed text file and view KerolosBot's response in the main dialogue box.
🧠 How it Works
- Input: User writes text in C# Form -> C# writes to
messages4KerolosBot.txt. - Execution: C# uses
ProcessStartInfoto launchai_engine.pyin the background. - Processing: Python reads
messages4KerolosBot.txt, compares inputs against a regex dictionary, and determines an output. - Output: Python writes the result to
response4KerolosBot.txt. C# reads this file and updates the UI UI.
👨💻 Developer
Developed by Kerolos Farag.