pip install -r requirements.txt
Note: this application requires Python 3.7.
path_to_python3.7_exec pd-chatbot\bot.py
First run the socket server program.
path_to_python3.7_exec pd-chatbot\socket\server.py
Then, in another terminal, run the socket client program.
path_to_python3.7_exec pd-chatbot\socket\client.py
Now just write the input in the client program and wait for the server (the chatbot) to respond.
Running the RPC implementation is similar to what was described above for Socket. In a terminal, we first run the server.
path_to_python3.7_exec pd-chatbot\rpc\server.py
Then, in another terminal, we run the client.
path_to_python3.7_exec pd-chatbot\rpc\client.py
Same as the Socket version, inputs are made on the client side; wait for the bot response via RPC server.
The web service was built using Flask and the application runs on localhost:5000 (or http://127.0.0.1:5000), route "/bot". The user must submit (HTTP Post) a JSON via body in the format {"message": "lorem ipsum"} and the return will be a JSON like {"response": "lorem ipsum"} in which the value of "response" is the response of the bot.
This project was developed for the Distributed Programming class, taught by professor Frederico Lopes at the Federal University of Rio Grande do Norte. 2024.1.