Skip to content

AI based conversational agent for the PhD course "Human AI Interaction" @ Politecnico di Torino

License

Notifications You must be signed in to change notification settings

RobertoChiosa/homie-conversational-agent

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

💡 Homie: a smart conversational agent

In the last few years smart appliances have become part of our life, our house has become smarter and always connected. However, the interaction with those devices is still difficult because of the different kind of interfaces and not always interoperable. Homie helps users to interact with all smart-home appliances.

alt text

This project was born in 2022 as a team work for the PhD course "Human AI Interaction" at Politecnico di Torino. This repository contains the Python code based on the dialogflow-weather example.

It uses the Web Speech API (experimental) for speech-to-text and text-to-speech operations. For Natural Language Processing, it uses Dialogflow ES agent, included as a .zip file. Tested in Chrome 57+, Firefox 70+, and Safari 10.1+. Please, notice that speech-to-text capability does not work in Safari and Firefox.

▶ Usage

To get started with the project:

  • Import the file Homie.zip into Dialogflow
  • Generate a service key from Google
  • Download it as .json rename it as homie-key.json and place it in the root of the project.
  • Create a new Python venv installing the required packages listed in requirements.txt.
  • Run the app.py file

In order to test the app, just run the flask server through the command:

python app.py

👥 Contributors