haxtheweb / issues

Issue queue for hax, haxcms, elmsln, lrnwebcomponents, wcfactory, websites and more.
Apache License 2.0
10 stars 1 forks source link

[site-ai-chat] Create a new floating button that opens an embedded vercel endpoint #1948

Open djfusco opened 3 months ago

djfusco commented 3 months ago

On any given page in HAX, the user can click this button that opens a small window on the current page. When the button is clicked again, the small window disappears (or you can click something in the upper right corner of this small window to minimize).

This chatgpt but a small pop up window which is answering questions about the course you are in

The window itself should display a form that simply asks the following:

This then has 2 or 3 suggestions that they can click which autopopulate the prompt box. Clicking this linked text just adds that phrase to the search box and then automatically clicks Find answer (so it's not really a link, but we make the user think it is visually)

submitting data to show result

UI requirements

Support both LLMs

btopro commented 2 months ago

I have a student for summer that will be assigned this

btopro commented 2 months ago

https://github.com/elmsln/lrnwebcomponents/blob/master/elements/haxcms-elements/lib/ui-components/magic/site-ai-chat.js