Skip to main content

Chatbot of Fatequino robot, which objective is to interact with students, teachers and visitors at FATEC Carapicuíba in order to give them information about teachers location, classrooms and schedules.

Project description

Interação

This project's module goal is to develop a chatbot that can provide information about Fatec Carapicuíba's university to the user. If you have any difficulty installing the required software, please check the documentation at the "README_COMPLIMENT" file.

Instalation

To start Fatequino's chatbot in your machine, you'll need the following softwares:

  • MongoDB, versão 4.x.x
  • Python3, versão 3.7.x
  • pip, versão 19.x.x

MongoDB

MongoDB Server is the database system used by the application.

To install it, follow the official documentation: Install MongoDb Server Community Edition

Python3 and Pip

Python is the programming language used to develop the chatbot.

To install it, you can follow the instructions at its official website: Install Python

Along with Python, you'll have the pip tool installed. This tool is used to manage Python application's dependencies.

Execution

Start your MongoDB instance at the port 27017.

Download or clone this repository (using the Git tool) and place it in a directory of your preference. For example:

  • On Windows: c:\fatequino
  • On Linux: $HOME/fatequino

Create an environment variable named FLASK_APP contaning the value my_flask_app.py

Using a command line tool access the chatbot's directory, for example:

  • On Windows: c:\fatequino\Interação 1
  • On Linux: $HOME/fatequino/Interação\ 1/

Install the applications dependencies running this command on the command line: pip install -r requirements.txt. In case of error, maybe you should try to install the dependencies one by one.

Note: Maybe you'll have to run the command above as system administrator (super user).

Run the python -m flask run command to execute the program.

After these steps, the application can be accessed using the localhost:5000 address on your browser.

Post data into the ChatBot

To insert updated information about Fatec in the ChatBot's database, you'll have to download or access the Postman application. For more information access https://www.postman.com/

To insert data about the classes follow these steps:

  1. In the Postman application go to 'WorkSpaces', create a new tab, set it up for "POST" and put this URL in the URL field: http://127.0.0.1:5000/aulasInfo

  2. Click in "Body" and change it to "Raw" and change the "type" to "JSON"

  3. In the space below, insert the JSON appendix found in the classes.json file inside the project's "Interaction 1" directory

  4. Click the "Send" button to send the data to the MongoDB database.

To insert data about classes' schedules follow these steps:

  1. In the Postman application go to 'WorkSpaces', create a new tab, set it up for "POST" and put this URL in the URL field: http://127.0.0.1:5000/horarioLocal

  2. Click in "Body" and change it to "Raw" and change the "type" to "JSON"

  3. In the space below, insert the JSON appendix found in the classes.json file inside the project's "Interaction 1" directory

  4. Click the "Send" button to send the data to the MongoDB database.

Demonstration Video

The following link will take you into a video where you will se an entire demonstration of the working project: https://www.youtube.com/watch?v=X33TMoHZzZo&list=PL-vxwN0gnrOu9jyA3wFWFJdjnTrME5EtF

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

fatequino_chatbot-1.0.5.tar.gz (4.2 kB view details)

Uploaded Source

File details

Details for the file fatequino_chatbot-1.0.5.tar.gz.

File metadata

  • Download URL: fatequino_chatbot-1.0.5.tar.gz
  • Upload date:
  • Size: 4.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.4 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.9.2

File hashes

Hashes for fatequino_chatbot-1.0.5.tar.gz
Algorithm Hash digest
SHA256 71ce7f52e4f06d7307a51ef4e5a9a2cb46b700e72fa5d425da5cab5c61f04b92
MD5 48b775766f83fb5e6d0f332e7febfa74
BLAKE2b-256 3547cbd7255feb6f84cdb444b46707b496a7dc2ead324900939cc967e0fb695b

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page