sam
(Sam Saffron)
6월 12, 2025, 5:25오전
1
In December , we announced support for Web Artifacts
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:
What Are AI Artifacts?
AI Artifacts are powerful tools that allow users to create, embed, and interact with dynamic web-based components directly within a Discourse post. These components can contain custom HTML, CSS, and JavaScript, enabling a variety of use cases such as:
Embedding interactive quizzes or forms.
Visualizing data with rich graphics and animations.
Integrating lightweight web applications or tools.
A tool for learning about web frameworks, JavaScript libraries and more.
AI Art…
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…
19개의 좋아요
Falco
(Falco)
6월 12, 2025, 2:24오후
2
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 to play if you want a high score
16개의 좋아요
EricGT
(EricGT)
6월 12, 2025, 3:55오후
3
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.
In vibe coding one technique that I find useful is to include this at the end of a prompt related to creating/fixing/updating code. ask questions as needed Often I am surprised by some of the insights the AI has that were overlooked by me or...
Reading time: 1 min 🕑
Likes: 7 ❤
2개의 좋아요
chrism
(Chris Marstall)
6월 16, 2025, 1:53오후
4
유저 스토리지란 무엇인가요? 방문자의 세션과 연결된 데이터와 같은 개념인가요?
1개의 좋아요
sam
(Sam Saffron)
6월 16, 2025, 9:24오후
5
사용자 ID를 사용자 세션에 연결한 것이 아니라, 모든 사용자 세션에 공유
2개의 좋아요
정말 멋진 기능인 것 같아요. 처음엔 제목에 'ai’가 보였기 때문에 이 주제를 무시했는데요 (디스코어와는 아무 관련 없이, 요즘 AI가 필요한 곳에 상관없이 모든 곳에 등장하는 게 지쳐서요) 실제로는 꽤 괜찮은 기능인 것 같습니다. 그런데 왜 AI에만 제한되어 있나요? 누구나 이런 아티팩트를 만들 수 있다면 훨씬 더 강력해질 것 같습니다.
4개의 좋아요
darkpixlz:
누군가 이 아티팩트들을 만들 수 있다면.
동의합니다! 예를 들어, 아티팩트 코드와 저장을 위한 키/값 쌍을 수동으로 삽입하거나 업데이트할 수 있는 인터페이스가 있다면 좋겠습니다.
그렇지 않으면 웹 크리에이터 페르소나를 사용해야 하거나(비용이 많이 들 수 있음), SSH 터널링을 통해 데이터베이스에 접속하여 관련 데이터베이스 행/열의 코드를 수동으로 편집해야 합니다(위험할 수 있음).
4개의 좋아요
말씀해 주시니, 저장 기능이 포함된 실행 가능한 코드 스니펫 가 매우 흥미로울 것 같네요… 특히 코드 도움 포럼에서 이를 활용할 수 있는 다양한 용도를 떠올릴 수 있습니다.
3개의 좋아요
훌륭한 사용 사례네요. 만약 그렇게 된다면, 코딩 포럼에서 JSFiddle이나 Codepen 같은 도구에 의존할 필요가 없게 될 거예요 (경험상).
2개의 좋아요
sam
(Sam Saffron)
6월 22, 2025, 10:07오후
10
메커니즘 자체에는 반대하지 않지만, 꽤 큰 규모의 작업입니다. UI도 많고, 그 사이에 할 수 있는 임시 대안으로 아티팩트 생성/편집 등을 위한 관리자 API를 제공하는 정도는 가능할 것 같습니다.
원하시면 Contribute > Feature 토픽으로 별도 추적하는 것도 좋습니다.
5개의 좋아요
시간이 나면 주제를 만들게요. 알려주셔서 감사합니다.
4개의 좋아요
궁금한 점이 있는데, op의 아티팩트는 어떻게 내 사용자 이름을 알고 있는 거예요? @sam , 이 기능 뒤의 코드를 공유해 주시겠어요? 감사합니다!
2개의 좋아요
sam
(Sam Saffron)
6월 23, 2025, 1:11오전
13
Artifacts는 샌드박싱된 IFRAME에서 호스팅 페이지로 메시지를 보내는 시스템을 사용하며, 이를 통해 인스턴스와 직접 통신할 수 있습니다. 이를 통해 사용자 데이터를 저장/검색하고, 사용자 이름/아바타 템플릿 등을 가져올 수 있습니다.
구현 코드는 여기에 있습니다: https://github.com/discourse/discourse-ai/blob/main/app/controllers/discourse_ai/ai_bot/artifacts_controller.rb
3개의 좋아요
darkpixlz:
시간이 나면 토픽을 열겠습니다
가능하시다면 이 기능 요청을 최대한 빨리 열어보겠습니다
1개의 좋아요
아 맞다, 깜빡하고 잊어버렸네. 이제 컴퓨터 앞에 없으니까 알아서 해.
3개의 좋아요
사실 아티팩트의 코드 에 대해 말하고 있었는데, 그래도 도움이 되네요.
감사합니다!
2개의 좋아요
AI 아티팩트와 사용자 스토리지, 그리고 구글의 새로운 A2U(Introducing A2UI: An open project for agent-driven interfaces - Google Developers Blog ) 사이에 시너지가 있을 것 같습니다. 정확히 어떻게 봐야 할지 모르겠지만, 아주 잘 어울릴 수 있을 것 같아요.