This project aims to develop an AI model that automatically responds to WhatsApp messages with personalized responses. The AI model will be trained using Python and the goal is to mimic my personality as much as possible.
- Python 3.10
- WhatsApp Web
-
Clone the repository
git clone https://github.com/MSH4R1F/my-digital-clone.git
-
Navigate to the project directory
cd my-digital-clone -
Install required packages
pip install -r requirements.txt
-
Configure environment variables Create a
.envfile in the root directory and add the necessary variables such as API keys or tokens if needed.
-
Data Collection
You will have to provide your own past messages. You can do this by using the export button on your WhatsApp and export it in the format you want it to.
-
Data Preprocessing
Run the
data_preprocessing.pyscript to clean and prepare the data for training.python data_preprocessing.py
-
Training
Run the
train_model.pyscript to train your model.python train_model.py
Run the deploy.py script to deploy your trained model.
python deploy.pyAfter deploying, the model will start listening for incoming WhatsApp messages. Once it detects a message from an allowed contact list or group, it will generate a response based on the trained model and send it automatically.