https://github.com/jsonfm/alexa-maps-utpl
♾️ 💬 ⚡️ A chatbot made with Alexa, chatGPT and Arduino.
https://github.com/jsonfm/alexa-maps-utpl
alexa alexa-skill arduino aws bot chatgpt iot pyhton
Last synced: 2 months ago
JSON representation
♾️ 💬 ⚡️ A chatbot made with Alexa, chatGPT and Arduino.
- Host: GitHub
- URL: https://github.com/jsonfm/alexa-maps-utpl
- Owner: jsonfm
- Created: 2023-08-05T02:02:01.000Z (almost 3 years ago)
- Default Branch: master
- Last Pushed: 2023-10-08T13:30:51.000Z (over 2 years ago)
- Last Synced: 2025-03-25T13:47:00.406Z (over 1 year ago)
- Topics: alexa, alexa-skill, arduino, aws, bot, chatgpt, iot, pyhton
- Language: Python
- Homepage:
- Size: 22.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
### Alexa UTPL Global Campus Bot
A chat bot made with Alexa, ChatGPT and Arduino. It uses an alexa skill for interacting with users. It answers different questions using an external database (an excel file). Also controls an IoT circuit using Arduino IoT cloud API REST.
### 📦 Installation
Clone the repository and install the dependencies:
```
pip install -r requirements.txt
```
### 💬 ChatGPT
ChatGPT utils can be found at `chatgpt.py`:
```python
import time
start = time.time()
response = ask_to_chatgpt_v2("what's the physics?", max_tokens=100)
end = time.time()
print(f"elapsed time: {end - start} secs.")
```
### 💾 Database
The database uses pandas to read and make queries to some csv/excel files.
```python
db = Database()
db.load("dbutplcampus.csv")
print("Ciudades: ", db.get_all_cities())
print("Paises: ", db.get_all_countries())
print("Continentes: ", db.get_all_continents())
print("Institutions: ", db.get_institutions(randomized=True))
print("careers: ", db.get_careers())
print("convenios: ", db.get_convenios())
print("objetivos: ", db.get_objetivos())
```