Inspiration
Disney recently won a lawsuit because the customer had accepted terms and privacy policy of Disney+. No one reads detailed privacy policy but generative AI is perfectly suited for this usecase.
What it does
When a user is on a privacy page, this chrome extension parses the entire page and sends it to the chrome Prompt API. We get back a response in JSON which is displayed in the extension with easy color coding to advise the user if they need to deep dive into certain sections
How we built it
Using native javascript and manifest 3 for chromoe extension. I got origin trial enabled and ran this extension in chrome canary after downloading and enabling the prompt API
Challenges we ran into
Getting the prompt API to return response due to limited token size. SInce I parse the entire DOM and send it to the API it was consuming lot of tokens. I updated the code to trim out the content to meet token size limits.
Extension icons are a bit tricky as I wanted the icon to change color once its done analyzing the page but I could not achieve it
Accomplishments that we're proud of
Getting this done in very short time after work
What we learned
Chrome prompt API will be revolutionary since the analysis happens on device and there is no network calls. There are multiple uses cases but I could only build one
What's next for privacy policy analyzer
I want to add a chat with privacy policy function and the ability highlight any text and get an explanation of that text
Log in or sign up for Devpost to join the conversation.