# AI Artifact User storage

**URL:** https://meta.discourse.org/t/ai-artifact-user-storage/369822
**Category:** Announcements
**Tags:** ai, ai-artifacts
**Created:** [June 12, 2025, 5:25am UTC](https://meta.discourse.org/t/ai-artifact-user-storage/369822 "2025-06-12T05:25:18Z")
**Posts on this page:** 1
**Showing post:** 13

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [June 23, 2025, 1:11am UTC](https://meta.discourse.org/t/ai-artifact-user-storage/369822/13 "2025-06-23T01:11:29Z")

</div>

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](https://github.com/discourse/discourse-ai/blob/main/app/controllers/discourse_ai/ai_bot/artifacts_controller.rb)

---

_[View the full topic](https://meta.discourse.org/t/ai-artifact-user-storage/369822)._
