In an announcement titled “AI Artifact User Storage,” sam introduces AI Artifact storage, building on December’s Web Artifacts feature, enabling dynamic, user-specific interactions like surveys and games via embedded artifacts. A demo artifact by Falco showcases user storage capabilities, with a link to its source. EricGT suggests appending “ask questions as needed” to prompts for better AI output. chrism asks for clarification on user storage, which sam clarifies is tied to user ID, not session. darkpixlz praises the feature but questions why artifact creation is AI-only, sparking support from MachineScholar and NateDhaliwal for manual artifact creation, especially for coding forums. sam acknowledges the request and suggests an admin API as an interim solution, leading MachineScholar to open a dedicated feature request topic. NateDhaliwal inquires how artifacts access usernames; sam explains via iframe messaging and shares the controller code. iamcapote notes potential synergy with Google’s A2U project. The discussion highlights enthusiasm for the feature and community-driven ideas for expanding its accessibility and utility.
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.
This is pretty cool, I initially ignored the topic because I saw “ai” in the title (nothing personal with discourse i’m just tired of AI being in everything that it doesn’t need to be lately) but this is actually a nice feature. However, why is it locked behind only AI? This seems like it could be a lot more powerful if anybody could create these artifacts.
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)
Now that you mention it, a runnable code snippet [1] WITH storage would be very interesting… I can see many use cases for it especially on code help forums.
I am not against having a mechanism, but it is a rather large piece of work, there is lots of UI, an interim thing I could probably do is provide an admin API for artifact creation / editing and so on.
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…