The purpose of this repository is to give an example of integrating Rasa with chatGPT.
- Thw work has been tested with
Ubuntu 20.4
andpython 3.8
- Clone the repository:
git clone https://github.com/PAIN-BARHAM/Rasa_chatbot_with_chatgpt.git
- Open the repository folder or you can use the following:
cd Rasa_chatbot_with_chatgpt/
- Change the permission of
installation_file.sh
by run this command in the repository directory:
chmod +x installation_file.sh
- Run the first bash script by the following command:
./installation_file.sh
Run this on the bash to activate the venv:
source .env/bin/activate
- Change the permission of
installation_file_after.sh
by run this command in the repo directory:
chmod +x installation_file_after.sh
- Run the second bash script by the following command:
./installation_file_after.sh
- Add the config.json file as described on this guide.
- You can add on the current working directory or on the home directory under user name. Example: /home/think3/.config/revChatGPT/config.json
- Move to the chatbot's directory by the following command:
cd rasa_chatbot_folder
- Train your rasa chatbot by:
rasa train
- Run your chatbot in the command line by:
rasa shell
- Run rasa action server on a new bash on the chatbot directory(Make sure you are still on the venv
source .env/bin/activate
):
rasa run actions
-
Wait, a web window will appear and allow you to log in to your chatGPT account. After login successfuly, you will be able to use chatGPT for the chatbot responces.
-
Enjoy the conversation...
I have edited one file in revChatGPT repo to make it compatable with Rasa. The edited repo is here.
Also, thanks to the contributers in this repo, here