Skip to content

CUSecLab/SkillPoV

 
 

Repository files navigation

SkillPoV: Towards Accessible and Effective Privacy Notice for Amazon Alexa Voice Applications

Screenshot 2024-05-02 at 4 22 36 PM

Instructions

  • Place your own openai api key in Line 6 of /DockerImage/code/privacy_notice_generator/chatGPT_summary.py
  • Place the your own skills code in the /dataset/repos/your_name/your_skill_code. There is also an example folder under /dataset/repos.
  • For more skills, please refer dataset/all_skills_dataset.csv.

If you prefer use Docker, Please exexute the following commands:

  • Run ./build.sh
  • Run ./run.sh (run again if /dataset/results directory has output but /dataset/repo doesn't have any update).
  • You can check the reuslt from /dataset/repo. There will be a new index_new.js. And the json file has been modified.
  • Upload modified files to Alexs skill developer console to test.
  • Please note everytime you upload new repos or do any changes, rerun ./build.sh

You can also exexute the code directly:

  • Run pip install openai
  • Run pip install spacy
  • Run python -m spacy download en_core_web_sm
  • Run DockerImage/code/data_collection_analysis/scan_skills.py
  • Run DockerImage/code/privacy_notice_generator/main.py

Test on Alexa Developer Console

  • Create account/sign in: Devloper Console
  • Click "Create Skill" and input neccessay information
  • For front-end code, follow the steps in the figures: 7491728064746_ pic
  • For backend code, follow the steps in the figures: image
  • Click "Test" to interact with Alexa

Result

Demo Vide

  • When the user opens this skill for the first time:
First_time_yes.mp4
  • When the user opens this skill for the first time:
Non_first_time.mp4

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 64.4%
  • Python 33.9%
  • Shell 1.5%
  • Dockerfile 0.2%