AI Artifact Gebruikersopslag

In December, we announced support for Web Artifacts :confetti_ball:

In the intervening months, LLMs have gotten even more powerful.

I am very happy to announce AI Artifact storage.

The following is a short survey that was generated entirely in a Discourse Artifact using user storage. Let us know how you are feeling about AI!

Read more about it at:


This is an opening move, and I can see this system growing and enabling all sorts of extremely cool uses to help empower communities:

  • Surveys
  • Games
  • Sophisticated polls
  • and more…
18 likes

I’ve made a demo artifact to exercise the user storage and demonstrate what is possible with it, please give it a try.

Click here to see how it was built.

PS: Use a gamepad :video_game: to play if you want a high score

16 likes

Suggestion:

At the end of a prompt consider adding

ask questions as needed

While the AI will often ask several questions, I find that the questions are valid and in taking the time to answer them, it does make for a much better result. Even at the end of the answers to the questions again add ask questions as needed. This sometimes goes for a few rounds but in the end 5 minutes of added Q&A saves about 20 or minutes of multiple round trips. :slightly_smiling_face:

2 likes

Wat is gebruikersopslag? Is het zoals gegevens die gekoppeld zijn aan de sessie van een bezoeker?

1 like

De gebruikers-id gekoppeld, niet aan de gebruikerssessie - gedeeld op alle gebruikerssessies

2 likes

Dit is best gaaf, ik negeerde het onderwerp aanvankelijk omdat ik “ai” in de titel zag (niets persoonlijks tegen het discours, ik ben gewoon moe van AI die overal in zit waar het de laatste tijd niet nodig is) maar dit is eigenlijk een leuke functie. Echter, waarom is het alleen vergrendeld achter AI? Dit lijkt veel krachtiger te kunnen zijn als iedereen deze artefacten zou kunnen maken.

4 likes

I second this! For example, having an interface where the code for artifacts and key/value pairs for storage can be manually inserted/updated would be neat.

Otherwise you’re forced to either use the web creator persona (can get expensive) or ssh tunnel into the database and manually edit the code in the relevant database row/column (can get risky)

4 likes

Nu je het zegt, een uitvoerbaar codefragment [1] MET opslag zou erg interessant zijn… Ik zie er veel gebruiksmogelijkheden voor, vooral op forums voor codehulp.


  1. handmatig gecodeerd, zonder AI ↩︎

3 likes

Dat is een geweldige use case, als dat zou gebeuren zouden mensen op codeerforums niet hoeven te vertrouwen op dingen als JSFiddle en Codepen (uit ervaring).

2 likes

Ik ben niet tegen het hebben van een mechanisme, maar het is nogal wat werk, er is veel UI, een tussenoplossing die ik waarschijnlijk zou kunnen doen, is een admin API bieden voor het maken / bewerken van artefacten, enzovoort.

De moeite waard om te volgen in een apart Feature onderwerp als je wilt.

5 likes

Ik zal een onderwerp openen als ik tijd heb, bedankt voor het laten weten.

4 likes

Ik ben benieuwd, hoe weet het artefact in de openingspost mijn gebruikersnaam? @sam, wil je de code hierachter delen? Bedankt!

2 likes

Artifacts use a messaging system from the sandboxed IFRAME back to the hosting page can communicate directly with the instance. That is how they can store/retrieve user data and get username/avatar template etc…

Implementation is here: discourse-ai/app/controllers/discourse_ai/ai_bot/artifacts_controller.rb at main · discourse/discourse-ai · GitHub

3 likes

I’d be happy to open this feature request asap, if that’s alright with you

1 like

Ja hoor, ik ben het vergeten en zit niet meer achter mijn computer, dus ga je gang.

3 likes

I was actually referring to the artifact’s code :sweat_smile: , but that’s helpful too.
Thanks!

2 likes

Done bossman :smiling_face_with_sunglasses:

3 likes