Ai-Shop-Assistant is an AI-powered Telegram bot designed for automated customer support in online stores. It utilizes Telethon and the RAG (Retrieval-Augmented Generation) algorithm to provide intelligent and context-aware responses to customer inquiries.
- Automated response to user messages on Telegram
- Utilization of RAG algorithm for generating relevant and accurate responses
- Processing and leveraging previous chat history to improve response quality
- Support for Persian language using appropriate language models
- Capability to use default responses for frequently asked questions
- Python 3.8+
- pip (Python package manager)
- A Telegram account and access to Telegram API
-
Clone the repository:
git clone https://github.com/ItsOrv/Ai-Shop-Assistant.git cd Ai-Shop-Assistant
-
Install dependencies:
pip install -r requirements.txt
-
Configure
config.py
:- Obtain your
API_ID
andAPI_HASH
from my.telegram.org. - Enter your Telegram account's phone number in
PHONE_NUMBER
. - Adjust other settings as needed.
- Obtain your
-
Prepare the data:
- Place the
raw_chat_export.json
file containing chat history in the project's root directory. - Run the data processing script:
python data_processor.py
- Place the
-
Run the bot:
python main.py
Your contributions to this project are highly valued. Please follow these steps to contribute:
- Fork this repository.
- Create a new branch for your feature or bug fix.
- Make your changes.
- Create a Pull Request.
This project is released under the MIT License. See the LICENSE file for details.
If you have any questions or suggestions, please feel free to reach out through Issues.